v0.5.86
Fields

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

Collaboration diagram for Fields:

Synchronize

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

Updating entities

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

Fields

virtual PetscErrorCode MoFEM::Interface::add_ents_to_field_by_dim (const Range &ents, const int dim, const std::string &name, int verb=-1)=0
 Add field with default AINSWORTH_LEGENDRE_BASE approximation base. More...
 
virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::remove_ents_from_field_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)=0
 remove entities from field More...
 
virtual PetscErrorCode MoFEM::Interface::remove_ents_from_field (const std::string &name, const EntityHandle meshset, const EntityType type, int verb=-1)=0
 remove entities from field More...
 
virtual PetscErrorCode MoFEM::Interface::remove_ents_from_field (const std::string &name, const Range &ents, int verb=-1)=0
 remove entities from field More...
 
virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::list_fields () const =0
 list entities in the field More...
 
virtual PetscErrorCode MoFEM::Interface::get_field_entities_by_dimension (const std::string name, int dim, Range &ents) const =0
 get entities in the field by dimension More...
 
virtual PetscErrorCode MoFEM::Interface::get_field_entities_by_type (const std::string name, EntityType type, Range &ents) const =0
 get entities in the field by type More...
 
virtual PetscErrorCode MoFEM::Interface::get_field_entities_by_handle (const std::string name, Range &ents) const =0
 get entities in the field by handle More...
 
virtual bool MoFEM::Interface::check_field (const std::string &name) const =0
 check if field is in database More...
 
virtual const FieldMoFEM::Interface::get_field_structure (const std::string &name)=0
 get field structure More...
 

Finite elements

virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::build_fields (int verb=-1)=0
 
virtual PetscErrorCode MoFEM::Interface::list_dofs_by_field_name (const std::string &name) const =0
 

Clear dofs and entities

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

Build problems (DEPRECATED SHOULD NOT USE THIS)

virtual DEPRECATED PetscErrorCode MoFEM::Interface::partition_ghost_dofs (const std::string &name, int verb=-1)=0
 determine ghost nodes More...
 

Making loops on elements and entities

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

Get pointers to multi-index databses

