v0.13.0
Public Member Functions | Public Attributes | List of all members
PeriodicNitscheConstrains::PeriodicFace Struct Reference

#include <users_modules/homogenisation/src/NitschePeriodicMethod.hpp>

Inheritance diagram for PeriodicNitscheConstrains::PeriodicFace:
[legend]
Collaboration diagram for PeriodicNitscheConstrains::PeriodicFace:
[legend]

Public Member Functions

 PeriodicFace (MoFEM::Interface &m_field, CommonData &common_data)
 
int getRule (int order)
 
PetscErrorCode setGaussPts (int order)
 

Public Attributes

CommonDatacommonData
 

Detailed Description

Definition at line 154 of file NitschePeriodicMethod.hpp.

Constructor & Destructor Documentation

◆ PeriodicFace()

PeriodicNitscheConstrains::PeriodicFace::PeriodicFace ( MoFEM::Interface m_field,
CommonData common_data 
)

Definition at line 157 of file NitschePeriodicMethod.hpp.

157  :
159  commonData(common_data) {}
FaceElementForcesAndSourcesCoreSwitch< 0 > FaceElementForcesAndSourcesCore
Face finite element default.

Member Function Documentation

◆ getRule()

int PeriodicNitscheConstrains::PeriodicFace::getRule ( int  order)

Definition at line 161 of file NitschePeriodicMethod.hpp.

161 { return -1; }

◆ setGaussPts()

PetscErrorCode PeriodicNitscheConstrains::PeriodicFace::setGaussPts ( int  order)

Definition at line 163 of file NitschePeriodicMethod.hpp.

163  {
164  PetscFunctionBegin;
165 
166  try {
167 
168  EntityHandle face = numeredEntFiniteElementPtr->getEnt();
169  gaussPts.resize(3,commonData.localCoordsMap[face].size());
170  //cerr << commonData.localCoordsMap[face].size() << endl;
171  for(unsigned int ffgg = 0;ffgg!=commonData.localCoordsMap[face].size();ffgg++) {
172  //cerr << commonData.localCoordsMap[face][ffgg] << endl;
173  gaussPts(0,ffgg) = commonData.localCoordsMap[face][ffgg][0];
174  gaussPts(1,ffgg) = commonData.localCoordsMap[face][ffgg][1];
175  gaussPts(2,ffgg) = 0; // not used, since filed on this face is not integrated
176  }
177 
178  } catch (const std::exception& ex) {
179  ostringstream ss;
180  ss << "throw in method: " << ex.what() << endl;
181  SETERRQ(PETSC_COMM_SELF,1,ss.str().c_str());
182  }
183  PetscFunctionReturn(0);
184  }
map< EntityHandle, vector< VectorDouble > > localCoordsMap

Member Data Documentation

◆ commonData

CommonData& PeriodicNitscheConstrains::PeriodicFace::commonData

Definition at line 156 of file NitschePeriodicMethod.hpp.


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