v0.9.0
Public Member Functions | List of all members
MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator Struct Reference

default operator for Flat Prism element More...

#include <src/finite_elements/FlatPrismElementForcesAndSourcesCore.hpp>

Inheritance diagram for MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator:
[legend]
Collaboration diagram for MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator:
[legend]

Public Member Functions

double getArea (const int dd)
 get face aRea More...
 
double getAreaF3 ()
 
double getAreaF4 ()
 
VectorDoublegetNormal ()
 get triangle normal More...
 
VectorAdaptor getNormalF3 ()
 
VectorAdaptor getNormalF4 ()
 
VectorDoublegetCoords ()
 get triangle coordinates More...
 
MatrixDoublegetCoordsAtGaussPts ()
 get coordinates at Gauss pts. More...
 
MatrixDoublegetHoCoordsAtGaussPtsF3 ()
 coordinate at Gauss points on face 3 (if hierarchical approximation of element geometry) More...
 
MatrixDoublegetHoCoordsAtGaussPtsF4 ()
 coordinate at Gauss points on face 4 (if hierarchical approximation of element geometry) More...
 
MatrixDoublegetNormalsAtGaussPtF3 ()
 if higher order geometry return normals at face F3 at Gauss pts. More...
 
MatrixDoublegetNormalsAtGaussPtF4 ()
 if higher order geometry return normals at face F4 at Gauss pts. More...
 
ublas::matrix_row< MatrixDoublegetNormalsAtGaussPtF3 (const int gg)
 if higher order geometry return normals at Gauss pts. More...
 
ublas::matrix_row< MatrixDoublegetNormalsAtGaussPtF4 (const int gg)
 if higher order geometry return normals at Gauss pts. More...
 
MatrixDoublegetTangent1AtGaussPtF3 ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
MatrixDoublegetTangent2AtGaussPtF3 ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
MatrixDoublegetTangent1AtGaussPtF4 ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
MatrixDoublegetTangent2AtGaussPtF4 ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
const FlatPrismElementForcesAndSourcesCoregetFlatPrismElementForcesAndSourcesCore ()
 return pointer to triangle finite element object More...
 
- Public Member Functions inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
 UserDataOperator (const FieldSpace space, const char type=OPLAST, const bool symm=true)
 
 UserDataOperator (const std::string &field_name, const char type, const bool symm=true)
 
 UserDataOperator (const std::string &row_field_name, const std::string &col_field_name, const char type, const bool symm=true)
 
boost::shared_ptr< const NumeredEntFiniteElementgetNumeredEntFiniteElementPtr () const
 Return raw pointer to NumeredEntFiniteElement. More...
 
EntityHandle getFEEntityHandle () const
 Return finite element entity handle. More...
 
boost::weak_ptr< SideNumber > getSideNumberPtr (const int side_number, const EntityType type)
 Get the side number pointer. More...
 
EntityHandle getSideEntity (const int side_number, const EntityType type)
 Get the side entity. More...
 
int getNumberOfNodesOnElement ()
 Get the number of nodes on finite element. More...
 
MoFEMErrorCode getProblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get row indices. More...
 
MoFEMErrorCode getProblemColIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get col indices. More...
 
const FEMethodgetFEMethod () const
 Return raw pointer to Finite Element Method object. More...
 
int getOpType () const
 Get operator types. More...
 
void setOpType (const OpType type)
 Set operator type. More...
 
void addOpType (const OpType type)
 Add operator type. More...
 
int getNinTheLoop () const
 get number of finite element in the loop More...
 
int getLoopSize () const
 get size of elements in the loop More...
 
const std::string & getFEName () const
 Get name of the element. More...
 
Vec getSnesF () const
 
Vec getSnesX () const
 
Mat getSnesA () const
 
Mat getSnesB () const
 
Vec getTSu () const
 
Vec getTSu_t () const
 
Vec getTSf () const
 
Mat getTSA () const
 
Mat getTSB () const
 
int getTSstep () const
 
double getTStime () const
 
double getTSa () const
 
MatrixDoublegetGaussPts ()
 matrix of integration (Gauss) points for Volume Element More...
 
auto getFTensor0IntegrationWeight ()
 Get integration weights. More...
 
DEPRECATED MoFEMErrorCode getPorblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 
- Public Member Functions inherited from MoFEM::DataOperator
 DataOperator (const bool symm=true, const bool do_vertices=true, const bool do_edges=true, const bool do_quads=true, const bool do_tris=true, const bool do_tets=true, const bool do_prisms=true)
 
virtual ~DataOperator ()
 