virtual FieldEntityByFieldName::iterator MoFEM::Interface::get_ent_moabfield_by_name_begin (const std::string &field_name) const =0
 get begin iterator of filed ents of given name (instead you can use IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual FieldEntityByFieldName::iterator MoFEM::Interface::get_ent_moabfield_by_name_end (const std::string &field_name) const =0
 get begin iterator of filed dofs of given name (instead you can use IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByFieldName::iterator MoFEM::Interface::get_dofs_by_name_begin (const std::string &field_name) const =0
 get begin iterator of filed dofs of given name (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByFieldName::iterator MoFEM::Interface::get_dofs_by_name_end (const std::string &field_name) const =0
 get begin iterator of filed dofs of given name (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByNameAndEnt::iterator MoFEM::Interface::get_dofs_by_name_and_ent_begin (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...
 
virtual DofEntityByNameAndEnt::iterator MoFEM::Interface::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 >
PetscErrorCode MoFEM::Interface::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 funciont is not recommended to be used in finite elemeny implementation More...
 
template<typename DIT >
PetscErrorCode MoFEM::Interface::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...
 
virtual DofEntityByNameAndType::iterator MoFEM::Interface::get_dofs_by_name_and_type_begin (const std::string &field_name, const EntityType type) const =0
 get begin iterator of filed dofs of given name and ent type (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,TYPE,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP(MFIELD,NAME,TYPE,IT)) { ... } More...
 
virtual DofEntityByNameAndType::iterator MoFEM::Interface::get_dofs_by_name_and_type_end (const std::string &field_name, const EntityType type) const =0
 get begin iterator of filed dofs of given name end ent type(instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,TYPE,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP(MFIELD,NAME,TYPE,IT)) { ... } 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 2779 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 2856 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 2746 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_moabfield_by_name_begin(NAME); \
IT != MFIELD.get_ent_moabfield_by_name_end(NAME); IT++

loop over all dofs from a moFEM field and particular field

Definition at line 2715 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 2889 of file Interface.hpp.

Function Documentation

◆ add_ents_to_field_by_dim() [1/2]

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

Add field with default AINSWORTH_LEGENDRE_BASE approximation base.

Deprecated:
Note
This function is deprecated, use version where base argument is spevified explicityly.
Parameters
namename of the filed
spacespace (L2,H1,Hdiv,Hcurl)
nb_of_cooficientsnumber of field coefficients
bhif MF_EXCL throws error if field exits, MF_ZERO no error if field exist
verbverbosity level
Returns
error code Add entities to field meshset

The lower dimension entities are added depending on the space type

Parameters
entsrnage 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 PetscErrorCode MoFEM::Interface::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
dimdiemsipm
namename of field
recursivetake entities recursively from embaded entities
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_EDGEs() [1/2]

virtual PetscErrorCode MoFEM::Interface::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
tangecontains set edges
nameof the field

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_EDGEs() [2/2]

virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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
entsrnage 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 PetscErrorCode MoFEM::Interface::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 entoties
namename of field
recursivetake entities recursively from embaded entities
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

◆ add_ents_to_field_by_VERTICEs() [1/2]

virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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::Interface::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/2]

virtual PetscErrorCode MoFEM::Interface::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/2]

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

Clear dofs by field name

Implemented in MoFEM::Core.

◆ clear_ents_fields() [1/2]

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

Clear ents by bit level

Implemented in MoFEM::Core.

◆ clear_ents_fields() [2/2]

virtual PetscErrorCode MoFEM::Interface::clear_ents_fields ( const std::string &  name,
const Range  enst,
int  verb = -1 
)
pure virtual

Clear entities by field name

Implemented in MoFEM::Core.

◆ clear_inactive_dofs()

virtual PetscErrorCode MoFEM::Interface::clear_inactive_dofs ( int  verb = -1)
pure virtual

Clear inactive dofs

Implemented in MoFEM::Core.

◆ get_dofs_by_name_and_ent_begin()

virtual DofEntityByNameAndEnt::iterator MoFEM::Interface::get_dofs_by_name_and_ent_begin ( 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_dofs_by_name_and_ent_end()

virtual DofEntityByNameAndEnt::iterator MoFEM::Interface::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_dofs_by_name_and_type_begin()

virtual DofEntityByNameAndType::iterator MoFEM::Interface::get_dofs_by_name_and_type_begin ( const std::string &  field_name,
const EntityType  type 
) const
pure virtual

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

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_dofs_by_name_and_type_end()

virtual DofEntityByNameAndType::iterator MoFEM::Interface::get_dofs_by_name_and_type_end ( const std::string &  field_name,
const EntityType  type 
) const
pure virtual

get begin iterator of filed dofs of given name end ent type(instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,TYPE,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_TYPE_FOR_LOOP(MFIELD,NAME,TYPE,IT)) { ... }

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_dofs_by_name_begin()

virtual DofEntityByFieldName::iterator MoFEM::Interface::get_dofs_by_name_begin ( const std::string &  field_name) const
pure virtual

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

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_dofs_by_name_end()

virtual DofEntityByFieldName::iterator MoFEM::Interface::get_dofs_by_name_end ( const std::string &  field_name) const
pure virtual

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

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_ent_moabfield_by_name_begin()

virtual FieldEntityByFieldName::iterator MoFEM::Interface::get_ent_moabfield_by_name_begin ( const std::string &  field_name) const
pure virtual

get begin iterator of filed ents of given name (instead you can use IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... }

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_ent_moabfield_by_name_end()

virtual FieldEntityByFieldName::iterator MoFEM::Interface::get_ent_moabfield_by_name_end ( const std::string &  field_name) const
pure virtual

get begin iterator of filed dofs of given name (instead you can use IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)for(IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... }

Parameters
field_name

Implemented in MoFEM::Core.

◆ get_field_dof_data() [1/2]

template<typename DIT >
PetscErrorCode MoFEM::Interface::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 funciont is not recommended to be used in finite elemeny implementation

Definition at line 2791 of file Interface.hpp.

2793  {
2794  PetscFunctionBegin;
2795  if(count!=NULL) *count = 0;
2796  for(int nn = 0;nn<num_ents;nn++) {
2797  for(_IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_((*this),name,ent[nn],it)) {
2798  *(dit++) = (*it)->getFieldData();
2799  if(count!=NULL) (*count)++;
2800  }
2801  }
2802  PetscFunctionReturn(0);
2803  }
#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:2779

◆ get_field_dof_data() [2/2]

template<typename DIT >
PetscErrorCode MoFEM::Interface::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 2813 of file Interface.hpp.

2815  {
2816  PetscFunctionBegin;
2817  if(count!=NULL) *count = 0;
2818  for(Range::const_iterator eit = ents.begin();eit!=ents.end();eit++) {
2819  for(_IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP_((*this),name,*eit,it)) {
2820  *(dit++) = (*it)->getFieldData();
2821  if(count!=NULL) (*count)++;
2822  }
2823  }
2824  PetscFunctionReturn(0);
2825  }
#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:2779

◆ get_field_entities_by_dimension()

virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::list_dofs_by_field_name ( const std::string &  name) const
pure virtual

list dofs

Implemented in MoFEM::Core.

◆ list_fields()

virtual PetscErrorCode MoFEM::Interface::list_fields ( ) const
pure virtual

list entities in the field

Implemented in MoFEM::Core.

◆ loop_dofs()

virtual PetscErrorCode MoFEM::Interface::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()

virtual DEPRECATED PetscErrorCode MoFEM::Interface::partition_ghost_dofs ( const std::string &  name,
int  verb = -1 
)
pure virtual

determine ghost nodes

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

Implemented in MoFEM::Core.

◆ remove_ents_from_field() [1/2]

virtual PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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 PetscErrorCode MoFEM::Interface::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]

virtual PetscErrorCode MoFEM::Interface::update_field_meshset_by_entities_children ( const BitRefLevel child_bit,
int  verb = -1 
)
pure virtual

update fields meshesets by child entities

Todo:
Should be outsourced to separate interface, i.e. BitLevelManage

Implemented in MoFEM::Core.

◆ update_field_meshset_by_entities_children() [2/2]

virtual PetscErrorCode MoFEM::Interface::update_field_meshset_by_entities_children ( const std::string  name,
const BitRefLevel child_bit,
int  verb = -1 
)
pure virtual

update field mesheset by child entities

Todo:
Should be outsourced to separate interface, i.e. BitLevelManage

Implemented in MoFEM::Core.