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

default operator for Flat Prism element More...

#include <src/finite_elements/FatPrismElementForcesAndSourcesCore.hpp>

Inheritance diagram for MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator:
[legend]
Collaboration diagram for MoFEM::FatPrismElementForcesAndSourcesCore::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 ()
 
MatrixDoublegetGaussPts ()
 get Gauss pts. in the prism More...
 
MatrixDoublegetGaussPtsTrianglesOnly ()
 get Gauss pts. on triangles More...
 
MatrixDoublegetGaussPtsThroughThickness ()
 get Gauss pts. through thickness More...
 
MatrixDoublegetCoordsAtGaussPts ()
 get coordinates at Gauss pts. More...
 
MatrixDoublegetCoordsAtGaussPtsTrianglesOnly ()
 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...
 
DataForcesAndSourcesCoregetTrianglesOnlyDataStructure ()
 
DataForcesAndSourcesCoregetTroughThicknessDataStructure ()
 
const FatPrismElementForcesAndSourcesCoregetPrismFE ()
 return pointer to fat prism finite element More...
 
- Public Member Functions inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase::UserDataOperator
int getNumNodes ()
 get element number of nodes More...
 
const EntityHandlegetConn ()
 get element connectivity More...
 
double getVolume () const
 element volume (linear geometry) More...
 
doublegetVolume ()
 element volume (linear geometry) More...
 
FTensor::Tensor2< double *, 3, 3 > & getJac ()
 get element Jacobian More...
 
FTensor::Tensor2< double *, 3, 3 > & getInvJac ()
 get element inverse Jacobian More...
 
double getMeasure () const
 get measure of element More...
 
doublegetMeasure ()
 get measure of element More...
 
VectorDoublegetCoords ()
 nodal coordinates More...
 
MatrixDoublegetCoordsAtGaussPts ()
 Gauss points and weight, matrix (nb. of points x 3) More...
 
MatrixDoublegetHoCoordsAtGaussPts ()
 coordinate at Gauss points (if hierarchical approximation of element geometry) More...
 
MatrixDoublegetHoGaussPtsJac ()
 
MatrixDoublegetHoGaussPtsInvJac ()
 
VectorDoublegetHoGaussPtsDetJac ()
 
auto getFTenosr0HoMeasure ()
 
auto getFTensor1CoordsAtGaussPts ()
 Get coordinates at integration points assuming linear geometry. More...
 
auto getFTensor1HoCoordsAtGaussPts ()
 Get coordinates at integration points taking geometry from field. More...
 
auto getFTensor2HoGaussPtsJac ()
 
auto getFTensor2HoGaussPtsInvJac ()
 
VolumeElementForcesAndSourcesCoreBasegetVolumeFE () const
 return pointer to Generic Volume Finite Element object More...
 
MoFEMErrorCode getDivergenceOfHDivBaseFunctions (int side, EntityType type, DataForcesAndSourcesCore::EntData &data, int gg, VectorDouble &div)
 Get divergence of base functions at integration point. More...
 
MoFEMErrorCode getCurlOfHCurlBaseFunctions (int side, EntityType type, DataForcesAndSourcesCore::EntData &data, int gg, MatrixDouble &curl)
 Get curl of base functions at integration point. 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
prism_elements_from_surface.cpp, and prism_polynomial_approximation.cpp.

Definition at line 66 of file FatPrismElementForcesAndSourcesCore.hpp.

Member Function Documentation

◆ getArea()

double MoFEM::FatPrismElementForcesAndSourcesCore::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 218 of file FatPrismElementForcesAndSourcesCore.hpp.

218  {
219  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->aRea[0];
220 }

◆ getAreaF3()

double MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getAreaF3 ( )

Definition at line 223 of file FatPrismElementForcesAndSourcesCore.hpp.

223  {
224  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->aRea[0];
225 }

◆ getAreaF4()

double MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getAreaF4 ( )

Definition at line 227 of file FatPrismElementForcesAndSourcesCore.hpp.

227  {
228  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->aRea[1];
229 }

◆ getCoordsAtGaussPts()

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::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

Examples
prism_elements_from_surface.cpp.

Definition at line 268 of file FatPrismElementForcesAndSourcesCore.hpp.

268  {
269  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
270  ->coordsAtGaussPts;
271 }

◆ getCoordsAtGaussPtsTrianglesOnly()

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getCoordsAtGaussPtsTrianglesOnly ( )

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 274 of file FatPrismElementForcesAndSourcesCore.hpp.

274  {
275  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
276  ->coordsAtGaussPtsTrianglesOnly;
277 }

◆ getGaussPts()

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getGaussPts ( )

get Gauss pts. in the prism

Examples
prism_elements_from_surface.cpp.

Definition at line 251 of file FatPrismElementForcesAndSourcesCore.hpp.

251  {
252  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->gaussPts;
253 }

◆ getGaussPtsThroughThickness()

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getGaussPtsThroughThickness ( )

get Gauss pts. through thickness

Definition at line 262 of file FatPrismElementForcesAndSourcesCore.hpp.

