Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
FEMbaseEvaluation.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_FEMbaseEvaluation_H_
9#define model_FEMbaseEvaluation_H_
10
11#include <Eigen/Dense>
12
13namespace model
14{
15
16
17 /******************************************************************************/
18 template <typename ElementType,int rows,int cols>
19 struct FEMbaseEvaluation : public Eigen::Matrix<double,rows,cols>
20 {
21
22 typedef Eigen::Matrix<double,ElementType::dim,1> VectorDim;
23
24 const VectorDim P;
25
26 /**********************************************************************/
28 /* init */ Eigen::Matrix<double,rows,cols>(Eigen::Matrix<double,rows,cols>::Zero()),
29 /* init */ P(_P)
30 {
31 }
32
33 };
34
35}
36#endif
Eigen::Matrix< double, ElementType::dim, 1 > VectorDim
FEMbaseEvaluation(const VectorDim &_P)