Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
FEM
FEMfaceEvaluation.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_FEMfaceEvaluation_H_
9
#define model_FEMfaceEvaluation_H_
10
11
#include <Eigen/Dense>
12
#include <
FEMbaseEvaluation.h
>
13
namespace
model
14
{
15
16
/**************************************************************************/
17
/**************************************************************************/
18
template
<
typename
ElementType,
int
rows,
int
cols>
19
struct
FEMfaceEvaluation
:
public
FEMbaseEvaluation
<ElementType,rows,cols>
20
{
21
constexpr
static
int
dim
=ElementType::dim;
22
const
ElementType
&
ele
;
23
const
Eigen::Matrix<double,dim+1,1>
domainBary
;
24
const
int
boundaryFace
;
25
const
double
&
weight
;
26
// const Eigen::Matrix<double,dim,1> P;
27
28
/**********************************************************************/
29
FEMfaceEvaluation
(
const
ElementType
& _ele,
30
const
Eigen::Matrix<double,dim+1,1>& _domainBary,
31
const
int
& _boundaryFace,
32
const
double
& _weight) :
33
/* init */
FEMbaseEvaluation
<
ElementType
,rows,cols>(_ele.position(_domainBary))
34
// /* init */ Eigen::Matrix<double,rows,cols>(Eigen::Matrix<double,rows,cols>::Zero()),
35
/* init */
,
ele
(_ele)
36
/* init */
,
domainBary
(_domainBary)
37
/* init */
,
boundaryFace
(_boundaryFace)
38
/* init */
,
weight
(_weight)
39
// /* init */ P(ele.position(domainBary))
40
{
41
42
}
43
44
/**********************************************************************/
45
const
FEMfaceEvaluation
&
operator=
(
const
Eigen::Matrix<double,rows,cols>& val)
46
{
47
static_cast<
Eigen::Matrix<double,rows,cols>*
>
(
this
)->
operator
=(val);
48
return
*
this
;
49
}
50
51
};
52
53
}
// close namespace
54
#endif
FEMbaseEvaluation.h
model
Definition
DD_converter.dox:2
model::FEMbaseEvaluation::FEMbaseEvaluation
FEMbaseEvaluation(const VectorDim &_P)
Definition
FEMbaseEvaluation.h:27
model::FEMfaceEvaluation::FEMfaceEvaluation
FEMfaceEvaluation(const ElementType &_ele, const Eigen::Matrix< double, dim+1, 1 > &_domainBary, const int &_boundaryFace, const double &_weight)
Definition
FEMfaceEvaluation.h:29
model::FEMfaceEvaluation::dim
static constexpr int dim
Definition
FEMfaceEvaluation.h:21
model::FEMfaceEvaluation::weight
const double & weight
Definition
FEMfaceEvaluation.h:25
model::FEMfaceEvaluation::domainBary
const Eigen::Matrix< double, dim+1, 1 > domainBary
Definition
FEMfaceEvaluation.h:23
model::FEMfaceEvaluation::operator=
const FEMfaceEvaluation & operator=(const Eigen::Matrix< double, rows, cols > &val)
Definition
FEMfaceEvaluation.h:45
model::FEMfaceEvaluation::boundaryFace
const int boundaryFace
Definition
FEMfaceEvaluation.h:24
model::FEMfaceEvaluation::ele
const ElementType & ele
Definition
FEMfaceEvaluation.h:22
model::ElementType
Generated by
1.15.0