v0.14.0
Fields

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

Collaboration diagram for Fields:

Synchronize entities (Following functions in future will be

deprecated)

MoFEMErrorCode MoFEM::CommInterface::synchroniseFieldEntities (const std::string name, int verb=DEFAULT_VERBOSITY)
 

Synchronize

DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::synchronise_field_entities (const std::string &name, int verb=DEFAULT_VERBOSITY)
 

Fields

virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_dim (const Range &ents, const int dim, const std::string &name, int verb=DEFAULT_VERBOSITY)=0
 Add entities to field meshset. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::add_ents_to_field_by_type (const Range &ents, const EntityType type, const std::string &name, int verb=DEFAULT_VERBOSITY)=0
 Add entities to field meshset. 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=DEFAULT_VERBOSITY)=0
 Add entities to field meshset. 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=DEFAULT_VERBOSITY)=0
 Add entities to field meshset. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field_by_bit_ref (const BitRefLevel bit, const BitRefLevel mask, int verb=DEFAULT_VERBOSITY)=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=DEFAULT_VERBOSITY)=0
 remove entities from field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field (const std::string name, const Range ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from field More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field (const Range ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from all fields More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::set_field_order (const EntityHandle meshset, const EntityType type, const std::string &name, const ApproximationOrder order, int verb=DEFAULT_VERBOSITY)=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=DEFAULT_VERBOSITY)=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=DEFAULT_VERBOSITY)=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::build_fields (int verb=DEFAULT_VERBOSITY)=0
 
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, enum MoFEMTypes bh=MF_EXIST) const =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...
 

Clear dofs and entities

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

Making loops on elements and entities

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_dofs (const std::string &field_name, DofMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over dofs. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities (const std::string field_name, EntityMethod &method, Range const *const ents=nullptr, int verb=DEFAULT_VERBOSITY)=0
 Loop over field entities. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities (const Problem *problem_ptr, const std::string field_name, RowColData rc, EntityMethod &method, int lower_rank, int upper_rank, int verb=DEFAULT_VERBOSITY)=0
 Loop over field entities in the problem. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities (const std::string problem_name, const std::string field_name, RowColData rc, EntityMethod &method, int lower_rank, int upper_rank, int verb=DEFAULT_VERBOSITY)=0
 Loop over field entities in the problem. More...
 
virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities (const std::string problem_name, const std::string field_name, RowColData rc, EntityMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Loop over field entities in the problem. More...
 

Get pointers to multi-index database

virtual FieldEntityByUId::iterator MoFEM::CoreInterface::get_ent_field_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) More...
 
virtual FieldEntityByUId::iterator MoFEM::CoreInterface::get_ent_field_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) More...
 
virtual DofEntityByUId::iterator MoFEM::CoreInterface::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) More...
 
virtual DofEntityByUId::iterator MoFEM::CoreInterface::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) More...
 
virtual DofEntityByUId::iterator MoFEM::CoreInterface::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) More...
 
virtual DofEntityByUId::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) More...
 
virtual DofEntityByUId::iterator MoFEM::CoreInterface::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) More...
 
virtual DofEntityByUId::iterator MoFEM::CoreInterface::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) 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:
DofEntityByUId::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 1882 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:
DofEntityByUId::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 1925 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:
DofEntityByUId::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 1843 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:
auto 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

Examples
mesh_smoothing.cpp.

Definition at line 1807 of file Interface.hpp.

◆ _IT_GET_FES_BY_NAME_FOR_LOOP_

#define _IT_GET_FES_BY_NAME_FOR_LOOP_ (   MFIELD,
  NAME,
  IT 
)
Value:
auto 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 1964 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 EntityHandle  meshset,
const int  dim,
const std::string &  name,
const bool  recursive = true,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Add entities to field meshset.

\not collective

The 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::CoreTmp< 0 >.

◆ add_ents_to_field_by_dim() [2/2]

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

Add entities to field meshset.

Note
not collective

The 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::CoreTmp< 0 >.

Examples
build_problems.cpp, continuity_check_on_skeleton_3d.cpp, elasticity.cpp, hcurl_divergence_operator_2d.cpp, remove_entities_from_problem.cpp, and remove_entities_from_problem_not_partitioned.cpp.

◆ add_ents_to_field_by_type() [1/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 = DEFAULT_VERBOSITY 
)
pure virtual

Add entities to field meshset.