virtual MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, DataForcesAndSourcesCore::EntData &row_data, DataForcesAndSourcesCore::EntData &col_data)
 Operator for bi-linear form, usually to calculate values on left hand side. More...
 
virtual MoFEMErrorCode opLhs (DataForcesAndSourcesCore &row_data, DataForcesAndSourcesCore &col_data, bool symm=true)
 
virtual MoFEMErrorCode opLhs (DataForcesAndSourcesCore &row_data, DataForcesAndSourcesCore &col_data)
 
virtual MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 Operator for linear form, usually to calculate values on right hand side. More...
 
virtual MoFEMErrorCode opRhs (DataForcesAndSourcesCore &data, const bool do_vertices, const bool do_edges, const bool do_quads, const bool do_tris, const bool do_tets, const bool do_prisms, const bool error_if_no_base=true)
 
virtual MoFEMErrorCode opRhs (DataForcesAndSourcesCore &data, const bool error_if_no_base=true)
 
bool getSymm () const
 Get if operator uses symmetry of DOFs or not. More...
 
void setSymm ()
 set if operator is executed taking in account symmetry More...
 
void unSetSymm ()
 unset if operator is executed for non symmetric problem More...
 

Additional Inherited Members

- Public Types inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
enum  OpType { OPROW = 1 << 0, OPCOL = 1 << 1, OPROWCOL = 1 << 2, OPLAST = 1 << 3 }
 Controls loop over entities on element. More...
 
- Public Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
char opType
 
std::string rowFieldName
 
std::string colFieldName
 
FieldSpace sPace
 
- Public Attributes inherited from MoFEM::DataOperator
bool sYmm
 If true assume that matrix is symmetric structure. More...
 
bool doVertices
 If false skip vertices. More...
 
bool doEdges
 If false skip edges. More...
 
bool doQuads
 
bool doTris
 
bool doTets
 
bool doPrisms
 
- Protected Member Functions inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
MoFEMErrorCode setPtrFE (ForcesAndSourcesCore *ptr)
 
ForcesAndSourcesCoregetPtrFE () const
 
ForcesAndSourcesCoregetSidePtrFE () const
 
- Protected Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
ForcesAndSourcesCoreptrFE
 

Detailed Description

default operator for Flat Prism element

Examples
forces_and_sources_testing_flat_prism_element.cpp.

Definition at line 46 of file FlatPrismElementForcesAndSourcesCore.hpp.

Member Function Documentation

◆ getArea()

double MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getArea ( const int  dd)

get face aRea

Parameters
ddif dd == 0 it is for face F3 if dd == 1 is for face F4

Definition at line 53 of file FlatPrismElementForcesAndSourcesCore.hpp.

53  {
54  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
55  ->aRea[0];
56  }

◆ getAreaF3()

double MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getAreaF3 ( )

Definition at line 58 of file FlatPrismElementForcesAndSourcesCore.hpp.

58  {
59  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
60  ->aRea[0];
61  }

◆ getAreaF4()

double MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getAreaF4 ( )

Definition at line 62 of file FlatPrismElementForcesAndSourcesCore.hpp.

62  {
63  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
64  ->aRea[1];
65  }

◆ getCoords()

VectorDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getCoords ( )

get triangle coordinates

Vector has 6 elements, i.e. coordinates on face F3 and F4

Definition at line 95 of file FlatPrismElementForcesAndSourcesCore.hpp.

95  {
96  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)->coords;
97  }

◆ getCoordsAtGaussPts()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getCoordsAtGaussPts ( )

get coordinates at Gauss pts.

Matrix has size (nb integration points)x(coordinates on F3 and F4 = 6), i.e. coordinates on face F3 and F4

Definition at line 105 of file FlatPrismElementForcesAndSourcesCore.hpp.

105  {
106  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
107  ->coordsAtGaussPts;
108  }

◆ getFlatPrismElementForcesAndSourcesCore()

const FlatPrismElementForcesAndSourcesCore* MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getFlatPrismElementForcesAndSourcesCore ( )

return pointer to triangle finite element object

Definition at line 211 of file FlatPrismElementForcesAndSourcesCore.hpp.

211  {
212  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE);
213  }

◆ getHoCoordsAtGaussPtsF3()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getHoCoordsAtGaussPtsF3 ( )

coordinate at Gauss points on face 3 (if hierarchical approximation of element geometry)

Definition at line 113 of file FlatPrismElementForcesAndSourcesCore.hpp.

113  {
114  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
115  ->hoCoordsAtGaussPtsF3;
116  }

◆ getHoCoordsAtGaussPtsF4()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getHoCoordsAtGaussPtsF4 ( )

coordinate at Gauss points on face 4 (if hierarchical approximation of element geometry)

