v0.6.10
Fields

Data structure for adding and managing fields. More...

Collaboration diagram for Fields:

Updating entities (DO NOT USE THIS USE BitRefManager interface)

DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::update_field_meshset_by_entities_children (const BitRefLevel &child_bit, int verb=-1)
 update fields meshesets by child entities More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::update_field_meshset_by_entities_children (const std::string name, const BitRefLevel &child_bit, int verb=-1)
 update field mesheset by child entities More...
 

Build problems (DEPRECATED SHOULD NOT USE THIS)

DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::partition_ghost_dofs (const std::string &name, int verb=-1)
 determine ghost nodes More...
 

Synchronize

virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities (const BitFieldId id, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities (const std::string &name, int verb=-1)=0
 

Fields

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_dim (const Range &ents, const int dim, const std::string &name, int verb=-1)=0
 Add entities to field meshsetThe lower dimension entities are added depending on the space type. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_type (const Range &ents, const EntityType type, const std::string &name, int verb=-1)=0
 Add entities to field meshsetThe lower dimension entities are added depending on the space type. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_dim (const EntityHandle meshset, const int dim, const std::string &name, const bool recursive=true, int verb=-1)=0
 Add entities to field meshsetThe lower dimension entities are added depending on the space type. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_type (const EntityHandle meshset, const EntityType type, const std::string &name, const bool recursive=true, int verb=-1)=0
 Add entities to field meshsetThe lower dimension entities are added depending on the space type. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_VERTICEs (const Range &nodes, const std::string &name, int verb=-1)=0
 set field entities on verticesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_VERTICEs (const EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities on verticesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_EDGEs (const Range &edges, const std::string &name, int verb=-1)=0
 set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_EDGEs (const EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TRIs (const EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TRIs (const Range &tris, const std::string &name, int verb=-1)=0
 set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TETs (const EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TETs (const Range &tets, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_QUADs (const Range &quads, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_QUADs (EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_PRISMs (const Range &prisms, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_PRISMs (EntityHandle meshset, const std::string &name, int verb=-1)=0
 set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)=0
 remove entities from field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field (const std::string &name, const EntityHandle meshset, const EntityType type, int verb=-1)=0
 remove entities from field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field (const std::string &name, const Range &ents, int verb=-1)=0
 remove entities from field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order (const EntityHandle meshset, const EntityType type, const std::string &name, const ApproximationOrder order, int verb=-1)=0
 Set order approximation of the entities in the field. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order (const Range &ents, const std::string &name, const ApproximationOrder order, int verb=-1)=0
 Set order approximation of the entities in the field. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order_by_entity_type_and_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, const EntityType type, const std::string &name, const ApproximationOrder order, int verb=-1)=0
 Set order approximation of the entities in the field. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::list_fields () const =0
 list entities in the field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_dimension (const std::string name, int dim, Range &ents) const =0
 get entities in the field by dimension More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_type (const std::string name, EntityType type, Range &ents) const =0
 get entities in the field by type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_handle (const std::string name, Range &ents) const =0
 get entities in the field by handle More...
 
virtual bool MoFEM::CoreInterface::check_field (const std::string &name) const =0
 check if field is in database More...
 
virtual const FieldMoFEM::CoreInterface::get_field_structure (const std::string &name)=0
 get field structure More...
 

Finite elements

virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_dimension (const std::string name, int dim, Range &ents) const =0
 get entities in the finite element by dimension More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_type (const std::string name, EntityType type, Range &ents) const =0
 get entities in the finite element by type More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_handle (const std::string name, Range &ents) const =0
 get entities in the finite element by handle More...
 

Problems

virtual MoFEMErrorCode MoFEM::CoreInterface::build_fields (int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::list_dofs_by_field_name (const std::string &name) const =0
 

Clear dofs and entities

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_inactive_dofs (int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields (const Range &ents, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields (const std::string &name, const Range &ents, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields (const Range &ents, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields (const std::string &name, const Range &ents, int verb=-1)=0
 
virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)=0
 

Making loops on elements and entities

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_dofs (const std::string &field_name, EntMethod &method, int verb=-1)=0
 Make a loop over entities. More...
 

Get pointers to multi-index database

virtual DofEntityByNameAndEnt::iterator MoFEM::CoreInterface::get_dofs_by_name_and_ent_end (const std::string &field_name, const EntityHandle ent) const =0
 get begin iterator of filed dofs of given name and ent (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,ENT,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP(MFIELD,NAME,ENT,IT)) { ... } More...
 
template<typename DIT >
MoFEMErrorCode MoFEM::CoreInterface::get_field_dof_data (const std::string &name, const EntityHandle *ent, const int num_ents, DIT dit, int *count=NULL)
 get field data from entity and fieldthis function is not recommended to be used in finite element implementation More...
 
template<typename DIT >
MoFEMErrorCode MoFEM::CoreInterface::get_field_dof_data (const std::string &name, const Range &ents, DIT dit, int *count=NULL)
 get field data from entity and fieldthis function is not recommended to be used in finite element implementation More...
 
#define _IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP_(MFIELD, NAME, IT)
 loop over all dofs from a moFEM field and particular field More...
 
#define _IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP_(MFIELD, NAME, IT)
 
#define _IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP_(MFIELD, NAME, TYPE, IT)
 loop over all dofs from a moFEM field and particular field More...
 
#define _IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_(MFIELD, NAME, ENT, IT)
 loop over all dofs from a moFEM field and particular field More...
 
#define _IT_GET_FES_BY_NAME_FOR_LOOP_(MFIELD, NAME, IT)
 loop over all finite elements from a moFEM field and FE More...
 

Detailed Description

Data structure for adding and managing fields.

Macro Definition Documentation

◆ _IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_

#define _IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_ (   MFIELD,
  NAME,
  ENT,
  IT 
)
Value:
DofEntityByNameAndEnt::iterator IT = \
MFIELD.get_dofs_by_name_and_ent_begin(NAME, ENT); \
IT != MFIELD.get_dofs_by_name_and_ent_end(NAME, ENT); \
IT++

loop over all dofs from a moFEM field and particular field

Definition at line 1750 of file Interface.hpp.

◆ _IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP_

#define _IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP_ (   MFIELD,
  NAME,
  TYPE,
  IT 
)
Value:
DofEntityByNameAndType::iterator IT = \
MFIELD.get_dofs_by_name_and_type_begin(NAME, TYPE); \
IT != MFIELD.get_dofs_by_name_and_type_end(NAME, TYPE); \
IT++

loop over all dofs from a moFEM field and particular field

Definition at line 1843 of file Interface.hpp.

◆ _IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP_

#define _IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP_ (   MFIELD,
  NAME,
  IT 
)
Value:
DofEntityByFieldName::iterator IT = MFIELD.get_dofs_by_name_begin(NAME); \
IT != MFIELD.get_dofs_by_name_end(NAME); \
IT++

loop over all dofs from a moFEM field and particular field

Definition at line 1712 of file Interface.hpp.

◆ _IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP_

#define _IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP_ (   MFIELD,
  NAME,
  IT 
)
Value:
FieldEntityByFieldName::iterator IT = \
MFIELD.get_ent_field_by_name_begin(NAME); \
IT != MFIELD.get_ent_field_by_name_end(NAME); \
IT++

loop over all dofs from a moFEM field and particular field

Definition at line 1675 of file Interface.hpp.

◆ _IT_GET_FES_BY_NAME_FOR_LOOP_

#define _IT_GET_FES_BY_NAME_FOR_LOOP_ (   MFIELD,
  NAME,
  IT 
)
Value:
EntFiniteElementByName::iterator IT = MFIELD.get_fe_by_name_begin(NAME); \
IT != MFIELD.get_fe_by_name_end(NAME); \
IT++

loop over all finite elements from a moFEM field and FE

Definition at line 1879 of file Interface.hpp.

Function Documentation

◆ add_ents_to_field_by_dim() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_dim ( const Range &  ents,
const int  dim,
const std::string &  name,
int  verb = -1 
)
pure virtual

Add entities to field meshsetThe lower dimension entities are added depending on the space type.

Parameters
entsrange of entities
dimdimension of entities
namename of field
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_dim() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_dim ( const EntityHandle  meshset,
const int  dim,
const std::string &  name,
const bool  recursive = true,
int  verb = -1 
)
pure virtual

Add entities to field meshsetThe lower dimension entities are added depending on the space type.

Parameters
meshset
dimdimension
namename of field
recursivetake entities recursively from embedded entities
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_EDGEs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_EDGEs ( const Range &  edges,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type

Parameters
rangecontains set edges
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_EDGEs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_EDGEs ( const EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set edges
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_PRISMs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_PRISMs ( const Range &  prisms,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type

Parameters
prismsrange of prisms
idfield id set field entities from adjacencies of prisms

The lower dimension entities are added depending on the space type

Parameters
prismsrange contains set prisms
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_PRISMs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_PRISMs ( EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set prisms
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_QUADs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_QUADs ( const Range &  quads,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type

Parameters
quadsrange of quads
idfield id set field entities from adjacencies of quads

The lower dimension entities are added depending on the space type

Parameters
quadsrange contains set quads
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_QUADs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_QUADs ( EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set quads
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_TETs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TETs ( const EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set tetrahedron
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_TETs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TETs ( const Range &  tets,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type

Parameters
rangecontains set tetrahedron
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_TRIs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TRIs ( const EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set triangles
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_TRIs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_TRIs ( const Range &  tris,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type

Parameters
rangetriangles
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_type() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_type ( const Range &  ents,
const EntityType  type,
const std::string &  name,
int  verb = -1 
)
pure virtual

Add entities to field meshsetThe lower dimension entities are added depending on the space type.

Parameters
entsrange of entities
typetype of entities
namename of field
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

Examples:
cell_forces.cpp, elasticity.cpp, and MagneticElement.hpp.

◆ add_ents_to_field_by_type() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_type ( const EntityHandle  meshset,
const EntityType  type,
const std::string &  name,
const bool  recursive = true,
int  verb = -1 
)
pure virtual

Add entities to field meshsetThe lower dimension entities are added depending on the space type.

Parameters
meshset
typeof entities
namename of field
recursivetake entities recursively from embedded entities
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_VERTICEs() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_VERTICEs ( const Range &  nodes,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities on verticesThe lower dimension entities are added depending on the space type

Parameters
nodescontains set vertices
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_VERTICEs() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_VERTICEs ( const EntityHandle  meshset,
const std::string &  name,
int  verb = -1 
)
pure virtual

set field entities on verticesThe lower dimension entities are added depending on the space type

Parameters
meshsetcontains set vertices
nameof the field

Implemented in MoFEM::Core.

◆ build_fields()

virtual MoFEMErrorCode MoFEM::CoreInterface::build_fields ( int  verb = -1)
pure virtual

build fields

Implemented in MoFEM::Core.

Examples:
cell_forces.cpp, elasticity.cpp, and MagneticElement.hpp.

◆ check_field()

virtual bool MoFEM::CoreInterface::check_field ( const std::string &  name) const
pure virtual

check if field is in database

Parameters
namefield name
Returns
true if field exist

Implemented in MoFEM::Core.

Examples:
elasticity.cpp.

◆ clear_dofs_fields() [1/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
pure virtual

Clear dofs by bit level

Implemented in MoFEM::Core.

◆ clear_dofs_fields() [2/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields ( const Range &  ents,
int  verb = -1 
)
pure virtual

Clear dofs by ents

Implemented in MoFEM::Core.

◆ clear_dofs_fields() [3/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields ( const std::string &  name,
const Range &  ents,
int  verb = -1 
)
pure virtual

Clear dofs by field name and ents

Implemented in MoFEM::Core.

◆ clear_ents_fields() [1/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields ( const Range &  ents,
int  verb = -1 
)
pure virtual

Clear entities by field name

Implemented in MoFEM::Core.

◆ clear_ents_fields() [2/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields ( const std::string &  name,
const Range &  ents,
int  verb = -1 
)
pure virtual

Clear entities by field name

Implemented in MoFEM::Core.

◆ clear_ents_fields() [3/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
pure virtual

Clear ents by bit level

Implemented in MoFEM::Core.

◆ clear_inactive_dofs()

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_inactive_dofs ( int  verb = -1)
pure virtual

Clear inactive dofs

Implemented in MoFEM::Core.

◆ get_dofs_by_name_and_ent_end()

virtual DofEntityByNameAndEnt::iterator MoFEM::CoreInterface::get_dofs_by_name_and_ent_end ( const std::string &  field_name,
const EntityHandle  ent 
) const
pure virtual

get begin iterator of filed dofs of given name and ent (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,ENT,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP(MFIELD,NAME,ENT,IT)) { ... }

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_field_dof_data() [1/2]

template<typename DIT >
MoFEMErrorCode MoFEM::CoreInterface::get_field_dof_data ( const std::string &  name,
const EntityHandle ent,
const int  num_ents,
DIT  dit,
int count = NULL 
)

get field data from entity and fieldthis function is not recommended to be used in finite element implementation

Definition at line 1766 of file Interface.hpp.

1767  {
1769  if (count != NULL)
1770  *count = 0;
1771  for (int nn = 0; nn < num_ents; nn++) {
1773  ent[nn], it)) {
1774  *(dit++) = (*it)->getFieldData();
1775  if (count != NULL)
1776  (*count)++;
1777  }
1778  }
1780  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:468
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:474
#define _IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_(MFIELD, NAME, ENT, IT)
loop over all dofs from a moFEM field and particular field
Definition: Interface.hpp:1750

◆ get_field_dof_data() [2/2]

template<typename DIT >
MoFEMErrorCode MoFEM::CoreInterface::get_field_dof_data ( const std::string &  name,
const Range &  ents,
DIT  dit,
int count = NULL 
)

get field data from entity and fieldthis function is not recommended to be used in finite element implementation

Definition at line 1791 of file Interface.hpp.

1793  {
1795  if (count != NULL)
1796  *count = 0;
1797  for (Range::const_iterator eit = ents.begin(); eit != ents.end(); eit++) {
1798  for (_IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_((*this), name, *eit,
1799  it)) {
1800  *(dit++) = (*it)->getFieldData();
1801  if (count != NULL)
1802  (*count)++;
1803  }
1804  }
1806  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:468
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:474
#define _IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_(MFIELD, NAME, ENT, IT)
loop over all dofs from a moFEM field and particular field
Definition: Interface.hpp:1750

◆ get_field_entities_by_dimension()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_dimension ( const std::string  name,
int  dim,
Range &  ents 
) const
pure virtual

get entities in the field by dimension

Parameters
namefield name
dimdim
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ get_field_entities_by_handle()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_handle ( const std::string  name,
Range &  ents 
) const
pure virtual

get entities in the field by handle

Parameters
namefield name
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ get_field_entities_by_type()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_field_entities_by_type ( const std::string  name,
EntityType  type,
Range &  ents 
) const
pure virtual

get entities in the field by type

Parameters
namefield name
typeentity type
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ get_field_structure()

virtual const Field* MoFEM::CoreInterface::get_field_structure ( const std::string &  name)
pure virtual

get field structure

Parameters
namefield name
Returns
const Field*

Implemented in MoFEM::Core.

◆ get_finite_element_entities_by_dimension()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_dimension ( const std::string  name,
int  dim,
Range &  ents 
) const
pure virtual

get entities in the finite element by dimension

Parameters
namefinite element name
dimdim
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ get_finite_element_entities_by_handle()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_handle ( const std::string  name,
Range &  ents 
) const
pure virtual

get entities in the finite element by handle

Parameters
namefinite element name
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ get_finite_element_entities_by_type()

virtual MoFEMErrorCode MoFEM::CoreInterface::get_finite_element_entities_by_type ( const std::string  name,
EntityType  type,
Range &  ents 
) const
pure virtual

get entities in the finite element by type

Parameters
namefinite element name
typeentity type
entsents
Returns
error code

Implemented in MoFEM::Core.

◆ list_dofs_by_field_name()

virtual MoFEMErrorCode MoFEM::CoreInterface::list_dofs_by_field_name ( const std::string &  name) const
pure virtual

list dofs

Implemented in MoFEM::Core.

◆ list_fields()

virtual MoFEMErrorCode MoFEM::CoreInterface::list_fields ( ) const
pure virtual

list entities in the field

Implemented in MoFEM::Core.

◆ loop_dofs()

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_dofs ( const std::string &  field_name,
EntMethod method,
int  verb = -1 
)
pure virtual

Make a loop over entities.

Implemented in MoFEM::Core.

◆ partition_ghost_dofs()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::partition_ghost_dofs ( const std::string &  name,
int  verb = -1 
)

determine ghost nodes

Deprecated:
Use ProblemsManager to build and partition problems
Parameters
nameproblem name

Definition at line 397 of file DeprecatedCoreInterface.cpp.

397  {
398  return getInterface<ProblemsManager>()->partitionGhostDofs(name,verb);
399  }

◆ remove_ents_from_field() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field ( const std::string &  name,
const EntityHandle  meshset,
const EntityType  type,
int  verb = -1 
)
pure virtual

remove entities from field

Implemented in MoFEM::Core.

◆ remove_ents_from_field() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field ( const std::string &  name,
const Range &  ents,
int  verb = -1 
)
pure virtual

remove entities from field

Implemented in MoFEM::Core.

◆ remove_ents_from_field_by_bit_ref()

virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field_by_bit_ref ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
pure virtual

remove entities from field

Implemented in MoFEM::Core.

◆ set_field_order() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order ( const EntityHandle  meshset,
const EntityType  type,
const std::string &  name,
const ApproximationOrder  order,
int  verb = -1 
)
pure virtual

Set order approximation of the entities in the field.

Parameters
meshsetcontaining set of the entities (use 0 for all the entities in the meshset)
typeselected type of the entities f.e. MBTET, MBTRI, MBEDGE, MBVERTEX, see moab documentation
orderapproximation order

Implemented in MoFEM::Core.

Examples:
cell_forces.cpp, elasticity.cpp, and MagneticElement.hpp.

◆ set_field_order() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order ( const Range &  ents,
const std::string &  name,
const ApproximationOrder  order,
int  verb = -1 
)
pure virtual

Set order approximation of the entities in the field.

Parameters
entities
typeselected type of the entities f.e. MBTET, MBTRI, MBEDGE, MBVERTEX, see moab documentation
orderapproximation order

Implemented in MoFEM::Core.

◆ set_field_order_by_entity_type_and_bit_ref()

virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order_by_entity_type_and_bit_ref ( const BitRefLevel bit,
const BitRefLevel mask,
const EntityType  type,
const std::string &  name,
const ApproximationOrder  order,
int  verb = -1 
)
pure virtual

Set order approximation of the entities in the field.

Parameters
bitrefinement level
maskbit mask
typeselected type of the entities f.e. MBTET, MBTRI, MBEDGE, MBVERTEX, see moab documentation
orderapproximation order

Implemented in MoFEM::Core.

◆ synchronise_field_entities() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities ( const BitFieldId  id,
int  verb = -1 
)
pure virtual

synchronize entity range on processors (collective)

collective - need tu be run on all processors in communicator

Parameters
idfield
verboselevel

Implemented in MoFEM::Core.

Examples:
cell_forces.cpp.

◆ synchronise_field_entities() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities ( const std::string &  name,
int  verb = -1 
)
pure virtual

synchronize entity range on processors (collective)

collective - need tu be run on all processors in communicator

Parameters
namefield
verboselevel

Implemented in MoFEM::Core.

◆ update_field_meshset_by_entities_children() [1/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::update_field_meshset_by_entities_children ( const BitRefLevel child_bit,
int  verb = -1 
)

update fields meshesets by child entities

Deprecated:
do not us this use BitRefManager interface
Todo:
Should be outsourced to separate interface, i.e. BitLevelManage

Definition at line 244 of file DeprecatedCoreInterface.cpp.

244  {
245  return getInterface<BitRefManager>()->updateFieldMeshsetByEntitiesChildren(child_bit,verb);
246  }

◆ update_field_meshset_by_entities_children() [2/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::update_field_meshset_by_entities_children ( const std::string  name,
const BitRefLevel child_bit,
int  verb = -1 
)

update field mesheset by child entities

Deprecated:
do not us this use BitRefManager interface

Definition at line 248 of file DeprecatedCoreInterface.cpp.

248  {
249  return getInterface<BitRefManager>()->updateFieldMeshsetByEntitiesChildren(name,child_bit,verb);
250  }