v0.8.23
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
MoFEM::ForcesAndSourcesCore::UserDataOperator Struct Reference

Data operator to do calculations at integration points.Is inherited and implemented by user to do calculations. It can be used in many different ways but typically is used to integrate matrices (f.e. stiffness matrix) and the right hand vector (f.e. force vector). More...

#include <src/finite_elements/ForcesAndSourcesCore.hpp>

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

Public Types

enum  OpType { OPROW = 1 << 0, OPCOL = 1 << 1, OPROWCOL = 1 << 2, OPLAST = 1 << 3 }
 Controls loop over entities on element. More...
 

Public Member Functions

 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)
 
virtual ~UserDataOperator ()
 
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...
 
virtual MoFEMErrorCode setPtrFE (ForcesAndSourcesCore *ptr)
 
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...
 
Accessing SNES
Vec getSnesF () const
 
Vec getSnesX () const
 
Mat getSnesA () const
 
Mat getSnesB () const
 
Accessing TS
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
 
Base funtions and integration points
MatrixDoublegetGaussPts ()
 matrix of integration (Gauss) points for Volume Element More...
 
auto getFTensor0IntegrationWeight ()
 Get integration weights. More...
 
Deprecated (do not use)
DEPRECATED MoFEMErrorCode getPorblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 
DEPRECATED MoFEMErrorCode getPorblemColIndices (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...
 

Public Attributes

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 Attributes

ForcesAndSourcesCoreptrFE
 

Detailed Description

Data operator to do calculations at integration points.

Is inherited and implemented by user to do calculations. It can be used in many different ways but typically is used to integrate matrices (f.e. stiffness matrix) and the right hand vector (f.e. force vector).

Note: It is assumed that operator is executed for symmetric problem. That means that is executed for not repeating entities on finite element. For example on triangle we have nodes, 3 edges and one face. Because of symmetry calculations are for: nodes-nodes, nodes-edge0, nodes-edge_1, nodes-edge_2, nodes-face, edges_1-edges_1, edges_1-edge_1, edge_1-edge_2, edge_1-edge_1, edge_1-edge_2, edge_2-edge_2, edge_1-face, edge_1-face, edges_3-face, face - face

In case of non symmetric problem in addition calculations of lower off diagonal terms. F.e. edge_1-edge_0, esges_3-edge_0, edge_3-edge_1,

In that case class variable UserDataOperator::sYmm = false;

NoteL: By default sYmm is set for symmetric problems

Examples
hello_world.cpp, and mesh_smoothing.cpp.

Definition at line 84 of file ForcesAndSourcesCore.hpp.

Member Enumeration Documentation

◆ OpType

Controls loop over entities on element.

OPROW is used if row vector is assembled OPCOL is usually used if column vector is assembled OPROWCOL is usually used for assemble matrices.

For typical problem like Bubnov-Galerkin OPROW and OPCOL are the same. In more general case for example for non-square matrices columns and rows could have different numeration and/or different set of fields.

Enumerator
OPROW 
OPCOL 
OPROWCOL 
OPLAST 

Definition at line 98 of file ForcesAndSourcesCore.hpp.

Constructor & Destructor Documentation

◆ UserDataOperator() [1/3]

MoFEM::ForcesAndSourcesCore::UserDataOperator::UserDataOperator ( const FieldSpace  space,
const char  type = OPLAST,
const bool  symm = true 
)

This Constructor is used typically when some modification base shape functions on some approx. space is applied. Operator is run for all data on space.

User has no access to field data from this operator.

Examples
ElasticityMixedFormulation.hpp, and SmallStrainPlasticity.hpp.

Definition at line 117 of file ForcesAndSourcesCore.hpp.

119  : DataOperator(symm), opType(type), sPace(space), ptrFE(NULL) {}
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)

◆ UserDataOperator() [2/3]

MoFEM::ForcesAndSourcesCore::UserDataOperator::UserDataOperator ( const std::string &  field_name,
const char  type,
const bool  symm = true 
)

