v0.8.13
Public Member Functions | List of all members
MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator Struct Reference

default operator for TRI element More...

#include <src/finite_elements/FaceElementForcesAndSourcesCore.hpp>

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

Public Member Functions

 UserDataOperator (const FieldSpace space)
 
 UserDataOperator (const std::string &field_name, const char type)
 
 UserDataOperator (const std::string &row_field_name, const std::string &col_field_name, const char type, const bool symm=true)
 
double getArea ()
 get area of face More...
 
double getMeasure ()
 get measure of element More...
 
VectorDoublegetNormal ()
 get triangle normal More...
 
VectorDoublegetTangent1 ()
 get triangle tangent 1 More...
 
VectorDoublegetTangent2 ()
 get triangle tangent 2 More...
 
auto getFTensor1Normal ()
 get normal as tensor More...
 
DEPRECATED auto getTensor1Normal ()
 
auto getFTensor1Tangent1 ()
 get tangentOne as tensor More...
 
DEPRECATED auto getTensor1Tangent1 ()
 
auto getFTensor2Tangent1 ()
 get tangentTwo as tensor More...
 
DEPRECATED auto getTensor2Tangent1 ()
 
int getNumNodes ()
 get element number of nodes More...
 
const EntityHandlegetConn ()
 get element connectivity More...
 
VectorDoublegetCoords ()
 get triangle coordinates More...
 
auto getFTensor1Coords ()
 get get coords at gauss points More...
 
DEPRECATED auto getTensor1Coords ()
 
MatrixDoublegetGaussPts ()
 get matrix of integration (Gauss) points on Face Element where columns 0,1 are x,y coordinates respectively and column 2 is a value of weight for example getGaussPts()(1,13) returns y coordinate of 13th Gauss point on particular face element More...
 
auto getFTensor0IntegrationWeight ()
 Get integration weights. More...
 
MatrixDoublegetCoordsAtGaussPts ()
 Gauss points and weight, matrix (nb. of points x 3) More...
 
auto getFTensor1CoordsAtGaussPts ()
 get coordinates at Gauss pts. More...
 
DEPRECATED auto getTensor1CoordsAtGaussPts ()
 
MatrixDoublegetHoCoordsAtGaussPts ()
 coordinate at Gauss points (if hierarchical approximation of element geometry) More...
 
auto getFTensor1HoCoordsAtGaussPts ()
 get coordinates at Gauss pts (takes in account ho approx. of geometry) More...
 
DEPRECATED auto getTensor1HoCoordsAtGaussPts ()
 
MatrixDoublegetNormalsAtGaussPts ()
 if higher order geometry return normals at Gauss pts. More...
 
DEPRECATED MatrixDoublegetNormalsAtGaussPt ()
 
ublas::matrix_row< MatrixDoublegetNormalsAtGaussPts (const int gg)
 if higher order geometry return normals at Gauss pts. More...
 
DEPRECATED auto getNormalsAtGaussPt (const int gg)
 
MatrixDoublegetTangent1AtGaussPts ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
DEPRECATED MatrixDoublegetTangent1AtGaussPt ()
 
MatrixDoublegetTangent2AtGaussPts ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
DEPRECATED MatrixDoublegetTangent2AtGaussPt ()
 
auto getFTensor1NormalsAtGaussPts ()
 get normal at integration points More...
 
DEPRECATED auto getTensor1NormalsAtGaussPt ()
 
auto getFTensor1Tangent1AtGaussPts ()
 get tangent 1 at integration points More...
 
DEPRECATED auto getTensor1Tangent1AtGaussPt ()
 
auto getFTensor1Tangent2AtGaussPts ()
 get tangent 2 at integration points More...
 
DEPRECATED auto getTensor1Tangent2AtGaussPt ()
 
DEPRECATED const FaceElementForcesAndSourcesCoregetFaceElementForcesAndSourcesCore ()
 
DEPRECATED const FaceElementForcesAndSourcesCoregetTriFE ()
 
