v0.8.13
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 205 of file DataStructures.hpp.

Constructor & Destructor Documentation

◆ DataForcesAndSourcesCore() [1/2]

MoFEM::DataForcesAndSourcesCore::DataForcesAndSourcesCore ( EntityType  type)

Definition at line 194 of file DataStructures.cpp.

194  {
195  cOnstructor(this, type, EntData());
196 }
void cOnstructor(DataForcesAndSourcesCore *data, EntityType type, T)
DataForcesAndSourcesCore::EntData EntData

◆ ~DataForcesAndSourcesCore()

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

Definition at line 1389 of file DataStructures.hpp.

1389 {}

◆ DataForcesAndSourcesCore() [2/2]

MoFEM::DataForcesAndSourcesCore::DataForcesAndSourcesCore ( )
protected

Definition at line 1395 of file DataStructures.hpp.

1395 {}

Member Function Documentation

◆ resetFieldDependentData()

MoFEMErrorCode MoFEM::DataForcesAndSourcesCore::resetFieldDependentData ( )

Reset data associated with particular field name

Returns
error code

Definition at line 1374 of file DataStructures.hpp.

1374  {
1375 
1377  for (EntityType t = MBVERTEX; t != MBMAXTYPE; t++) {
1378  boost::ptr_vector<EntData>::iterator ent_data_it =
1379  dataOnEntities[t].begin();
1380  for (; ent_data_it != dataOnEntities[t].end(); ent_data_it++) {
1381  ierr = ent_data_it->resetFieldDependentData();
1382  CHKERRG(ierr);
1383  }
1384  }
1386  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:519
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:562
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:526
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 259 of file DataStructures.cpp.

259  {
260  for (unsigned int nn = 0; nn < e.dataOnEntities[MBVERTEX].size(); nn++) {
261  os << "dataOnEntities[MBVERTEX][" << nn << "]" << std::endl
262  << e.dataOnEntities[MBVERTEX][nn] << std::endl;
263  }
264  for (unsigned int ee = 0; ee < e.dataOnEntities[MBEDGE].size(); ee++) {
265  os << "dataOnEntities[MBEDGE][" << ee << "]" << std::endl
266  << e.dataOnEntities[MBEDGE][ee] << std::endl;
267  }
268  for (unsigned int ff = 0; ff < e.dataOnEntities[MBTRI].size(); ff++) {
269  os << "dataOnEntities[MBTRI][" << ff << "] " << std::endl
270  << e.dataOnEntities[MBTRI][ff] << std::endl;
271  }
272  for (unsigned int vv = 0; vv < e.dataOnEntities[MBTET].size(); vv++) {
273  os << "dataOnEntities[MBTET][" << vv << "]" << std::endl
274  << e.dataOnEntities[MBTET][vv] << std::endl;
275  }
276  return os;
277 }

Member Data Documentation

◆ bAse

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

bases on element

Definition at line 1360 of file DataStructures.hpp.

◆ basesOnEntities

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

bases on entity types

Definition at line 1364 of file DataStructures.hpp.

◆ basesOnSpaces

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

base on spaces

Definition at line 1365 of file DataStructures.hpp.

◆ dataOnEntities

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

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

Definition at line 1366 of file DataStructures.hpp.

◆ facesNodes

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

nodes on finite element faces

Definition at line 1361 of file DataStructures.hpp.

◆ sPace

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

spaces on element

Definition at line 1359 of file DataStructures.hpp.

◆ spacesOnEntities

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

spaces on entity types

Definition at line 1363 of file DataStructures.hpp.


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