Definition at line 121 of file ForcesAndSourcesCore.hpp.

123  : DataOperator(symm), opType(type), rowFieldName(field_name),
124  colFieldName(field_name), sPace(LASTSPACE), ptrFE(NULL) {}
FieldSpace in [ 0, LASTSPACE )
Definition: definitions.h:175
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)

◆ UserDataOperator() [3/3]

MoFEM::ForcesAndSourcesCore::UserDataOperator::UserDataOperator ( const std::string &  row_field_name,
const std::string &  col_field_name,
const char  type,
const bool  symm = true 
)

Definition at line 126 of file ForcesAndSourcesCore.hpp.

129  : DataOperator(symm), opType(type), rowFieldName(row_field_name),
130  colFieldName(col_field_name), sPace(LASTSPACE), ptrFE(NULL) {}
FieldSpace in [ 0, LASTSPACE )
Definition: definitions.h:175
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)

◆ ~UserDataOperator()

virtual MoFEM::ForcesAndSourcesCore::UserDataOperator::~UserDataOperator ( )
virtual

Definition at line 132 of file ForcesAndSourcesCore.hpp.

132 {}

Member Function Documentation

◆ addOpType()

void MoFEM::ForcesAndSourcesCore::UserDataOperator::addOpType ( const OpType  type)

Add operator type.

Definition at line 282 of file ForcesAndSourcesCore.hpp.

◆ getFEEntityHandle()

EntityHandle MoFEM::ForcesAndSourcesCore::UserDataOperator::getFEEntityHandle ( ) const

Return finite element entity handle.

Returns
Finite element entity handle
Examples
UnsaturatedFlow.hpp.

Definition at line 145 of file ForcesAndSourcesCore.hpp.

145  {
146  return getNumeredEntFiniteElementPtr()->getEnt();
147  }
boost::shared_ptr< const NumeredEntFiniteElement > getNumeredEntFiniteElementPtr() const
Return raw pointer to NumeredEntFiniteElement.

◆ getFEMethod()

const FEMethod* MoFEM::ForcesAndSourcesCore::UserDataOperator::getFEMethod ( ) const

Return raw pointer to Finite Element Method object.

Examples
UnsaturatedFlow.hpp.

Definition at line 265 of file ForcesAndSourcesCore.hpp.

265 { return ptrFE; }

◆ getFEName()

const std::string& MoFEM::ForcesAndSourcesCore::UserDataOperator::getFEName ( ) const

Get name of the element.

Definition at line 298 of file ForcesAndSourcesCore.hpp.

298  {
299  return getFEMethod()->feName;
300  }
std::string feName
Name of finite element.
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getFTensor0IntegrationWeight()

auto MoFEM::ForcesAndSourcesCore::UserDataOperator::getFTensor0IntegrationWeight ( )

Get integration weights.

for(int gg = 0; gg!=getGaussPts.size2(); ++gg) {
// integrate something
++t_w;
}
Returns
FTensor::Tensor0<FTensor::PackPtr<double *, 1>>
Examples
HookeElement.cpp, HookeElement.hpp, and UnsaturatedFlow.hpp.

Definition at line 370 of file ForcesAndSourcesCore.hpp.

370  {
372  &(getGaussPts()(getGaussPts().size1() - 1, 0)));
373  }
MatrixDouble & getGaussPts()
matrix of integration (Gauss) points for Volume Element

◆ getGaussPts()

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

matrix of integration (Gauss) points for Volume Element

For triangle: columns 0,1 are x,y coordinates respectively and column 2 is a weight value for example getGaussPts()(1,13) returns y coordinate of 13th Gauss point on particular volume element

For tetrahedron: columns 0,1,2 are x,y,z coordinates respectively and column 3 is a weight value for example getGaussPts()(1,13) returns y coordinate of 13th Gauss point on particular volume element

Examples
HookeElement.cpp, HookeElement.hpp, MagneticElement.hpp, and UnsaturatedFlow.hpp.

Definition at line 353 of file ForcesAndSourcesCore.hpp.

353  {
354  return static_cast<ForcesAndSourcesCore *>(ptrFE)->gaussPts;
355  }

◆ getLoopSize()

int MoFEM::ForcesAndSourcesCore::UserDataOperator::getLoopSize ( ) const

get size of elements in the loop

Returns
loop size

Definition at line 294 of file ForcesAndSourcesCore.hpp.

294 { return getFEMethod()->getLoopSize(); }
int getLoopSize() const
get loop size
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getNinTheLoop()

int MoFEM::ForcesAndSourcesCore::UserDataOperator::getNinTheLoop ( ) const

get number of finite element in the loop

Returns
number of finite element

Definition at line 288 of file ForcesAndSourcesCore.hpp.

288 { return getFEMethod()->getNinTheLoop(); }
int getNinTheLoop() const
get number of evaluated element in the loop
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getNumberOfNodesOnElement()

int MoFEM::ForcesAndSourcesCore::UserDataOperator::getNumberOfNodesOnElement ( )

Get the number of nodes on finite element.

Returns
int

Definition at line 217 of file ForcesAndSourcesCore.hpp.

217  {
218  int num_nodes;
219  CHKERR ptrFE->getNumberOfNodes(num_nodes);
220  return num_nodes;
221  }
#define CHKERR
Inline error check.
Definition: definitions.h:596
MoFEMErrorCode getNumberOfNodes(int &num_nodes) const
Get number of DOFs on element.

◆ getNumeredEntFiniteElementPtr()

boost::shared_ptr<const NumeredEntFiniteElement> MoFEM::ForcesAndSourcesCore::UserDataOperator::getNumeredEntFiniteElementPtr ( ) const

Return raw pointer to NumeredEntFiniteElement.

Examples
ElasticityMixedFormulation.hpp, HookeElement.hpp, and UnsaturatedFlow.hpp.

Definition at line 137 of file ForcesAndSourcesCore.hpp.

137  {
139  };
boost::shared_ptr< const NumeredEntFiniteElement > numeredEntFiniteElementPtr

◆ getOpType()

int MoFEM::ForcesAndSourcesCore::UserDataOperator::getOpType ( ) const

Get operator types.

Returns
Return operator type

Definition at line 271 of file ForcesAndSourcesCore.hpp.

◆ getPorblemColIndices()

DEPRECATED MoFEMErrorCode MoFEM::ForcesAndSourcesCore::UserDataOperator::getPorblemColIndices ( const std::string  filed_name,
const EntityType  type,
const int  side,
VectorInt indices 
) const

Definition at line 390 of file ForcesAndSourcesCore.hpp.