const FaceElementForcesAndSourcesCoregetFaceFE ()
 return pointer to Generic Triangle Finite Element object More...
 
MoFEMErrorCode loopSideVolumes (const string &fe_name, VolumeElementForcesAndSourcesCoreOnSide &method)
 
- 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)
 
virtual ~UserDataOperator ()
 
boost::shared_ptr< const NumeredEntFiniteElementgetNumeredEntFiniteElementPtr () const
 Return raw pointer to NumeredEntFiniteElement. More...
 
EntityHandle getFEEntityHandle () const
 Return finite element entity handle. More...
 
MoFEMErrorCode getProblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get row indices. More...
 
DEPRECATED MoFEMErrorCode getPorblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 
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)
 
DEPRECATED MoFEMErrorCode getPorblemColIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 
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
 
- 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 right 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 left 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 Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
ForcesAndSourcesCoreptrFE
 

Detailed Description

default operator for TRI element

Examples:
hello_world.cpp, MagneticElement.hpp, simple_elasticity.cpp, simple_interface.cpp, and UnsaturatedFlow.hpp.

Definition at line 85 of file FaceElementForcesAndSourcesCore.hpp.

Constructor & Destructor Documentation

◆ UserDataOperator() [1/3]

MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::UserDataOperator ( const FieldSpace  space)
Examples:
analytical_poisson_field_split.cpp.

Definition at line 87 of file FaceElementForcesAndSourcesCore.hpp.

ForcesAndSourcesCore::UserDataOperator UserDataOperator

◆ UserDataOperator() [2/3]

MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::UserDataOperator ( const std::string &  field_name,
const char  type 
)

Definition at line 90 of file FaceElementForcesAndSourcesCore.hpp.

91  : ForcesAndSourcesCore::UserDataOperator(field_name, type) {}
ForcesAndSourcesCore::UserDataOperator UserDataOperator

◆ UserDataOperator() [3/3]

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

Definition at line 93 of file FaceElementForcesAndSourcesCore.hpp.

96  : ForcesAndSourcesCore::UserDataOperator(row_field_name, col_field_name,
97  type, symm){};
ForcesAndSourcesCore::UserDataOperator UserDataOperator

Member Function Documentation

◆ getArea()

double MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getArea ( )

◆ getConn()

const EntityHandle* MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getConn ( )

get element connectivity

Definition at line 173 of file FaceElementForcesAndSourcesCore.hpp.

◆ getCoords()

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

◆ getCoordsAtGaussPts()

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

Gauss points and weight, matrix (nb. of points x 3)

Column 0-2 integration points coordinate x and y, respectively. At rows are integration points.

Examples:
UnsaturatedFlow.hpp.

Definition at line 242 of file FaceElementForcesAndSourcesCore.hpp.

◆ getFaceElementForcesAndSourcesCore()

DEPRECATED const FaceElementForcesAndSourcesCore* MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFaceElementForcesAndSourcesCore ( )
Deprecated:
use getFaceFE instead

Definition at line 412 of file FaceElementForcesAndSourcesCore.hpp.

412  {
413  return getFaceFE();
414  }
const FaceElementForcesAndSourcesCore * getFaceFE()
return pointer to Generic Triangle Finite Element object

◆ getFaceFE()

const FaceElementForcesAndSourcesCore* MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFaceFE ( )

return pointer to Generic Triangle Finite Element object

Definition at line 424 of file FaceElementForcesAndSourcesCore.hpp.

◆ getFTensor0IntegrationWeight()

auto MoFEM::FaceElementForcesAndSourcesCore::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:
analytical_poisson_field_split.cpp, and UnsaturatedFlow.hpp.

Definition at line 231 of file FaceElementForcesAndSourcesCore.hpp.

231  {
233  &(getGaussPts()(2, 0)));
234  }
MatrixDouble & getGaussPts()
get matrix of integration (Gauss) points on Face Element where columns 0,1 are x,y coordinates respec...

◆ getFTensor1Coords()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1Coords ( )

get get coords at gauss points

auto t_coords = getFTensor1Coords();
t_center(i) = 0;
for(int nn = 0;nn!=3;nn++) {
t_center(i) += t_coords(i);
++t_coords;
}
t_center(i) /= 3;

Definition at line 199 of file FaceElementForcesAndSourcesCore.hpp.

199  {
200  double *ptr = &*getCoords().data().begin();
201  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
202  &ptr[2]);
203  }

◆ getFTensor1CoordsAtGaussPts()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1CoordsAtGaussPts ( )

get coordinates at Gauss pts.

Definition at line 249 of file FaceElementForcesAndSourcesCore.hpp.

249  {
250  double *ptr = &*getCoordsAtGaussPts().data().begin();
251  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
252  &ptr[2]);
253  }
MatrixDouble & getCoordsAtGaussPts()
Gauss points and weight, matrix (nb. of points x 3)

◆ getFTensor1HoCoordsAtGaussPts()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1HoCoordsAtGaussPts ( )

get coordinates at Gauss pts (takes in account ho approx. of geometry)

Definition at line 275 of file FaceElementForcesAndSourcesCore.hpp.

275  {
276  if (getHoCoordsAtGaussPts().size1() == 0 &&
277  getHoCoordsAtGaussPts().size2() != 3) {
278  return getFTensor1Coords();
279  }
280  double *ptr = &*getHoCoordsAtGaussPts().data().begin();
281  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
282  &ptr[2]);
283  }
MatrixDouble & getHoCoordsAtGaussPts()
coordinate at Gauss points (if hierarchical approximation of element geometry)

◆ getFTensor1Normal()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1Normal ( )

get normal as tensor

Examples:
UnsaturatedFlow.hpp.

Definition at line 133 of file FaceElementForcesAndSourcesCore.hpp.

133  {
134  double *ptr = &*getNormal().data().begin();
135  return FTensor::Tensor1<double *, 3>(ptr, &ptr[1], &ptr[2]);
136  }

◆ getFTensor1NormalsAtGaussPts()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1NormalsAtGaussPts ( )

get normal at integration points

Example:

double nrm2;
for(int gg = gg!=data.getN().size1();gg++) {
nrm2 = sqrt(t_normal(i)*t_normal(i));
++t_normal;
}

Definition at line 370 of file FaceElementForcesAndSourcesCore.hpp.

370  {
371  double *ptr = &*getNormalsAtGaussPts().data().begin();
372  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
373  &ptr[2]);
374  }
MatrixDouble & getNormalsAtGaussPts()
if higher order geometry return normals at Gauss pts.

◆ getFTensor1Tangent1()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1Tangent1 ( )

get tangentOne as tensor

Definition at line 143 of file FaceElementForcesAndSourcesCore.hpp.

143  {
144  double *ptr = &*getTangent1().data().begin();
145  return FTensor::Tensor1<double *, 3>(ptr, &ptr[1], &ptr[2]);
146  }

◆ getFTensor1Tangent1AtGaussPts()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1Tangent1AtGaussPts ( )

get tangent 1 at integration points

Definition at line 384 of file FaceElementForcesAndSourcesCore.hpp.

384  {
385  double *ptr = &*getTangent1AtGaussPts().data().begin();
386  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
387  &ptr[2]);
388  }
MatrixDouble & getTangent1AtGaussPts()
if higher order geometry return tangent vector to triangle at Gauss pts.

◆ getFTensor1Tangent2AtGaussPts()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor1Tangent2AtGaussPts ( )

get tangent 2 at integration points

Definition at line 398 of file FaceElementForcesAndSourcesCore.hpp.

398  {
399  double *ptr = &*getTangent2AtGaussPts().data().begin();
400  return FTensor::Tensor1<FTensor::PackPtr<double *, 3>, 3>(ptr, &ptr[1],
401  &ptr[2]);
402  }
MatrixDouble & getTangent2AtGaussPts()
if higher order geometry return tangent vector to triangle at Gauss pts.

◆ getFTensor2Tangent1()

auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getFTensor2Tangent1 ( )

get tangentTwo as tensor

Definition at line 155 of file FaceElementForcesAndSourcesCore.hpp.

155  {
156  double *ptr = &*getTangent2().data().begin();
157  return FTensor::Tensor1<double *, 3>(ptr, &ptr[1], &ptr[2]);
158  }

◆ getGaussPts()

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

get matrix of integration (Gauss) points on Face Element where columns 0,1 are x,y coordinates respectively and column 2 is a value of weight for example getGaussPts()(1,13) returns y coordinate of 13th Gauss point on particular face element

Examples:
analytical_poisson_field_split.cpp, MagneticElement.hpp, and UnsaturatedFlow.hpp.

Definition at line 214 of file FaceElementForcesAndSourcesCore.hpp.

◆ getHoCoordsAtGaussPts()

MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getHoCoordsAtGaussPts ( )

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

Note: returned matrix has size 0 in rows and columns if no HO approximation of geometry is available.

Examples:
MagneticElement.hpp.

Definition at line 267 of file FaceElementForcesAndSourcesCore.hpp.

◆ getMeasure()

double MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getMeasure ( )

get measure of element

Returns
area of face

Definition at line 111 of file FaceElementForcesAndSourcesCore.hpp.

◆ getNormal()

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

◆ getNormalsAtGaussPt() [1/2]

DEPRECATED MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPt ( )
Deprecated:
use getNormalsAtGaussPts

Definition at line 302 of file FaceElementForcesAndSourcesCore.hpp.

302  {
303  return getNormalsAtGaussPts();
304  }
MatrixDouble & getNormalsAtGaussPts()
if higher order geometry return normals at Gauss pts.

◆ getNormalsAtGaussPt() [2/2]

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPt ( const int  gg)
Deprecated:
use getNormalsAtGaussPts

Definition at line 318 of file FaceElementForcesAndSourcesCore.hpp.

318  {
319  return getNormalsAtGaussPts(gg);
320  }
MatrixDouble & getNormalsAtGaussPts()
if higher order geometry return normals at Gauss pts.

◆ getNormalsAtGaussPts() [1/2]

MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPts ( )

if higher order geometry return normals at Gauss pts.

Note: returned matrix has size 0 in rows and columns if no HO approximation of geometry is available.

Examples:
MagneticElement.hpp.

Definition at line 296 of file FaceElementForcesAndSourcesCore.hpp.

◆ getNormalsAtGaussPts() [2/2]

ublas::matrix_row<MatrixDouble> MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getNormalsAtGaussPts ( const int  gg)

if higher order geometry return normals at Gauss pts.

Parameters
gggauss point number

Definition at line 310 of file FaceElementForcesAndSourcesCore.hpp.

310  {
311  return ublas::matrix_row<MatrixDouble>(
312  static_cast<FaceElementForcesAndSourcesCore *>(ptrFE)
314  gg);
315  }

◆ getNumNodes()

int MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getNumNodes ( )

◆ getTangent1()

VectorDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent1 ( )

◆ getTangent1AtGaussPt()

DEPRECATED MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent1AtGaussPt ( )
Deprecated:
use getTangent1AtGaussPts

Definition at line 335 of file FaceElementForcesAndSourcesCore.hpp.

335  {
336  return getTangent1AtGaussPts();
337  }
MatrixDouble & getTangent1AtGaussPts()
if higher order geometry return tangent vector to triangle at Gauss pts.

◆ getTangent1AtGaussPts()

MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent1AtGaussPts ( )

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

Note: returned matrix has size 0 in rows and columns if no HO approximation of geometry is avaliable.

Definition at line 329 of file FaceElementForcesAndSourcesCore.hpp.

◆ getTangent2()

VectorDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent2 ( )

◆ getTangent2AtGaussPt()

DEPRECATED MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent2AtGaussPt ( )
Deprecated:
use getTangent2AtGaussPts