Note
not collective

The 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::CoreTmp< 0 >.

◆ add_ents_to_field_by_type() [2/2]

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

◆ build_fields()

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

◆ 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::CoreTmp< 0 >.

Examples
elasticity.cpp, hcurl_curl_operator.cpp, hdiv_divergence_operator.cpp, HookeElement.cpp, nonlinear_dynamics.cpp, and NonlinearElasticElementInterface.hpp.

◆ clear_dofs_fields() [1/2]

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

Clear dofs by ents

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_dofs_fields() [2/2]

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

Clear dofs by field name and ents

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_dofs_fields_by_bit_ref()

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_dofs_fields_by_bit_ref ( const BitRefLevel  bit,
const BitRefLevel  mask,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Clear dofs by bit level

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_ents_fields() [1/2]

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

Clear entities by field name

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_ents_fields() [2/2]

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

Clear entities by field name

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_ents_fields_by_bit_ref()

virtual MoFEMErrorCode MoFEM::CoreInterface::clear_ents_fields_by_bit_ref ( const BitRefLevel  bit,
const BitRefLevel  mask,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Clear ents by bit level

Implemented in MoFEM::CoreTmp< 0 >.

◆ clear_inactive_dofs()

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

Clear inactive dofs

Implemented in MoFEM::CoreTmp< 0 >.

◆ get_dofs_by_name_and_ent_begin()

virtual DofEntityByUId::iterator MoFEM::CoreInterface::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::CoreTmp< 0 >.

◆ get_dofs_by_name_and_ent_end()

virtual DofEntityByUId::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::CoreTmp< 0 >.

◆ get_dofs_by_name_and_type_begin()

virtual DofEntityByUId::iterator MoFEM::CoreInterface::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::CoreTmp< 0 >.

◆ get_dofs_by_name_and_type_end()

virtual DofEntityByUId::iterator MoFEM::CoreInterface::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::CoreTmp< 0 >.

◆ get_dofs_by_name_begin()

virtual DofEntityByUId::iterator MoFEM::CoreInterface::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::CoreTmp< 0 >.

◆ get_dofs_by_name_end()

virtual DofEntityByUId::iterator MoFEM::CoreInterface::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::CoreTmp< 0 >.

◆ get_ent_field_by_name_begin()

virtual FieldEntityByUId::iterator MoFEM::CoreInterface::get_ent_field_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::CoreTmp< 0 >.

◆ get_ent_field_by_name_end()

virtual FieldEntityByUId::iterator MoFEM::CoreInterface::get_ent_field_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::CoreTmp< 0 >.

◆ 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::CoreTmp< 0 >.

◆ 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::CoreTmp< 0 >.

◆ 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::CoreTmp< 0 >.

Examples
adolc_plasticity.cpp.

◆ get_field_structure()

virtual const Field* MoFEM::CoreInterface::get_field_structure ( const std::string &  name,
enum MoFEMTypes  bh = MF_EXIST 
) const
pure virtual

get field structure

If field is not found throw error if bh == MF_EXIST, or return nullptr if bh == MF_ZERO, i.e. otherwise

Parameters
namefield name
bhcontrols behaviour
Returns
const Field*

Implemented in MoFEM::CoreTmp< 0 >.

Examples
forces_and_sources_testing_users_base.cpp.

◆ 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::CoreTmp< 0 >.

Examples
elasticity.cpp, testing_jacobian_of_hook_element.cpp, and testing_jacobian_of_hook_scaled_with_density_element.cpp.

◆ 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::CoreTmp< 0 >.

◆ 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::CoreTmp< 0 >.

◆ 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::CoreTmp< 0 >.

◆ list_fields()

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

list entities in the field

Implemented in MoFEM::CoreTmp< 0 >.

◆ loop_dofs()

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_dofs ( const std::string &  field_name,
DofMethod method,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Make a loop over dofs.

Implemented in MoFEM::CoreTmp< 0 >.

◆ loop_entities() [1/4]

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities ( const Problem problem_ptr,
const std::string  field_name,
RowColData  rc,
EntityMethod method,
int  lower_rank,
int  upper_rank,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Loop over field entities in the problem.

Parameters
problem_ptr
field_name
rc
method
lower_rank
upper_rank
verb
Returns
MoFEMErrorCode

Implemented in MoFEM::CoreTmp< 0 >.

◆ loop_entities() [2/4]

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities ( const std::string  field_name,
EntityMethod method,
Range const *const  ents = nullptr,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Loop over field entities.

Parameters
field_namefield entities
methoduser method
entsif given loop only on subset of entities in the field
verb
Returns
MoFEMErrorCode

Implemented in MoFEM::CoreTmp< 0 >.

Examples
field_blas.cpp, and loop_entities.cpp.

◆ loop_entities() [3/4]

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities ( const std::string  problem_name,
const std::string  field_name,
RowColData  rc,
EntityMethod method,
int  lower_rank,
int  upper_rank,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Loop over field entities in the problem.

Parameters
problem_name
field_name
rc
method
lower_rank
upper_rank
verb
Returns
MoFEMErrorCode

Implemented in MoFEM::CoreTmp< 0 >.

◆ loop_entities() [4/4]

virtual MoFEMErrorCode MoFEM::CoreInterface::loop_entities ( const std::string  problem_name,
const std::string  field_name,
RowColData  rc,
EntityMethod method,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Loop over field entities in the problem.

Parameters
problem_name
field_name
rc
method
verb
Returns
MoFEMErrorCode

Implemented in MoFEM::CoreTmp< 0 >.

◆ remove_ents_from_field() [1/3]

virtual MoFEMErrorCode MoFEM::CoreInterface::remove_ents_from_field ( const Range  ents,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

remove entities from all fields

Note
not collective

Implemented in MoFEM::CoreTmp< 0 >.

◆ remove_ents_from_field() [2/3]

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

remove entities from field

Note
not collective

Implemented in MoFEM::CoreTmp< 0 >.

Examples
mesh_smoothing.cpp.

◆ remove_ents_from_field() [3/3]

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

remove entities from field

Note
not collective

Implemented in MoFEM::CoreTmp< 0 >.

◆ 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 = DEFAULT_VERBOSITY 
)
pure virtual

remove entities from field

Note
not collective

Implemented in MoFEM::CoreTmp< 0 >.

◆ 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 = DEFAULT_VERBOSITY 
)
pure virtual

◆ set_field_order() [2/2]

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

Set order approximation of the entities in the field.

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

Implemented in MoFEM::CoreTmp< 0 >.

◆ 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 = DEFAULT_VERBOSITY 
)
pure virtual

Set order approximation of the entities in the field.

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

Implemented in MoFEM::CoreTmp< 0 >.

◆ synchronise_field_entities()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::synchronise_field_entities ( const std::string &  name,
int  verb = DEFAULT_VERBOSITY 
)

synchronize entity range on processors (collective)

collective - need tu be run on all processors in communicator

Parameters
namefield
verboselevel
Deprecated:
Use CommInterface
Examples
cell_forces.cpp.

Definition at line 47 of file DeprecatedCoreInterface.cpp.

48  {
49  return getInterface<CommInterface>()->synchroniseFieldEntities(name, verb);
50 }

◆ synchroniseFieldEntities()

MoFEMErrorCode MoFEM::CommInterface::synchroniseFieldEntities ( const std::string  name,
int  verb = DEFAULT_VERBOSITY 
)

synchronize entity range on processors (collective)

Note
collective - need tu be run on all processors in communicator
Parameters
namefield
verboselevel

Definition at line 244 of file CommInterface.cpp.

245  {
246  MoFEM::Interface &m_field = cOre;
248  EntityHandle idm = m_field.get_field_meshset(name);
249  Range ents;
250  CHKERR m_field.get_moab().get_entities_by_handle(idm, ents, false);
251  CHKERR synchroniseEntities(ents, nullptr, verb);
252  CHKERR m_field.get_moab().add_entities(idm, ents);
254 }
EntityHandle
MoFEM::CoreInterface::get_field_meshset
virtual EntityHandle get_field_meshset(const std::string name) const =0
get field meshset
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
MoFEM::CoreInterface::get_moab
virtual moab::Interface & get_moab()=0
IT
constexpr IntegrationType IT
Definition: plastic.cpp:47
MoFEM::CommInterface::synchroniseEntities
MoFEMErrorCode synchroniseEntities(Range &ent, std::map< int, Range > *received_ents, int verb=DEFAULT_VERBOSITY)
synchronize entity range on processors (collective)
Definition: CommInterface.cpp:26
Range
MoFEM::CommInterface::cOre
MoFEM::Core & cOre
Definition: CommInterface.hpp:26
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346