391  {
392  return getProblemColIndices(filed_name, type, side, indices);
393  }
MoFEMErrorCode getProblemColIndices(const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
Get col indices.

◆ getPorblemRowIndices()

DEPRECATED MoFEMErrorCode MoFEM::ForcesAndSourcesCore::UserDataOperator::getPorblemRowIndices ( const std::string  filed_name,
const EntityType  type,
const int  side,
VectorInt indices 
) const

Definition at line 383 of file ForcesAndSourcesCore.hpp.

384  {
385  return getProblemRowIndices(filed_name, type, side, indices);
386  }
MoFEMErrorCode getProblemRowIndices(const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
Get row indices.

◆ getProblemColIndices()

MoFEMErrorCode MoFEM::ForcesAndSourcesCore::UserDataOperator::getProblemColIndices ( const std::string  filed_name,
const EntityType  type,
const int  side,
VectorInt indices 
) const

Get col indices.

Field could be or not declared for this element but is declared for problem

Parameters
field_name
typeentity type
sideside number, any number if type is MBVERTEX
Returns
indices

NOTE: Using those indices to assemble matrix will result in error if new non-zero values need to be created.

Definition at line 1092 of file ForcesAndSourcesCore.cpp.

1094  {
1096  if (ptrFE == NULL)
1097  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY, "data inconsistency");
1098 
1099  switch (type) {
1100  case MBVERTEX:
1101  CHKERR ptrFE->getProblemNodesColIndices(field_name, indices);
1102  break;
1103  default:
1104  CHKERR ptrFE->getProblemTypeColIndices(field_name, type, side, indices);
1105  }
1107 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
MoFEMErrorCode getProblemNodesColIndices(const std::string &field_name, VectorInt &nodes_indices) const
MoFEMErrorCode getProblemTypeColIndices(const std::string &field_name, EntityType type, int side_number, VectorInt &indices) const
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

◆ getProblemRowIndices()

MoFEMErrorCode MoFEM::ForcesAndSourcesCore::UserDataOperator::getProblemRowIndices ( const std::string  filed_name,
const EntityType  type,
const int  side,
VectorInt indices 
) const

Get row indices.

Field could be or not declared for this element but is declared for problem

Parameters
field_name
typeentity type
sideside number, any number if type is MBVERTEX
Returns
indices

NOTE: Using those indices to assemble matrix will result in error if new non-zero values need to be created.

Definition at line 1075 of file ForcesAndSourcesCore.cpp.

1077  {
1079  if (ptrFE == NULL)
1080  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY, "data inconsistency");
1081 
1082  switch (type) {
1083  case MBVERTEX:
1084  CHKERR ptrFE->getProblemNodesRowIndices(field_name, indices);
1085  break;
1086  default:
1087  CHKERR ptrFE->getProblemTypeRowIndices(field_name, type, side, indices);
1088  }
1090 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
MoFEMErrorCode getProblemNodesRowIndices(const std::string &field_name, VectorInt &nodes_indices) const
MoFEMErrorCode getProblemTypeRowIndices(const std::string &field_name, EntityType type, int side_number, VectorInt &indices) const
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

◆ getSideEntity()

EntityHandle MoFEM::ForcesAndSourcesCore::UserDataOperator::getSideEntity ( const int  side_number,
const EntityType  type 
)

Get the side entity.

Note
For vertex is expection. Side basses in argument of function doWork is zero. For other entity types side can be used as argument of this function.
MoFEMErrorCode doWork(int side, EntityType type,
if (type == MBVERTEX) {
for (int n = 0; n != number_of_nodes; ++n)
EntityHandle ent = getSideEntity(n, type);
// Do somthing
} else {
EntityHandle ent = getSideEntity(side, type);
// Do somthing
}
}
Parameters
side_number
type

Definition at line 204 of file ForcesAndSourcesCore.hpp.

205  {
206  if (auto side_ptr = getSideNumberPtr(side_number, type).lock())
207  return side_ptr->ent;
208  else
209  return 0;
210  }
boost::weak_ptr< SideNumber > getSideNumberPtr(const int side_number, const EntityType type)
Get the side number pointer.

◆ getSideNumberPtr()

boost::weak_ptr<SideNumber> MoFEM::ForcesAndSourcesCore::UserDataOperator::getSideNumberPtr ( const int  side_number,
const EntityType  type 
)

Get the side number pointer.

Note
For vertex is expection. Side basses in argument of function doWork is zero. For other entity types side can be used as argument of this function.
Parameters
side_number
type
Returns
boost::weak_ptr<SideNumber>

Definition at line 160 of file ForcesAndSourcesCore.hpp.

161  {
162  auto &side_table_by_side_and_type =
163  ptrFE->numeredEntFiniteElementPtr->getSideNumberTable().get<1>();
164  auto side_it = side_table_by_side_and_type.find(
165  boost::make_tuple(type, side_number));
166  if (side_it != side_table_by_side_and_type.end())
167  return *side_it;
168  else
169  return boost::weak_ptr<SideNumber>();
170  }
boost::shared_ptr< const NumeredEntFiniteElement > numeredEntFiniteElementPtr

◆ getSnesA()

Mat MoFEM::ForcesAndSourcesCore::UserDataOperator::getSnesA ( ) const

Definition at line 310 of file ForcesAndSourcesCore.hpp.

310 { return getFEMethod()->snes_A; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getSnesB()

Mat MoFEM::ForcesAndSourcesCore::UserDataOperator::getSnesB ( ) const

Definition at line 312 of file ForcesAndSourcesCore.hpp.

312 { return getFEMethod()->snes_B; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getSnesF()

Vec MoFEM::ForcesAndSourcesCore::UserDataOperator::getSnesF ( ) const

Definition at line 306 of file ForcesAndSourcesCore.hpp.

306 { return getFEMethod()->snes_f; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getSnesX()

Vec MoFEM::ForcesAndSourcesCore::UserDataOperator::getSnesX ( ) const

Definition at line 308 of file ForcesAndSourcesCore.hpp.

308 { return getFEMethod()->snes_x; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSA()

Mat MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSA ( ) const

Definition at line 326 of file ForcesAndSourcesCore.hpp.

326 { return getFEMethod()->ts_A; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSa()

double MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSa ( ) const

Definition at line 334 of file ForcesAndSourcesCore.hpp.

334 { return getFEMethod()->ts_a; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSB()

Mat MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSB ( ) const

Definition at line 328 of file ForcesAndSourcesCore.hpp.

328 { return getFEMethod()->ts_B; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSf()

Vec MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSf ( ) const

Definition at line 324 of file ForcesAndSourcesCore.hpp.

324 { return getFEMethod()->ts_F; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSstep()

int MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSstep ( ) const

Definition at line 330 of file ForcesAndSourcesCore.hpp.

330 { return getFEMethod()->ts_step; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTStime()

double MoFEM::ForcesAndSourcesCore::UserDataOperator::getTStime ( ) const

Definition at line 332 of file ForcesAndSourcesCore.hpp.

332 { return getFEMethod()->ts_t; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSu()

Vec MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSu ( ) const

Definition at line 320 of file ForcesAndSourcesCore.hpp.

320 { return getFEMethod()->ts_u; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ getTSu_t()

Vec MoFEM::ForcesAndSourcesCore::UserDataOperator::getTSu_t ( ) const

Definition at line 322 of file ForcesAndSourcesCore.hpp.

322 { return getFEMethod()->ts_u_t; }
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.

◆ setOpType()

void MoFEM::ForcesAndSourcesCore::UserDataOperator::setOpType ( const OpType  type)

Set operator type.

Parameters
Operatortype

Definition at line 277 of file ForcesAndSourcesCore.hpp.

◆ setPtrFE()

virtual MoFEMErrorCode MoFEM::ForcesAndSourcesCore::UserDataOperator::setPtrFE ( ForcesAndSourcesCore ptr)
virtual

Definition at line 257 of file ForcesAndSourcesCore.hpp.

257  {
259  ptrFE = ptr;
261  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

Member Data Documentation

◆ colFieldName

std::string MoFEM::ForcesAndSourcesCore::UserDataOperator::colFieldName

Definition at line 107 of file ForcesAndSourcesCore.hpp.

◆ opType

char MoFEM::ForcesAndSourcesCore::UserDataOperator::opType

Definition at line 105 of file ForcesAndSourcesCore.hpp.

◆ ptrFE

ForcesAndSourcesCore* MoFEM::ForcesAndSourcesCore::UserDataOperator::ptrFE
protected

Definition at line 398 of file ForcesAndSourcesCore.hpp.

◆ rowFieldName

std::string MoFEM::ForcesAndSourcesCore::UserDataOperator::rowFieldName

Definition at line 106 of file ForcesAndSourcesCore.hpp.

◆ sPace

FieldSpace MoFEM::ForcesAndSourcesCore::UserDataOperator::sPace

Definition at line 108 of file ForcesAndSourcesCore.hpp.


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