Definition at line 121 of file FlatPrismElementForcesAndSourcesCore.hpp.

121  {
122  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
123  ->hoCoordsAtGaussPtsF4;
124  }

◆ getNormal()

VectorDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormal ( )

get triangle normal

Normal has 6 elements, first 3 are for face F3 another three for face F4

Definition at line 72 of file FlatPrismElementForcesAndSourcesCore.hpp.

72  {
73  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)->normal;
74  }

◆ getNormalF3()

VectorAdaptor MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalF3 ( )

Definition at line 76 of file FlatPrismElementForcesAndSourcesCore.hpp.

76  {
77  double *data =
78  &(static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
79  ->normal[0]);
80  return VectorAdaptor(3, ublas::shallow_array_adaptor<double>(3, data));
81  }
VectorShallowArrayAdaptor< double > VectorAdaptor
Definition: Types.hpp:101

◆ getNormalF4()

VectorAdaptor MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalF4 ( )

Definition at line 83 of file FlatPrismElementForcesAndSourcesCore.hpp.

83  {
84  double *data =
85  &(static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
86  ->normal[3]);
87  return VectorAdaptor(3, ublas::shallow_array_adaptor<double>(3, data));
88  }
VectorShallowArrayAdaptor< double > VectorAdaptor
Definition: Types.hpp:101

◆ getNormalsAtGaussPtF3() [1/2]

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPtF3 ( )

if higher order geometry return normals at face F3 at Gauss pts.

Face 3 is top face in canonical triangle numeration, see [43]

Definition at line 132 of file FlatPrismElementForcesAndSourcesCore.hpp.

132  {
133  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
134  ->nOrmals_at_GaussPtF3;
135  }

◆ getNormalsAtGaussPtF3() [2/2]

ublas::matrix_row<MatrixDouble> MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPtF3 ( const int  gg)

if higher order geometry return normals at Gauss pts.

Face 3 is top face in canonical triangle numeration, see [43]

Parameters
gggauss point number

Definition at line 155 of file FlatPrismElementForcesAndSourcesCore.hpp.

155  {
156  return ublas::matrix_row<MatrixDouble>(
157  static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
159  gg);
160  }

◆ getNormalsAtGaussPtF4() [1/2]

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPtF4 ( )

if higher order geometry return normals at face F4 at Gauss pts.

Face 4 is top face in canonical triangle numeration, see [43]

Definition at line 143 of file FlatPrismElementForcesAndSourcesCore.hpp.

143  {
144  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
145  ->nOrmals_at_GaussPtF4;
146  }

◆ getNormalsAtGaussPtF4() [2/2]

ublas::matrix_row<MatrixDouble> MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPtF4 ( const int  gg)

if higher order geometry return normals at Gauss pts.

Face 3 is top face in canonical triangle numeration, see [43]

Parameters
gggauss point number

Definition at line 169 of file FlatPrismElementForcesAndSourcesCore.hpp.

169  {
170  return ublas::matrix_row<MatrixDouble>(
171  static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
173  gg);
174  }

◆ getTangent1AtGaussPtF3()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getTangent1AtGaussPtF3 ( )

if higher order geometry return tangent vector to triangle at Gauss pts.

Definition at line 179 of file FlatPrismElementForcesAndSourcesCore.hpp.

179  {
180  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
181  ->tAngent1_at_GaussPtF3;
182  }

◆ getTangent1AtGaussPtF4()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getTangent1AtGaussPtF4 ( )

if higher order geometry return tangent vector to triangle at Gauss pts.

Definition at line 195 of file FlatPrismElementForcesAndSourcesCore.hpp.

195  {
196  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
197  ->tAngent1_at_GaussPtF4;
198  }

◆ getTangent2AtGaussPtF3()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getTangent2AtGaussPtF3 ( )

if higher order geometry return tangent vector to triangle at Gauss pts.

Definition at line 187 of file FlatPrismElementForcesAndSourcesCore.hpp.

187  {
188  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
189  ->tAngent2_at_GaussPtF3;
190  }

◆ getTangent2AtGaussPtF4()

MatrixDouble& MoFEM::FlatPrismElementForcesAndSourcesCore::UserDataOperator::getTangent2AtGaussPtF4 ( )

if higher order geometry return tangent vector to triangle at Gauss pts.

Definition at line 203 of file FlatPrismElementForcesAndSourcesCore.hpp.

203  {
204  return static_cast<FlatPrismElementForcesAndSourcesCore *>(ptrFE)
205  ->tAngent2_at_GaussPtF4;
206  }

The documentation for this struct was generated from the following file: