v0.8.4
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
MoFEM::DataForcesAndSourcesCore Struct Reference

data structure for finite element entityIt keeps that about indices of degrees of freedom, dofs data, base functions functions, entity side number, type of entities, approximation order, etc. More...

#include <src/finite_elements/DataStructures.hpp>

Inheritance diagram for MoFEM::DataForcesAndSourcesCore:
[legend]

Classes

struct  EntData
 Data on single entity (This is passed as argument to DataOperator::doWork) More...
 

Public Member Functions

MoFEMErrorCode resetFieldDependentData ()
 
 DataForcesAndSourcesCore (EntityType type)
 
virtual ~DataForcesAndSourcesCore ()
 

Public Attributes

std::bitset< LASTSPACEsPace
 spaces on element More...
 
std::bitset< LASTBASEbAse
 bases on element More...
 
ublas::matrix< intfacesNodes
 nodes on finite element faces More...
 
std::bitset< LASTSPACEspacesOnEntities [MBMAXTYPE]
 spaces on entity types More...
 
std::bitset< LASTBASEbasesOnEntities [MBMAXTYPE]
 bases on entity types More...
 
std::bitset< LASTBASEbasesOnSpaces [LASTSPACE]
 base on spaces More...
 
boost::ptr_vector< EntDatadataOnEntities [MBMAXTYPE]
 

Protected Member Functions

 DataForcesAndSourcesCore ()
 

Friends

std::ostream & operator<< (std::ostream &os, const DataForcesAndSourcesCore &e)
 

Detailed Description

data structure for finite element entity

It keeps that about indices of degrees of freedom, dofs data, base functions functions, entity side number, type of entities, approximation order, etc.

Definition at line 166 of file DataStructures.hpp.

Constructor & Destructor Documentation

◆ DataForcesAndSourcesCore() [1/2]

MoFEM::DataForcesAndSourcesCore::DataForcesAndSourcesCore ( EntityType  type)

Definition at line 183 of file DataStructures.cpp.

183  {
184  cOnstructor(this, type, EntData());
185 }
void cOnstructor(DataForcesAndSourcesCore *data, EntityType type, T)
DataForcesAndSourcesCore::EntData EntData

◆ ~DataForcesAndSourcesCore()

virtual MoFEM::DataForcesAndSourcesCore::~DataForcesAndSourcesCore ( )
virtual

Definition at line 1293 of file DataStructures.hpp.

1293 {}

◆ DataForcesAndSourcesCore() [2/2]

MoFEM::DataForcesAndSourcesCore::DataForcesAndSourcesCore ( )
protected

Definition at line 1299 of file DataStructures.hpp.

1299 {}

Member Function Documentation

◆ resetFieldDependentData()

MoFEMErrorCode MoFEM::DataForcesAndSourcesCore::resetFieldDependentData ( )

Reset data associated with particular field name

Returns
error code

Definition at line 1278 of file DataStructures.hpp.

1278  {
1279 
1281  for (EntityType t = MBVERTEX; t != MBMAXTYPE; t++) {
1282  boost::ptr_vector<EntData>::iterator ent_data_it =
1283  dataOnEntities[t].begin();
1284  for (; ent_data_it != dataOnEntities[t].end(); ent_data_it++) {
1285  ierr = ent_data_it->resetFieldDependentData();
1286  CHKERRG(ierr);
1287  }
1288  }
1290  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:522
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:565
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:528
boost::ptr_vector< EntData > dataOnEntities[MBMAXTYPE]
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const DataForcesAndSourcesCore e 
)
friend

Definition at line 248 of file DataStructures.cpp.

248  {
249  for (unsigned int nn = 0; nn < e.dataOnEntities[MBVERTEX].size(); nn++) {
250  os << "dataOnEntities[MBVERTEX][" << nn << "]" << std::endl
251  << e.dataOnEntities[MBVERTEX][nn] << std::endl;
252  }
253  for (unsigned int ee = 0; ee < e.dataOnEntities[MBEDGE].size(); ee++) {
254  os << "dataOnEntities[MBEDGE][" << ee << "]" << std::endl
255  << e.dataOnEntities[MBEDGE][ee] << std::endl;
256  }
257  for (unsigned int ff = 0; ff < e.dataOnEntities[MBTRI].size(); ff++) {
258  os << "dataOnEntities[MBTRI][" << ff << "] " << std::endl
259  << e.dataOnEntities[MBTRI][ff] << std::endl;
260  }
261  for (unsigned int vv = 0; vv < e.dataOnEntities[MBTET].size(); vv++) {
262  os << "dataOnEntities[MBTET][" << vv << "]" << std::endl
263  << e.dataOnEntities[MBTET][vv] << std::endl;
264  }
265  return os;
266 }

Member Data Documentation

◆ bAse

std::bitset<LASTBASE> MoFEM::DataForcesAndSourcesCore::bAse

bases on element

Definition at line 1264 of file DataStructures.hpp.

◆ basesOnEntities

std::bitset<LASTBASE> MoFEM::DataForcesAndSourcesCore::basesOnEntities[MBMAXTYPE]

bases on entity types

Definition at line 1268 of file DataStructures.hpp.

◆ basesOnSpaces

std::bitset<LASTBASE> MoFEM::DataForcesAndSourcesCore::basesOnSpaces[LASTSPACE]

base on spaces

Definition at line 1269 of file DataStructures.hpp.

◆ dataOnEntities

boost::ptr_vector<EntData> MoFEM::DataForcesAndSourcesCore::dataOnEntities[MBMAXTYPE]

data on nodes, base function, dofs values, etc.

Definition at line 1270 of file DataStructures.hpp.

◆ facesNodes

ublas::matrix<int> MoFEM::DataForcesAndSourcesCore::facesNodes

nodes on finite element faces

Definition at line 1265 of file DataStructures.hpp.

◆ sPace

std::bitset<LASTSPACE> MoFEM::DataForcesAndSourcesCore::sPace

spaces on element

Definition at line 1263 of file DataStructures.hpp.

◆ spacesOnEntities

std::bitset<LASTSPACE> MoFEM::DataForcesAndSourcesCore::spacesOnEntities[MBMAXTYPE]

spaces on entity types

Definition at line 1267 of file DataStructures.hpp.


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