Definition at line 352 of file FaceElementForcesAndSourcesCore.hpp.

352  {
353  return getTangent2AtGaussPts();
354  }
MatrixDouble & getTangent2AtGaussPts()
if higher order geometry return tangent vector to triangle at Gauss pts.

◆ getTangent2AtGaussPts()

MatrixDouble& MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTangent2AtGaussPts ( )

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

Note: returned matrix has size 0 in rows and columns if no HO approximation of geometry is avaliable.

Definition at line 346 of file FaceElementForcesAndSourcesCore.hpp.

◆ getTensor1Coords()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1Coords ( )
Deprecated:
use getFTensor1Coords

Definition at line 206 of file FaceElementForcesAndSourcesCore.hpp.

206  {
207  return getFTensor1Coords(); }

◆ getTensor1CoordsAtGaussPts()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1CoordsAtGaussPts ( )
Deprecated:
use getFTensor1CoordsAtGaussPts

Definition at line 256 of file FaceElementForcesAndSourcesCore.hpp.

256  {
258  }

◆ getTensor1HoCoordsAtGaussPts()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1HoCoordsAtGaussPts ( )
Deprecated:
use getTensor1HoCoordsAtGaussPts

Definition at line 286 of file FaceElementForcesAndSourcesCore.hpp.

286  {
288  }
auto getFTensor1HoCoordsAtGaussPts()
get coordinates at Gauss pts (takes in account ho approx. of geometry)

◆ getTensor1Normal()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1Normal ( )

◆ getTensor1NormalsAtGaussPt()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1NormalsAtGaussPt ( )
Deprecated:
use getFTensor1NormalsAtGaussPt

Definition at line 377 of file FaceElementForcesAndSourcesCore.hpp.

377  {
379  }

◆ getTensor1Tangent1()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1Tangent1 ( )
Deprecated:
use getFTensor1Tangent1

Definition at line 149 of file FaceElementForcesAndSourcesCore.hpp.

149  {
150  return getFTensor1Tangent1();
151  }

◆ getTensor1Tangent1AtGaussPt()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1Tangent1AtGaussPt ( )
Deprecated:
use getFTensor1Tangent1AtGaussPt

Definition at line 391 of file FaceElementForcesAndSourcesCore.hpp.

391  {
393  }
auto getFTensor1Tangent1AtGaussPts()
get tangent 1 at integration points

◆ getTensor1Tangent2AtGaussPt()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor1Tangent2AtGaussPt ( )
Deprecated:
use getFTensor1Tangent2AtGaussPt

Definition at line 405 of file FaceElementForcesAndSourcesCore.hpp.

405  {
407  }
auto getFTensor1Tangent2AtGaussPts()
get tangent 2 at integration points

◆ getTensor2Tangent1()

DEPRECATED auto MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTensor2Tangent1 ( )
Deprecated:
use getFTensor2Tangent1

Definition at line 161 of file FaceElementForcesAndSourcesCore.hpp.

161  {
162  return getFTensor2Tangent1();
163  }

◆ getTriFE()

DEPRECATED const FaceElementForcesAndSourcesCore* MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getTriFE ( )
Deprecated:
use getFaceFE instead

Definition at line 418 of file FaceElementForcesAndSourcesCore.hpp.

418  {
419  return getFaceFE();
420  }
const FaceElementForcesAndSourcesCore * getFaceFE()
return pointer to Generic Triangle Finite Element object

◆ loopSideVolumes()

MoFEMErrorCode UserDataOperator::loopSideVolumes ( const string &  fe_name,
VolumeElementForcesAndSourcesCoreOnSide method 
)

User call this function to loop over elements on the side of face. This function calls MoFEM::VolumeElementForcesAndSourcesCoreOnSide with is operator to do calculations.

Parameters
fe_nameName of the element
methodFinite element object
Returns
error code

Definition at line 80 of file FaceElementForcesAndSourcesCore.cpp.

