Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
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
15namespace 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
Eigen::Matrix< Scalar, rows, cols > MatrixType
Definition FieldBase.h:26
static MatrixType addSourceContribution(const ParticleType &)
Definition FieldBase.h:30