262  {
263  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
264  ->gaussPtsThroughThickness;
265 }

◆ getGaussPtsTrianglesOnly()

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getGaussPtsTrianglesOnly ( )

get Gauss pts. on triangles

Definition at line 256 of file FatPrismElementForcesAndSourcesCore.hpp.

256  {
257  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
258  ->gaussPtsTrianglesOnly;
259 }

◆ getHoCoordsAtGaussPtsF3()

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

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

Definition at line 280 of file FatPrismElementForcesAndSourcesCore.hpp.

280  {
281  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
282  ->hoCoordsAtGaussPtsF3;
283 }

◆ getHoCoordsAtGaussPtsF4()

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

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

Definition at line 286 of file FatPrismElementForcesAndSourcesCore.hpp.

286  {
287  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
288  ->hoCoordsAtGaussPtsF4;
289 }

◆ getNormal()

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

get triangle normal

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

Definition at line 232 of file FatPrismElementForcesAndSourcesCore.hpp.

232  {
233  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->normal;
234 }

◆ getNormalF3()

VectorAdaptor MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalF3 ( )

Definition at line 237 of file FatPrismElementForcesAndSourcesCore.hpp.

237  {
238  double *data =
239  &(static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->normal[0]);
240  return VectorAdaptor(3, ublas::shallow_array_adaptor<double>(3, data));
241 }
VectorShallowArrayAdaptor< double > VectorAdaptor
Definition: Types.hpp:101

◆ getNormalF4()

VectorAdaptor MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getNormalF4 ( )

Definition at line 244 of file FatPrismElementForcesAndSourcesCore.hpp.

244  {
245  double *data =
246  &(static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)->normal[3]);
247  return VectorAdaptor(3, ublas::shallow_array_adaptor<double>(3, data));
248 }
VectorShallowArrayAdaptor< double > VectorAdaptor
Definition: Types.hpp:101

◆ getNormalsAtGaussPtF3() [1/2]

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::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 292 of file FatPrismElementForcesAndSourcesCore.hpp.

292  {
293  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
294  ->nOrmals_at_GaussPtF3;
295 }

◆ getNormalsAtGaussPtF3() [2/2]

ublas::matrix_row< MatrixDouble > MoFEM::FatPrismElementForcesAndSourcesCore::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 304 of file FatPrismElementForcesAndSourcesCore.hpp.

305  {
306  return ublas::matrix_row<MatrixDouble>(
307  static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
309  gg);
310 }

◆ getNormalsAtGaussPtF4() [1/2]

MatrixDouble & MoFEM::FatPrismElementForcesAndSourcesCore::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 298 of file FatPrismElementForcesAndSourcesCore.hpp.

298  {
299  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
300  ->nOrmals_at_GaussPtF4;
301 }

◆ getNormalsAtGaussPtF4() [2/2]

ublas::matrix_row< MatrixDouble > MoFEM::FatPrismElementForcesAndSourcesCore::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 313 of file FatPrismElementForcesAndSourcesCore.hpp.

314  {
315  return ublas::matrix_row<MatrixDouble>(
316  static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
318  gg);
319 }

◆ getPrismFE()

const FatPrismElementForcesAndSourcesCore * MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getPrismFE ( )

return pointer to fat prism finite element

Definition at line 358 of file FatPrismElementForcesAndSourcesCore.hpp.

358  {
359  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE);
360 }

◆ getTangent1AtGaussPtF3()

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

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

Definition at line 322 of file FatPrismElementForcesAndSourcesCore.hpp.

322  {
323  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
324  ->tAngent1_at_GaussPtF3;
325 }

◆ getTangent1AtGaussPtF4()

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

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

Definition at line 334 of file FatPrismElementForcesAndSourcesCore.hpp.

334  {
335  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
336  ->tAngent1_at_GaussPtF4;
337 }

◆ getTangent2AtGaussPtF3()

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

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

Definition at line 328 of file FatPrismElementForcesAndSourcesCore.hpp.

328  {
329  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
330  ->tAngent2_at_GaussPtF3;
331 }

◆ getTangent2AtGaussPtF4()

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

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

Definition at line 340 of file FatPrismElementForcesAndSourcesCore.hpp.

340  {
341  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
342  ->tAngent2_at_GaussPtF4;
343 }

◆ getTrianglesOnlyDataStructure()

DataForcesAndSourcesCore & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getTrianglesOnlyDataStructure ( )

Definition at line 346 of file FatPrismElementForcesAndSourcesCore.hpp.

346  {
347  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
348  ->dataH1TrianglesOnly;
349 }

◆ getTroughThicknessDataStructure()

DataForcesAndSourcesCore & MoFEM::FatPrismElementForcesAndSourcesCore::UserDataOperator::getTroughThicknessDataStructure ( )

Definition at line 352 of file FatPrismElementForcesAndSourcesCore.hpp.

352  {
353  return static_cast<FatPrismElementForcesAndSourcesCore *>(ptrFE)
354  ->dataH1TroughThickness;
355 }

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