81  {
83 
84  const EntityHandle ent = getNumeredEntFiniteElementPtr()->getEnt();
85  const Problem *problem_ptr = getFEMethod()->problemPtr;
86  Range adjacent_volumes;
87  CHKERR getFaceFE()->mField.getInterface<BitRefManager>()->getAdjacenciesAny(
88  ent, 3, adjacent_volumes);
89  typedef NumeredEntFiniteElement_multiIndex::index<
90  Composite_Name_And_Ent_mi_tag>::type FEByComposite;
91  FEByComposite &numered_fe = (const_cast<NumeredEntFiniteElement_multiIndex &>(
92  problem_ptr->numeredFiniteElements))
93  .get<Composite_Name_And_Ent_mi_tag>();
94 
95  method.feName = fe_name;
96 
97  CHKERR method.setFaceFEPtr(getFaceFE());
98  CHKERR method.copyBasicMethod(*getFEMethod());
99  CHKERR method.copyKsp(*getFEMethod());
100  CHKERR method.copySnes(*getFEMethod());
101  CHKERR method.copyTs(*getFEMethod());
102 
103  CHKERR method.preProcess();
104 
105  int nn = 0;
106  method.loopSize = adjacent_volumes.size();
107  for (Range::iterator vit = adjacent_volumes.begin();
108  vit != adjacent_volumes.end(); vit++) {
109  FEByComposite::iterator miit =
110  numered_fe.find(boost::make_tuple(fe_name, *vit));
111  if (miit != numered_fe.end()) {
112  // cerr << **miit << endl;
113  // cerr << &(**miit) << endl;
114  // cerr << (*miit)->getEnt() << endl;
115  method.nInTheLoop = nn++;
116  method.numeredEntFiniteElementPtr = *miit;
117  method.dataPtr = (*miit)->sPtr->data_dofs;
118  method.rowPtr = (*miit)->rows_dofs;
119  method.colPtr = (*miit)->cols_dofs;
120  CHKERR method();
121  }
122  }
123 
124  CHKERR method.postProcess();
125 
127 }
boost::shared_ptr< const NumeredEntFiniteElement > getNumeredEntFiniteElementPtr() const
Return raw pointer to NumeredEntFiniteElement.
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:495
const Problem * problemPtr
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.
multi_index_container< boost::shared_ptr< NumeredEntFiniteElement >, indexed_by< ordered_unique< tag< Unique_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, UId, &NumeredEntFiniteElement::getGlobalUniqueId > >, ordered_non_unique< tag< Part_mi_tag >, member< NumeredEntFiniteElement, unsigned int, &NumeredEntFiniteElement::part > >, ordered_non_unique< tag< FiniteElement_name_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef > >, ordered_non_unique< tag< Ent_mi_tag >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, EntityHandle, &NumeredEntFiniteElement::getEnt > >, ordered_non_unique< tag< Composite_Name_And_Ent_mi_tag >, composite_key< NumeredEntFiniteElement, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef >, const_mem_fun< NumeredEntFiniteElement::interface_type_EntFiniteElement, EntityHandle, &NumeredEntFiniteElement::getEnt > > >, ordered_non_unique< tag< Composite_Name_And_Part_mi_tag >, composite_key< NumeredEntFiniteElement, const_mem_fun< NumeredEntFiniteElement::interface_type_FiniteElement, boost::string_ref, &NumeredEntFiniteElement::getNameRef >, member< NumeredEntFiniteElement, unsigned int, &NumeredEntFiniteElement::part > > > > > NumeredEntFiniteElement_multiIndex
MultiIndex for entities for NumeredEntFiniteElement.
MoFEMErrorCode getInterface(const MOFEMuuid &uuid, IFACE *&iface) const
Get interface by uuid and return reference to pointer of interface.
#define CHKERR
Inline error check.
Definition: definitions.h:614
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:439
const FaceElementForcesAndSourcesCore * getFaceFE()
return pointer to Generic Triangle Finite Element object

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