Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
FEM
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
14
namespace
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.h
model
Definition
DD_converter.dox:2
model::FEMbaseEvaluation::FEMbaseEvaluation
FEMbaseEvaluation(const VectorDim &_P)
Definition
FEMbaseEvaluation.h:27
model::FEMnodeEvaluation::operator=
const FEMnodeEvaluation & operator=(const Eigen::Matrix< double, rows, cols > &val)
Definition
FEMnodeEvaluation.h:35
model::FEMnodeEvaluation::pointID
const size_t pointID
Definition
FEMnodeEvaluation.h:25
model::FEMnodeEvaluation::VectorDim
Eigen::Matrix< double, ElementType::dim, 1 > VectorDim
Definition
FEMnodeEvaluation.h:23
model::FEMnodeEvaluation::FEMnodeEvaluation
FEMnodeEvaluation(const size_t &_pointID, const VectorDim &_P)
Definition
FEMnodeEvaluation.h:28
model::ElementType
Generated by
1.15.0