Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
FEMnodeEvaluation.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_FEMnodeEvaluation_H_
9#define model_FEMnodeEvaluation_H_
10
11#include <Eigen/Dense>
12#include <FEMbaseEvaluation.h>
13
14namespace model
15{
16
17
18 /******************************************************************************/
19 template <typename ElementType,int rows,int cols>
20 struct FEMnodeEvaluation : public FEMbaseEvaluation<ElementType,rows,cols>
21 {
22
23 typedef Eigen::Matrix<double,ElementType::dim,1> VectorDim;
24
25 const size_t pointID;
26
27 /**********************************************************************/
28 FEMnodeEvaluation(const size_t& _pointID,const VectorDim& _P) :
29 /* init */ FEMbaseEvaluation<ElementType,rows,cols>(_P)
30 /* init */,pointID(_pointID)
31 {
32 }
33
34 /**********************************************************************/
35 const FEMnodeEvaluation& operator=(const Eigen::Matrix<double,rows,cols>& val)
36 {
37 static_cast<Eigen::Matrix<double,rows,cols>*>(this)->operator=(val);
38 return *this;
39 }
40
41 };
42
43}
44#endif
FEMbaseEvaluation(const VectorDim &_P)
const FEMnodeEvaluation & operator=(const Eigen::Matrix< double, rows, cols > &val)
Eigen::Matrix< double, ElementType::dim, 1 > VectorDim
FEMnodeEvaluation(const size_t &_pointID, const VectorDim &_P)