v0.8.20
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...
 

Clear and remove

DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_VERTICEs (const Range &nodes, const std::string &name, int verb=-1)
 set field entities on verticesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_VERTICEs (const EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities on verticesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_EDGEs (const Range &edges, const std::string &name, int verb=-1)
 set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_EDGEs (const EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities form adjacencies of edgesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_TRIs (const EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_TRIs (const Range &tris, const std::string &name, int verb=-1)
 set field entities form adjacencies of trianglesThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_TETs (const EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_TETs (const Range &tets, const std::string &name, int verb=-1)
 set field entities from adjacencies of tetrahedronThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_QUADs (const Range &quads, const std::string &name, int verb=-1)
 set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_QUADs (EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities from adjacencies of quadsThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_PRISMs (const Range &prisms, const std::string &name, int verb=-1)
 set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type More...
 
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_field_by_PRISMs (EntityHandle meshset, const std::string &name, int verb=-1)
 set field entities from adjacencies of prismsThe lower dimension entities are added depending on the space type More...
 

Synchronize

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

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 meshsetcollective. 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)=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 FieldEntityByFieldName::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 FieldEntityByFieldName::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)for(IT_GET_ENT_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByFieldName::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)for(IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByFieldName::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)for(IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,IT)) { ... } More...
 
virtual DofEntityByNameAndEnt::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 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...
 
virtual DofEntityByNameAndType::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 DofEntityByNameAndType::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:
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 1760 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 1803 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 1721 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

Examples:
mesh_smoothing.cpp.

Definition at line 1684 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 1842 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 = 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::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 = DEFAULT_VERBOSITY 
)
pure virtual

Add entities to field meshsetcollective.

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::Core.

◆ add_ents_to_field_by_EDGEs() [1/2]

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

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

Parameters
rangecontains set edges
nameof the field

Definition at line 498 of file DeprecatedCoreInterface.cpp.

499  {
500  return add_ents_to_field_by_type(edges, MBEDGE, name, verb);
501 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_EDGEs() [2/2]

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

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

Parameters
meshsetcontains set edges
nameof the field

Definition at line 503 of file DeprecatedCoreInterface.cpp.

504  {
505  return add_ents_to_field_by_type(meshset, MBEDGE, name, true, verb);
506 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_PRISMs() [1/2]

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

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

Deprecated:
use add_ents_to_field_by_type
Parameters
prismsrange contains set prisms
nameof the field

Definition at line 548 of file DeprecatedCoreInterface.cpp.

549  {
550  return add_ents_to_field_by_type(prisms, MBPRISM, name, verb);
551 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_PRISMs() [2/2]

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

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

Deprecated:
use add_ents_to_field_by_type
Parameters
meshsetcontains set prisms
nameof the field

Definition at line 553 of file DeprecatedCoreInterface.cpp.

554  {
555  return add_ents_to_field_by_type(meshset, MBPRISM, name, true, verb);
556 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_QUADs() [1/2]

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

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

Deprecated:
use add_ents_to_field_by_type
Parameters
quadsrange contains set quads
nameof the field

Definition at line 538 of file DeprecatedCoreInterface.cpp.

539  {
540  return add_ents_to_field_by_type(quads, MBQUAD, name, verb);
541 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_QUADs() [2/2]

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

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

Deprecated:
use add_ents_to_field_by_type
Parameters
meshsetcontains set quads
nameof the field

Definition at line 543 of file DeprecatedCoreInterface.cpp.

544  {
545  return add_ents_to_field_by_type(meshset, MBQUAD, name, true, verb);
546 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_TETs() [1/2]

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

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

Parameters
meshsetcontains set tetrahedron
nameof the field

Definition at line 533 of file DeprecatedCoreInterface.cpp.

534  {
535  return add_ents_to_field_by_type(meshset, MBTET, name, true, verb);
536 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_TETs() [2/2]

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

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

Parameters
rangecontains set tetrahedron
nameof the field

Definition at line 528 of file DeprecatedCoreInterface.cpp.

529  {
530  return add_ents_to_field_by_type(tets, MBTET, name, verb);
531 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_TRIs() [1/2]

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

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

Parameters
meshsetcontains set triangles
nameof the field

Definition at line 508 of file DeprecatedCoreInterface.cpp.

509  {
510  return add_ents_to_field_by_type(meshset, MBTRI, name, true, verb);
511 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_TRIs() [2/2]

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

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

Parameters
rangetriangles
nameof the field

Definition at line 513 of file DeprecatedCoreInterface.cpp.

514  {
515  return add_ents_to_field_by_type(tris, MBTRI, name, verb);
516 }
virtual MoFEMErrorCode 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.

◆ 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 = 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
typetype of entities
namename of field
verbverbosity level
Returns
error code

Implemented in MoFEM::Core.

Examples:
build_problems.cpp, cell_forces.cpp, dm_build_partitioned_mesh.cpp, dm_create_subdm.cpp, elasticity.cpp, elasticity_mixed_formulation.cpp, forces_and_sources_testing_edge_element.cpp, forces_and_sources_testing_users_base.cpp, MagneticElement.hpp, mesh_smoothing.cpp, minimal_surface_area.cpp, remove_entities_from_problem.cpp, and UnsaturatedFlow.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 = 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::Core.

◆ add_ents_to_field_by_VERTICEs() [1/2]

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

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

Parameters
nodescontains set vertices
nameof the field

Definition at line 518 of file DeprecatedCoreInterface.cpp.

519  {
520  return add_ents_to_field_by_type(nodes, MBVERTEX, name, verb);
521 }
virtual MoFEMErrorCode 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.

◆ add_ents_to_field_by_VERTICEs() [2/2]

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

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

Parameters
meshsetcontains set vertices
nameof the field

Definition at line 523 of file DeprecatedCoreInterface.cpp.

524  {
525  return add_ents_to_field_by_type(meshset, MBVERTEX, name, true, verb);
526 }
virtual MoFEMErrorCode 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.

◆ 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::Core.

Examples:
elasticity.cpp, and HookeElement.cpp.

◆ 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::Core.

◆ 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::Core.

◆ 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::Core.

◆ 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::Core.

◆ 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::Core.

◆ 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::Core.

◆ clear_inactive_dofs()

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

Clear inactive dofs

Implemented in MoFEM::Core.

◆ get_dofs_by_name_and_ent_begin()

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

virtual DofEntityByNameAndType::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::Core.

◆ get_dofs_by_name_and_type_end()

virtual DofEntityByNameAndType::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::Core.

◆ get_dofs_by_name_begin()

virtual DofEntityByFieldName::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::Core.

◆ get_dofs_by_name_end()

virtual DofEntityByFieldName::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::Core.

◆ get_ent_field_by_name_begin()

virtual FieldEntityByFieldName::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::Core.

◆ get_ent_field_by_name_end()

virtual FieldEntityByFieldName::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::Core.

◆ 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.

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::Core.

Examples:
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::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,
DofMethod method,
int  verb = DEFAULT_VERBOSITY 
)
pure virtual

Make a loop over dofs.

Implemented in MoFEM::Core.

◆ loop_entities() [1/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::Core.

Examples:
loop_entities.cpp.

◆ loop_entities() [2/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::Core.

◆ 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::Core.

◆ 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::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 460 of file DeprecatedCoreInterface.cpp.

461  {
462  return getInterface<ProblemsManager>()->partitionGhostDofs(name, verb);
463 }

◆ remove_ents_from_field() [1/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::Core.

Examples:
mesh_smoothing.cpp.

◆ remove_ents_from_field() [2/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::Core.

◆ remove_ents_from_field() [3/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::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 = DEFAULT_VERBOSITY 
)
pure virtual

remove entities from field

Note
not collective

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

Set order approximation of the entities in the field.

Note
not collective
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:
build_problems.cpp, cell_forces.cpp, dm_build_partitioned_mesh.cpp, dm_create_subdm.cpp, elasticity.cpp, elasticity_mixed_formulation.cpp, forces_and_sources_testing_edge_element.cpp, forces_and_sources_testing_users_base.cpp, MagneticElement.hpp, mesh_smoothing.cpp, minimal_surface_area.cpp, remove_entities_from_problem.cpp, and UnsaturatedFlow.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 = 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::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 = 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::Core.

◆ synchronise_field_entities() [1/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities ( const BitFieldId  id,
int  verb = DEFAULT_VERBOSITY 
)
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, and mesh_smoothing.cpp.

◆ synchronise_field_entities() [2/2]

virtual MoFEMErrorCode MoFEM::CoreInterface::synchronise_field_entities ( const std::string &  name,
int  verb = DEFAULT_VERBOSITY 
)
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

Definition at line 276 of file DeprecatedCoreInterface.cpp.

277  {
278  return getInterface<BitRefManager>()->updateFieldMeshsetByEntitiesChildren(
279  child_bit, verb);
280 }

◆ 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 283 of file DeprecatedCoreInterface.cpp.

284  {
285  return getInterface<BitRefManager>()->updateFieldMeshsetByEntitiesChildren(
286  name, child_bit, verb);
287 }