Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
SingleFieldPoint.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MODEL is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef _model_SingleFieldPoint_h
9#define _model_SingleFieldPoint_h
10
11#include <FieldPoint.h>
12
13
14namespace model
15{
16
17 /******************************************************************************/
18 template<typename Field>
20 /* inheritance */ public FieldPoint<SingleFieldPoint<Field>,Field::dim,Field>
21 {
22 const Eigen::Matrix<double,Field::dim,1> P;
23
24 SingleFieldPoint(const Eigen::Matrix<double,Field::dim,1>& Pin, const bool& enabled) :
25 /* init */ FieldPoint<SingleFieldPoint<Field>,Field::dim,Field>(enabled),
26 /* init */ P(Pin)
27 {
28
29 }
30
31
32 typename Field::MatrixType field() const
33 {
34 return FieldPoint<SingleFieldPoint<Field>,Field::dim,Field>::template field<Field>();
35 }
36 };
37
38} // end namespace
39#endif
A class template that contains the underlying FieldType data of the Derived particle.
Definition FieldPoint.h:31
const Eigen::Matrix< double, Field::dim, 1 > P
Field::MatrixType field() const
SingleFieldPoint(const Eigen::Matrix< double, Field::dim, 1 > &Pin, const bool &enabled)
TrialFunction< 'c', 1, Space > Field