Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
ParticleInteraction
FieldBase.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_FieldBase_h
9
#define _model_FieldBase_h
10
11
#include <Eigen/Dense>
12
//#include <SpatialCellObserver.h>
13
14
15
namespace
model
16
{
17
18
19
template
<
typename
_Scalar,
int
_rows,
int
_cols>
20
struct
FieldBase
21
{
22
typedef
_Scalar
Scalar
;
23
enum
{
rows
=_rows};
24
enum
{
cols
=_cols};
25
26
typedef
Eigen::Matrix<Scalar,rows,cols>
MatrixType
;
27
28
29
template
<
typename
ParticleType>
30
static
MatrixType
addSourceContribution
(
const
ParticleType&)
31
{
32
return
MatrixType::Zero();
33
}
34
35
36
};
37
}
// end namespace
38
#endif
model
Definition
DD_converter.dox:2
model::FieldBase
Definition
FieldBase.h:21
model::FieldBase::cols
@ cols
Definition
FieldBase.h:24
model::FieldBase::rows
@ rows
Definition
FieldBase.h:23
model::FieldBase::MatrixType
Eigen::Matrix< Scalar, rows, cols > MatrixType
Definition
FieldBase.h:26
model::FieldBase::addSourceContribution
static MatrixType addSourceContribution(const ParticleType &)
Definition
FieldBase.h:30
model::FieldBase::Scalar
_Scalar Scalar
Definition
FieldBase.h:22
Generated by
1.15.0