v0.8.14
Public Member Functions | List of all members
MoFEM::DeprecatedCoreInterface Struct Referenceabstract

Deprecated interface functions. More...

#include <src/interfaces/DeprecatedCoreInterface.hpp>

Inheritance diagram for MoFEM::DeprecatedCoreInterface:
[legend]
Collaboration diagram for MoFEM::DeprecatedCoreInterface:
[legend]

Public Member Functions

virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_EDGEs (const Range &edge, const std::string &name)=0
 add EDGES entities from range to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_EDGEs (const EntityHandle meshset, const std::string &name, const bool recursive=false)=0
 add EDGES finite elements More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_VERTICEs (const Range &vert, const std::string &name)=0
 add VERTICES entities from range to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_TRIs (const Range &tris, const std::string &name)=0
 add TRI entities from range to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_TRIs (const EntityHandle meshset, const std::string &name, const bool recursive=false)=0
 add TRI entities from meshset to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_TETs (const Range &tets, const std::string &name)=0
 add TET entities from range to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_TETs (const EntityHandle meshset, const std::string &name, const bool recursive=false)=0
 add TET entities from meshset to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_PRISMs (const Range &prims, const std::string &name)=0
 add PRISM entities from meshset to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_by_PRISMs (const EntityHandle meshset, const std::string &name, const bool recursive=false)=0
 add TET entities from meshset to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_EntType_by_bit_ref (const BitRefLevel &bit, const std::string &name, EntityType type, int verb=-1)=0
 add TET elements from given refinement level to finite element database given by name More...
 
virtual DEPRECATED MoFEMErrorCode add_ents_to_finite_element_EntType_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, const std::string &name, EntityType type, int verb=-1)=0
 add TET entities from given refinement level to finite element database given by name More...
 
- Public Member Functions inherited from MoFEM::CoreInterface
virtual moab::Interface & get_moab ()=0
 
virtual const moab::Interface & get_moab () const =0
 
virtual MoFEMErrorCode set_moab_interface (moab::Interface &new_moab, int verb=VERBOSE, const bool distributed_mesh=true)=0
 Set the moab interface object. More...
 
virtual MeshsetsManagerget_meshsets_manager_ptr ()=0
 get MeshsetsManager pointer More...
 
virtual const MeshsetsManagerget_meshsets_manager_ptr () const =0
 get MeshsetsManager pointer More...
 
virtual MeshsetsManagerget_meshsets_manager ()=0
 get MeshsetsManager pointer More...
 
virtual const MeshsetsManagerget_meshsets_manager () const =0
 get MeshsetsManager pointer More...
 
virtual boost::shared_ptr< BasicEntityData > & get_basic_entity_data_ptr ()=0
 Get pointer to basic entity data. More...
 
virtual MPI_Comm & get_comm () const =0
 
virtual int get_comm_size () const =0
 
virtual int get_comm_rank () const =0
 
virtual MoFEMErrorCode check_number_of_ents_in_ents_field (const std::string &name) const =0
 check data consistency in entitiesPtr More...
 
virtual MoFEMErrorCode check_number_of_ents_in_ents_field () const =0
 check data consistency in entitiesPtr More...
 
virtual MoFEMErrorCode check_number_of_ents_in_ents_finite_element (const std::string &name) const =0
 check data consistency in entsFiniteElements More...
 
virtual MoFEMErrorCode check_number_of_ents_in_ents_finite_element () const =0
 check data consistency in entsFiniteElements More...
 
virtual MoFEMErrorCode clear_database (int verb=DEFAULT_VERBOSITY)=0
 Clear database. More...
 
virtual MoFEMErrorCode rebuild_database (int verb=DEFAULT_VERBOSITY)=0
 Clear database and initialize it once again. More...
 
virtual MoFEMErrorCode synchronise_entities (Range &ent, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode synchronise_field_entities (const BitFieldId id, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode synchronise_field_entities (const std::string &name, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode remove_parents_by_ents (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 Remove parents from entities. More...
 
virtual MoFEMErrorCode remove_parents_by_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode remove_parents_by_parents (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 Remove paremts from entities having parents in passed range. More...
 
virtual MoFEMErrorCode delete_ents_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, const bool remove_parent=false, int verb=DEFAULT_VERBOSITY)=0
 delete entities form mofem and moab database More...
 
virtual MoFEMErrorCode remove_ents (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities form mofem database More...
 
virtual MoFEMErrorCode remove_ents_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 remove entities form mofem database More...
 
virtual MoFEMErrorCode delete_finite_element (const std::string name, int verb=DEFAULT_VERBOSITY)=0
 delete finite element from mofem database More...
 
virtual MoFEMErrorCode add_field (const std::string &name, const FieldSpace space, const FieldApproximationBase base, const FieldCoefficientsNumber nb_of_coefficients, const TagType tag_type=MB_TAG_SPARSE, const enum MoFEMTypes bh=MF_EXCL, int verb=DEFAULT_VERBOSITY)=0
 Add field. More...
 
virtual MoFEMErrorCode 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 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 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 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 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 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 remove_ents_from_field (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from field More...
 
virtual MoFEMErrorCode remove_ents_from_field (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from all fields More...
 
virtual MoFEMErrorCode 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 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 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 list_fields () const =0
 list entities in the field More...
 
virtual MoFEMErrorCode build_fields (int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode build_field (const std::string field_name, int verb=DEFAULT_VERBOSITY)=0
 build field by name More...
 
virtual EntityHandle get_field_meshset (const std::string &name) const =0
 get field meshset More...
 
virtual MoFEMErrorCode 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 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 get_field_entities_by_handle (const std::string name, Range &ents) const =0
 get entities in the field by handle More...
 
virtual bool check_field (const std::string &name) const =0
 check if field is in database More...
 
virtual const Fieldget_field_structure (const std::string &name)=0
 get field structure More...
 
virtual bool check_finite_element (const std::string &name) const =0
 Check if finite element is in database. More...
 
virtual MoFEMErrorCode add_finite_element (const std::string &fe_name, enum MoFEMTypes bh=MF_EXCL, int verb=DEFAULT_VERBOSITY)=0
 add finite element More...
 
virtual MoFEMErrorCode modify_finite_element_adjacency_table (const std::string &fe_name, const EntityType type, ElementAdjacencyFunct function)=0
 modify finite element table, only for advanced user More...
 
virtual MoFEMErrorCode modify_finite_element_add_field_data (const std::string &fe_name, const std::string &name_filed)=0
 set finite element field data More...
 
virtual MoFEMErrorCode modify_finite_element_off_field_data (const std::string &fe_name, const std::string &name_filed)=0
 unset finite element field data More...
 
virtual MoFEMErrorCode modify_finite_element_add_field_row (const std::string &fe_name, const std::string &name_row)=0
 set field row which finite element use More...
 
virtual MoFEMErrorCode modify_finite_element_off_field_row (const std::string &fe_name, const std::string &name_row)=0
 unset field row which finite element use More...
 
virtual MoFEMErrorCode modify_finite_element_add_field_col (const std::string &fe_name, const std::string &name_row)=0
 set field col which finite element use More...
 
virtual MoFEMErrorCode modify_finite_element_off_field_col (const std::string &fe_name, const std::string &name_row)=0
 unset field col which finite element use More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_type (const EntityHandle entities, const EntityType type, const std::string &name, const bool recursive=true)=0
 add entities to finite element More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_dim (const EntityHandle entities, const int dim, const std::string &name, const bool recursive=true)=0
 add entities to finite element More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_type (const Range &ents, const EntityType type, const std::string &name)=0
 add entities to finite elements More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_dim (const Range &ents, const int dim, const std::string &name)=0
 add entities to finite elements More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, const std::string &name, EntityType type, int verb=DEFAULT_VERBOSITY)=0
 add TET entities from given refinement level to finite element database given by name More...
 
virtual EntityHandle get_finite_element_meshset (const std::string &name) const =0
 
virtual MoFEMErrorCode 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 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 get_finite_element_entities_by_handle (const std::string name, Range &ents) const =0
 get entities in the finite element by handle More...
 
virtual MoFEMErrorCode remove_ents_from_finite_element_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 remove elements from given refinement level to finite element database More...
 
virtual MoFEMErrorCode remove_ents_from_finite_element (const std::string &name, const EntityHandle meshset, const EntityType type, int verb=DEFAULT_VERBOSITY)=0
 remove entities from given refinement level to finite element database More...
 
virtual MoFEMErrorCode remove_ents_from_finite_element (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from finite element database More...
 
virtual MoFEMErrorCode remove_ents_from_finite_element (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 remove entities from finite elements in database More...
 
virtual MoFEMErrorCode add_ents_to_finite_element_by_MESHSET (const EntityHandle meshset, const std::string &name, const bool recursive=false)=0
 add MESHSET element to finite element database given by name More...
 
virtual MoFEMErrorCode list_finite_elements () const =0
 list finite elements in database More...
 
virtual MoFEMErrorCode list_adjacencies () const =0
 list adjacencies More...
 
virtual MoFEMErrorCode add_problem (const std::string &name, enum MoFEMTypes bh=MF_EXCL, int verb=DEFAULT_VERBOSITY)=0
 Add problem. More...
 
virtual bool check_problem (const std::string name)=0
 check if problem exist More...
 
virtual MoFEMErrorCode delete_problem (const std::string name)=0
 Delete problem. More...
 
virtual MoFEMErrorCode modify_problem_add_finite_element (const std::string &name_problem, const std::string &fe_name)=0
 add finite element to problem, this add entities assigned to finite element to a particular problem More...
 
virtual MoFEMErrorCode modify_problem_unset_finite_element (const std::string &name_problem, const std::string &fe_name)=0
 unset finite element from problem, this remove entities assigned to finite element to a particular problemNote: If problem is build, it need to be cleaned to make this effective More...
 
virtual MoFEMErrorCode modify_problem_ref_level_add_bit (const std::string &name_problem, const BitRefLevel &bit)=0
 add ref level to problem
More...
 
virtual MoFEMErrorCode modify_problem_mask_ref_level_add_bit (const std::string &name_problem, const BitRefLevel &bit)=0
 set dof mask ref level for problem More...
 
virtual MoFEMErrorCode modify_problem_ref_level_set_bit (const std::string &name_problem, const BitRefLevel &bit)=0
 set ref level for problem More...
 
virtual MoFEMErrorCode modify_problem_mask_ref_level_set_bit (const std::string &name_problem, const BitRefLevel &bit)=0
 set dof mask ref level for problem More...
 
virtual MoFEMErrorCode list_problem () const =0
 list problems More...
 
virtual MoFEMErrorCode clear_problem (const std::string &name, int verb=DEFAULT_VERBOSITY)=0
 clear problem More...
 
virtual MoFEMErrorCode clear_problems (int verb=DEFAULT_VERBOSITY)=0
 clear problems More...
 
virtual MoFEMErrorCode partition_check_matrix_fill_in (const std::string &problem_name, int row, int col, int verb)=0
 check if matrix fill in correspond to finite element indices More...
 
virtual MoFEMErrorCode resolve_shared_ents (const Problem *problem_ptr, const std::string &fe_name, int verb=DEFAULT_VERBOSITY)=0
 resolve shared entities for finite elements in the problem More...
 
virtual MoFEMErrorCode resolve_shared_ents (const std::string &name, const std::string &fe_name, int verb=DEFAULT_VERBOSITY)=0
 resolve shared entities for finite elements in the problem More...
 
virtual MoFEMErrorCode get_problem_finite_elements_entities (const std::string &name, const std::string &fe_name, const EntityHandle meshset)=0
 add finite elements to the meshset More...
 
virtual MoFEMErrorCode list_dofs_by_field_name (const std::string &name) const =0
 
virtual MoFEMErrorCode clear_inactive_dofs (int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_dofs_fields_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_dofs_fields (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_dofs_fields (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_ents_fields (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_ents_fields (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_ents_fields_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode build_finite_elements (int verb=DEFAULT_VERBOSITY)=0
 Build finite elementsBuild finite element data structures. Have to be run before problem and adjacencies are constructed. More...
 
virtual MoFEMErrorCode build_finite_elements (const string fe_name, const Range *ents_ptr=NULL, int verb=DEFAULT_VERBOSITY)=0
 Build finite elementsBuild finite element data structures. Have to be run before problem and adjacencies are constructed. More...
 
virtual MoFEMErrorCode clear_finite_elements_by_bit_ref (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_finite_elements (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode clear_finite_elements (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 
virtual MoFEMErrorCode build_adjacencies (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 build adjacencies More...
 
virtual MoFEMErrorCode build_adjacencies (const BitRefLevel &bit, int verb=DEFAULT_VERBOSITY)=0
 build adjacencies More...
 
virtual MoFEMErrorCode build_adjacencies (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 build adjacencies More...
 
virtual MoFEMErrorCode clear_adjacencies_finite_elements (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 clear adjacency map for finite elements on given bit level More...
 
virtual MoFEMErrorCode clear_adjacencies_entities (const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0
 clear adjacency map for entities on given bit level More...
 
virtual MoFEMErrorCode clear_adjacencies_entities (const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 clear adjacencies for field entities by entities More...
 
virtual MoFEMErrorCode clear_adjacencies_entities (const std::string &name, const Range &ents, int verb=DEFAULT_VERBOSITY)=0
 clear adjacencies for field entities by entities and field namd More...
 
virtual MoFEMErrorCode MatCreateMPIAIJWithArrays (const std::string &name, Mat *Aij, int verb=DEFAULT_VERBOSITY)=0
 create Mat (MPIAIJ) for problem (collective) More...
 
virtual MoFEMErrorCode MatCreateMPIAdj_with_Idx_mi_tag (const std::string &name, Mat *Adj, int verb=DEFAULT_VERBOSITY)=0
 Create Adj matrix. More...
 
virtual MoFEMErrorCode MatCreateSeqAIJWithArrays (const std::string &name, Mat *Aij, PetscInt **i, PetscInt **j, PetscScalar **v, int verb=DEFAULT_VERBOSITY)=0
 create Mat (AIJ) for problem More...
 
virtual MoFEMErrorCode problem_basic_method_preProcess (const Problem *problem_ptr, BasicMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Set data for BasicMethod. More...
 
virtual MoFEMErrorCode problem_basic_method_preProcess (const std::string &problem_name, BasicMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Set data for BasicMethod. More...
 
virtual MoFEMErrorCode problem_basic_method_postProcess (const Problem *problem_ptr, BasicMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Set data for BasicMethodThis function set data about problem, adjacencies and other multi-indices in database. This function can be used a special case when user need to do some pre- and post-processing before matrix or vector is initiated, or to assemble matrix for group of FEMethods. Is used by classes SnesCtx and TsCtx. Look for more details there. More...
 
virtual MoFEMErrorCode problem_basic_method_postProcess (const std::string &problem_name, BasicMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Set data for BasicMethodThis function set data about problem, adjacencies and other multi-indices in database. This function can be used a special case when user need to do some pre- and post-processing before matrix or vector is initiated, or to assemble matrix for group of FEMethods. Is used by classes SnesCtx and TsCtx. Look for more details there. More...
 
virtual MoFEMErrorCode loop_finite_elements (const std::string &problem_name, const std::string &fe_name, FEMethod &method, MoFEMTypes bh=MF_EXIST, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over finite elements. More...
 
virtual MoFEMErrorCode loop_finite_elements (const Problem *problem_ptr, const std::string &fe_name, FEMethod &method, int lower_rank, int upper_rank, MoFEMTypes bh=MF_EXIST, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over finite elements on partitions from upper to lower rank. More...
 
virtual MoFEMErrorCode loop_finite_elements (const std::string &problem_name, const std::string &fe_name, FEMethod &method, int lower_rank, int upper_rank, MoFEMTypes bh=MF_EXIST, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over finite elements on partitions from upper to lower rank. More...
 
virtual MoFEMErrorCode loop_dofs (const Problem *problem_ptr, const std::string &field_name, RowColData rc, DofMethod &method, int lower_rank, int upper_rank, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over dofs. More...
 
virtual MoFEMErrorCode loop_dofs (const std::string &problem_name, const std::string &field_name, RowColData rc, DofMethod &method, int lower_rank, int upper_rank, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over dofs. More...
 
virtual MoFEMErrorCode loop_dofs (const std::string &problem_name, const std::string &field_name, RowColData rc, DofMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over dofs. More...
 
virtual MoFEMErrorCode loop_dofs (const std::string &field_name, DofMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over dofs. More...
 
virtual MoFEMErrorCode loop_entities (const std::string &field_name, EntityMethod &method, int verb=DEFAULT_VERBOSITY)=0
 Make a loop over entities. More...
 
virtual MoFEMErrorCode get_fields (const Field_multiIndex **fields_ptr) const =0
 Get fields multi-index from database. More...
 
virtual MoFEMErrorCode get_ref_ents (const RefEntity_multiIndex **refined_ents_ptr) const =0
 Get ref entities multi-index from database. More...
 
virtual MoFEMErrorCode get_ref_finite_elements (const RefElement_multiIndex **refined_finite_elements_ptr) const =0
 Get ref finite elements multi-index form database. More...
 
virtual MoFEMErrorCode get_finite_elements (const FiniteElement_multiIndex **fe_ptr) const =0
 Get finite elements multi-index. More...
 
virtual MoFEMErrorCode get_ents_finite_elements (const EntFiniteElement_multiIndex **fe_ent_ptr) const =0
 Get entities finite elements multi-index. More...
 
virtual MoFEMErrorCode get_problem (const std::string &problem_name, const Problem **problem_ptr) const =0
 Get problem database (data structure) More...
 
virtual MoFEMErrorCode get_problems (const Problem_multiIndex **problems_ptr) const =0
 Get pointer to problems multi-index. More...
 
virtual MoFEMErrorCode get_field_ents (const FieldEntity_multiIndex **field_ents) const =0
 Get field multi index. More...
 
virtual MoFEMErrorCode get_dofs (const DofEntity_multiIndex **dofs_ptr) const =0
 Get dofs multi index. More...
 
virtual FieldEntityByFieldName::iterator 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 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 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 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 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 get_dofs_by_name_and_ent_end (const std::string &field_name, const EntityHandle ent) const =0
 get begin iterator of filed dofs of given name and ent (instead you can use IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP(MFIELD,NAME,ENT,IT)for(IT_GET_DOFS_FIELD_BY_NAME_AND_ENT_FOR_LOOP(MFIELD,NAME,ENT,IT)) { ... } More...
 
template<typename DIT >
MoFEMErrorCode get_field_dof_data (const std::string &name, const EntityHandle *ent, const int num_ents, DIT dit, int *count=NULL)
 get field data from entity and fieldthis function is not recommended to be used in finite element implementation More...
 
template<typename DIT >
MoFEMErrorCode 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 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 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...
 
virtual EntFiniteElementByName::iterator get_fe_by_name_begin (const std::string &fe_name) const =0
 get begin iterator of finite elements of given name (instead you can use IT_GET_FES_BY_NAME_FOR_LOOP(MFIELD,NAME,IT) More...
 
virtual EntFiniteElementByName::iterator get_fe_by_name_end (const std::string &fe_name) const =0
 get end iterator of finite elements of given name (instead you can use IT_GET_FES_BY_NAME_FOR_LOOP(MFIELD,NAME,IT) More...
 
- Public Member Functions inherited from MoFEM::UnknownInterface
virtual MoFEMErrorCode query_interface (const MOFEMuuid &uuid, UnknownInterface **iface) const =0
 
template<class IFACE >
MoFEMErrorCode registerInterface (const MOFEMuuid &uuid, bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE , bool VERIFY = false>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, IFACE *&iface) const
 Get interface by uuid and return reference to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface refernce to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface. More...
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface. More...
 
virtual ~UnknownInterface ()
 
virtual MoFEMErrorCode getLibVersion (Version &version) const
 Get library version. More...
 
virtual const MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version) const
 Get database major version. More...
 
virtual MoFEMErrorCode getInterfaceVersion (Version &version) const
 Get database major version. More...
 
template<>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, UnknownInterface *&iface) const
 

Interfaces

template<class IFace >
DEPRECATED MoFEMErrorCode query_interface (IFace *&ptr) const
 
template<class IFace >
DEPRECATED IFace * query_interface () const
 

Seed entities

virtual DEPRECATED MoFEMErrorCode seed_ref_level_2D (const EntityHandle meshset, const BitRefLevel &bit, int verb=-1)
 seed 2D entities (Triangles entities only) in the meshset and their adjacencies (only TRIs adjacencies) in a particular BitRefLevel More...
 
DEPRECATED MoFEMErrorCode seed_ref_level_3D (const EntityHandle meshset, const BitRefLevel &bit, int verb=-1)
 seed 2D entities in the meshset and their adjacencies (only TETs adjacencies) in a particular BitRefLevel More...
 
DEPRECATED MoFEMErrorCode seed_ref_level (const Range &ents, const BitRefLevel &bit, const bool only_tets=true, int verb=-1)
 seed entities in the range and their adjacencies in a particular BitRefLevel More...
 
DEPRECATED MoFEMErrorCode seed_ref_level_MESHSET (const EntityHandle meshset, const BitRefLevel &bit, int verb=-1)
 
DEPRECATED MoFEMErrorCode seed_finite_elements (const EntityHandle meshset, int verb=-1)
 
DEPRECATED MoFEMErrorCode seed_finite_elements (const Range &entities, int verb=-1)
 

Getting entities by BitRefLevel

DEPRECATED MoFEMErrorCode get_entities_by_type_and_ref_level (const BitRefLevel &bit, const BitRefLevel &mask, const EntityType type, const EntityHandle meshset, int verb=-1)
 add all ents from ref level given by bit to meshset More...
 
DEPRECATED MoFEMErrorCode get_entities_by_type_and_ref_level (const BitRefLevel &bit, const BitRefLevel &mask, const EntityType type, Range &ents, int verb=-1)
 add all ents from ref level given by bit to meshset More...
 
DEPRECATED MoFEMErrorCode get_entities_by_ref_level (const BitRefLevel &bit, const BitRefLevel &mask, const EntityHandle meshset)
 add all ents from ref level given by bit to meshset More...
 
DEPRECATED MoFEMErrorCode get_entities_by_ref_level (const BitRefLevel &bit, const BitRefLevel &mask, Range &ents)
 add all ents from ref level given by bit to meshset More...
 

Mange meshest

DEPRECATED bool check_msId_meshset (const int msId, const CubitBCType cubit_bc_type)
 check for CUBIT Id and CUBIT type More...
 
DEPRECATED MoFEMErrorCode add_cubit_msId (const CubitBCType cubit_bc_tyep, const int msId, const std::string name="")
 add cubit meshset More...
 
DEPRECATED MoFEMErrorCode set_cubit_msId_attribites (const CubitBCType cubit_bc_type, const int ms_id, const std::vector< double > &attributes, const std::string name="")
 set attributes to cubit meshset More...
 
DEPRECATED MoFEMErrorCode set_cubit_msId_attribites_data_structure (const CubitBCType cubit_bc_type, const int ms_id, const GenericAttributeData &data, const std::string name="")
 set (material) data structure to cubit meshset More...
 
DEPRECATED MoFEMErrorCode set_cubit_msId_bc_data_structure (const CubitBCType cubit_bc_type, const int ms_id, const GenericCubitBcData &data)
 set boundary data structure to meshset More...
 
DEPRECATED MoFEMErrorCode delete_cubit_msId (const CubitBCType cubit_bc_type, const int msId)
 delete cubit meshset More...
 
DEPRECATED MoFEMErrorCode get_cubit_msId (const int msId, const CubitBCType cubit_bc_type, const CubitMeshSets **cubit_meshset_ptr)
 get cubit meshset More...
 
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension (const int ms_id, const CubitBCType cubit_bc_type, const int dimension, Range &entities, const bool recursive=false)
 
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension (const int ms_id, const CubitBCType cubit_bc_type, Range &entities, const bool recursive=false)
 
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension (const int msId, const unsigned int cubit_bc_type, const int dimension, Range &entities, const bool recursive=false)
 get entities from CUBIT/meshset of a particular entity dimension More...
 
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension (const int msId, const unsigned int cubit_bc_type, Range &entities, const bool recursive=false)
 get entities related to CUBIT/meshset, More...
 
DEPRECATED MoFEMErrorCode get_cubit_msId_meshset (const int msId, const unsigned int cubit_bc_type, EntityHandle &meshset)
 get meshset from CUBIT Id and CUBIT type More...
 
DEPRECATED MoFEMErrorCode get_cubit_meshsets (const unsigned int cubit_bc_type, Range &meshsets)
 get all CUBIT meshsets by CUBIT type More...
 
DEPRECATED MoFEMErrorCode print_cubit_displacement_set () const
 
DEPRECATED MoFEMErrorCode print_cubit_pressure_set () const
 
DEPRECATED MoFEMErrorCode print_cubit_force_set () const
 
DEPRECATED MoFEMErrorCode print_cubit_materials_set () const
 

Updating entities (DO NOT USE THIS USE BitRefManager interface)

DEPRECATED MoFEMErrorCode update_meshset_by_entities_children (const EntityHandle parent, const BitRefLevel &child_bit, const EntityHandle child, EntityType child_type, const bool recursive=false, int verb=-1)
 Get child entities form meshset containing parent entities. More...
 
DEPRECATED MoFEMErrorCode update_field_meshset_by_entities_children (const BitRefLevel &child_bit, int verb=-1)
 update fields meshesets by child entities More...
 
DEPRECATED MoFEMErrorCode update_field_meshset_by_entities_children (const std::string name, const BitRefLevel &child_bit, int verb=-1)
 update field mesheset by child entities More...
 
DEPRECATED MoFEMErrorCode update_finite_element_meshset_by_entities_children (const std::string name, const BitRefLevel &child_bit, const EntityType fe_ent_type, int verb=-1)
 update finite element mesheset by child entities More...
 

Shift BitRefLevl

DEPRECATED MoFEMErrorCode shift_right_bit_ref (const int shift, int verb=-1)
 right shift bit ref level More...
 

Build problems (DEPRECATED SHOULD NOT USE THIS)

DEPRECATED MoFEMErrorCode build_problem (const std::string &name, const bool square_matrix, int verb=-1)
 build problem data structures More...
 
DEPRECATED MoFEMErrorCode build_problem (Problem *problem_ptr, const bool square_matrix, int verb=-1)
 build problem data structures More...
 
virtual DEPRECATED MoFEMErrorCode build_problems (int verb=-1)=0
 build problem data structures More...
 
DEPRECATED MoFEMErrorCode build_problem_on_distributed_mesh (const std::string &name, const bool square_matrix=true, int verb=-1)
 build problem data structures, assuming that mesh is distributed (collective) More...
 
DEPRECATED MoFEMErrorCode build_problem_on_distributed_mesh (Problem *problem_ptr, const bool square_matrix=true, int verb=-1)
 build problem data structures, assuming that mesh is distributed (collective) More...
 
virtual DEPRECATED MoFEMErrorCode build_problem_on_distributed_mesh (int verb=-1)=0
 build problem data structures, assuming that mesh is distributed (collective) More...
 
DEPRECATED MoFEMErrorCode partition_mesh (const Range &ents, const int dim, const int adj_dim, const int n_parts, int verb=-1)
 Set partition tag to each finite element in the problem. More...
 
DEPRECATED MoFEMErrorCode partition_simple_problem (const std::string &name, int verb=-1)
 partition problem dofs More...
 
DEPRECATED MoFEMErrorCode partition_problem (const std::string &name, int verb=-1)
 partition problem dofs (collective) More...
 
DEPRECATED MoFEMErrorCode partition_compose_problem (const std::string &name, const std::string &problem_for_rows, const bool copy_rows, const std::string &problem_for_cols, const bool copy_cols, int verb=-1)
 build indexing and partition problem inheriting indexing and partitioning from two other problems More...
 
DEPRECATED MoFEMErrorCode build_sub_problem (const std::string &out_name, const std::vector< std::string > &fields_row, const std::vector< std::string > &fields_col, const std::string &main_problem, const bool square_matrix=true, int verb=-1)
 build sub problem More...
 
DEPRECATED MoFEMErrorCode partition_ghost_dofs (const std::string &name, int verb=-1)
 determine ghost nodes More...
 
DEPRECATED MoFEMErrorCode partition_finite_elements (const std::string &name, bool part_from_moab=false, int low_proc=-1, int hi_proc=-1, int verb=-1)
 partition finite elements More...
 
DEPRECATED MoFEMErrorCode get_problem_elements_layout (const std::string &name, const std::string &fe_name, PetscLayout *layout, int verb=-1)
 Get layout of elements in the problemIn layout is stored information how many elements is on each processor, for more information look int petsc documentation http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/IS/PetscLayoutCreate.html#PetscLayoutCreate More...
 

Create vectors

DEPRECATED MoFEMErrorCode VecCreateSeq (const std::string &name, RowColData rc, Vec *V) const
 create local vector for problem More...
 
DEPRECATED MoFEMErrorCode VecCreateGhost (const std::string &name, RowColData rc, Vec *V) const
 create ghost vector for problem (collective)collective - need to be run on all processors in communicator More...
 

Create IS

DEPRECATED MoFEMErrorCode ISCreateFromProblemFieldToOtherProblemField (const std::string &x_problem, const std::string &x_field_name, RowColData x_rc, const std::string &y_problem, const std::string &y_field_name, RowColData y_rc, std::vector< int > &idx, std::vector< int > &idy, int verb=-1) const
 create IS for give two problems and field More...
 
DEPRECATED MoFEMErrorCode ISCreateFromProblemFieldToOtherProblemField (const std::string &x_problem, const std::string &x_field_name, RowColData x_rc, const std::string &y_problem, const std::string &y_field_name, RowColData y_rc, IS *ix, IS *iy, int verb=-1) const
 create IS for give two problems and field More...
 
DEPRECATED MoFEMErrorCode ISCreateProblemOrder (const std::string &problem, RowColData rc, int min_order, int max_order, IS *is, int verb=-1) const
 create IS for given order range (collective) More...
 
DEPRECATED MoFEMErrorCode ISCreateProblemFieldAndRank (const std::string &problem, RowColData rc, const std::string &field, int min_coeff_idx, int max_coeff_idx, IS *is, int verb=-1) const
 create IS for given problem, field and rank range (collective) More...
 

Scatter vectors

DEPRECATED MoFEMErrorCode VecScatterCreate (Vec xin, const std::string &x_problem, const std::string &x_field_name, RowColData x_rc, Vec yin, const std::string &y_problem, const std::string &y_field_name, RowColData y_rc, VecScatter *newctx, int verb=-1) const
 create scatter for vectors form one to another problem (collective)User specify what name of field on one problem is scattered to another. More...
 
DEPRECATED MoFEMErrorCode VecScatterCreate (Vec xin, const std::string &x_problem, RowColData x_rc, Vec yin, const std::string &y_problem, RowColData y_rc, VecScatter *newctx, int verb=-1) const
 create scatter for vectors form one to another problem (collective) More...
 

Set vector and mesh values

DEPRECATED MoFEMErrorCode set_local_ghost_vector (const Problem *problem_ptr, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode) const
 set values of vector from/to meshdatabase More...
 
DEPRECATED MoFEMErrorCode set_local_ghost_vector (const std::string &name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode) const
 set values of vector from/to meshdatabase More...
 
DEPRECATED MoFEMErrorCode set_global_ghost_vector (const Problem *problem_ptr, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode) const
 set values of vector from/to mesh database (collective)collective - need tu be run on all processors in communicator More...
 
DEPRECATED MoFEMErrorCode set_global_ghost_vector (const std::string &name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode) const
 set values of vector from/to mesh database (collective)collective - need tu be run on all processors in communicator More...
 
DEPRECATED MoFEMErrorCode set_other_local_ghost_vector (const Problem *problem_ptr, const std::string &fiel_name, const std::string &cpy_field_name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode, int verb=-1)
 Copy vector to field which is not part of the problem. More...
 
DEPRECATED MoFEMErrorCode set_other_local_ghost_vector (const std::string &name, const std::string &field_name, const std::string &cpy_field_name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode, int verb=-1)
 Copy vector to field which is not part of the problem. More...
 
DEPRECATED MoFEMErrorCode set_other_global_ghost_vector (const Problem *problem_ptr, const std::string &field_name, const std::string &cpy_field_name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode, int verb=-1)
 Copy vector to field which is not part of the problem (collective)collective - need tu be run on all processors in communicator. More...
 
DEPRECATED MoFEMErrorCode set_other_global_ghost_vector (const std::string &name, const std::string &field_name, const std::string &cpy_field_name, RowColData rc, Vec V, InsertMode mode, ScatterMode scatter_mode, int verb=-1)
 Copy vector to field which is not part of the problem (collective)collective - need tu be run on all processors in communicator. More...
 

Field algebra

DEPRECATED MoFEMErrorCode field_axpy (const double alpha, const std::string &fiel_name_x, const std::string &field_name_y, bool error_if_missing=false, bool creat_if_missing=false)
 axpy fields More...
 
DEPRECATED MoFEMErrorCode field_scale (const double alpha, const std::string &field_name)
 scale field More...
 
DEPRECATED MoFEMErrorCode set_field (const double val, const EntityType type, const std::string &field_name)
 use FieldBlas More...
 
DEPRECATED MoFEMErrorCode set_field (const double val, const EntityType type, const Range &ents, const std::string &field_name)
 set field More...
 

Get adjacencies

DEPRECATED MoFEMErrorCode get_adjacencies_equality (const EntityHandle from_entiti, const int to_dimension, Range &adj_entities) const
 Get the adjacencies associated with a entity to entities of a specified dimension. \
separate interface, i.e. BitLevelManager. More...
 
DEPRECATED MoFEMErrorCode get_adjacencies_any (const EntityHandle from_entiti, const int to_dimension, Range &adj_entities) const
 Get the adjacencies associated with a entity to entities of a specified dimension.bit ref level of adjacent entities is any of bit ref level of adjacent entities. More...
 
DEPRECATED MoFEMErrorCode get_adjacencies (const Problem *problem_ptr, const EntityHandle *from_entities, const int num_netities, const int to_dimension, Range &adj_entities, const int operation_type=moab::Interface::INTERSECT, const int verb=0) const
 Get the adjacencies associated with a entity to entities of a specified dimension. \
separate interface, i.e. BitLevelManage. More...
 
DEPRECATED MoFEMErrorCode get_adjacencies (const BitRefLevel &bit, const EntityHandle *from_entities, const int num_netities, const int to_dimension, Range &adj_entities, const int operation_type=moab::Interface::INTERSECT, const int verb=0) const
 Get the adjacencies associated with a entity to entities of a specified dimension. \
separate interface, i.e. BitLevelManage. More...
 

Clear and remove

DEPRECATED MoFEMErrorCode clear_dofs_fields (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)
 
DEPRECATED MoFEMErrorCode clear_ents_fields (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)
 
DEPRECATED MoFEMErrorCode clear_finite_elements (const BitRefLevel &bit, const BitRefLevel &mask, int verb=-1)
 
DEPRECATED MoFEMErrorCode 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 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 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 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 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 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 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 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 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 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 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 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...
 

Additional Inherited Members

- Protected Member Functions inherited from MoFEM::UnknownInterface
boost::typeindex::type_index getClassIdx (const MOFEMuuid &uid) const
 Get type name for interface Id. More...
 
MOFEMuuid getUId (const boost::typeindex::type_index &class_idx) const
 Get interface Id for class name. More...
 

Detailed Description

Deprecated interface functions.

Definition at line 26 of file DeprecatedCoreInterface.hpp.

Member Function Documentation

◆ add_cubit_msId()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_cubit_msId ( const CubitBCType  cubit_bc_tyep,
const int  msId,
const std::string  name = "" 
)

add cubit meshset

Deprecated:
use MeshsetsManager
Parameters
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
ms_idid of the BLOCKSET/SIDESET/BLOCKSET
nameof set

Definition at line 321 of file DeprecatedCoreInterface.cpp.

322  {
323  return getInterface<MeshsetsManager>()->addMeshset(cubit_bc_type, ms_id,
324  name);
325 }

◆ add_ents_to_finite_element_by_EDGEs()

virtual DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::add_ents_to_finite_element_by_EDGEs ( const EntityHandle  meshset,
const std::string &  name,
const bool  recursive = false 
)
pure virtual

add EDGES finite elements

Deprecated:
use add_ents_to_finite_element_by_type
Parameters
meshset
namename of finite element
recursivetake entities from meshsets in meshset
Returns
error code

Implemented in MoFEM::Core.

◆ build_problem() [1/2]

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

build problem data structures

Note
If square_matrix is set to true, that indicate that problem is structurally symmetric, i.e. rows and columns have the same dofs and are indexed in the same way.
Deprecated:
Use ProblemsManager to build and partition problems
Parameters
problempointer
square_matrixstructurally symmetric problem
verbverbosity level
Returns
error code

Definition at line 419 of file DeprecatedCoreInterface.cpp.

420  {
421  return getInterface<ProblemsManager>()->buildProblem(problem_name,
422  square_matrix, verb);
423 }

◆ build_problem() [2/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_problem ( Problem problem_ptr,
const bool  square_matrix,
int  verb = -1 
)

build problem data structures

Note
If square_matrix is set to true, that indicate that problem is structurally symmetric, i.e. rows and columns have the same dofs and are indexed in the same way.
Deprecated:
Use ProblemsManager to build and partition problems
Parameters
nameproblem name
square_matrixstructurally symmetric problem
verbverbosity level
Returns
error code

Definition at line 411 of file DeprecatedCoreInterface.cpp.

413  {
414  return getInterface<ProblemsManager>()->buildProblem(problem_ptr,
415  square_matrix, verb);
416 }

◆ build_problem_on_distributed_mesh() [1/3]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_problem_on_distributed_mesh ( const std::string &  name,
const bool  square_matrix = true,
int  verb = -1 
)

build problem data structures, assuming that mesh is distributed (collective)

Deprecated:
Use ProblemsManager to build and partition problems

Mesh is distributed, that means that each processor keeps only own part of the mesh and shared entities.

Collective - need to be run on all processors in communicator, i.e. each function has to call this function.

Definition at line 400 of file DeprecatedCoreInterface.cpp.

401  {
402  return getInterface<ProblemsManager>()->buildProblemOnDistributedMesh(
403  name, square_matrix, verb);
404 }

◆ build_problem_on_distributed_mesh() [2/3]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_problem_on_distributed_mesh ( Problem problem_ptr,
const bool  square_matrix = true,
int  verb = -1 
)

build problem data structures, assuming that mesh is distributed (collective)

Deprecated:
Use ProblemsManager to build and partition problems

Mesh is distributed, that means that each processor keeps only own part of the mesh and shared entities.

Collective - need to be run on all processors in communicator, i.e. each function has to call this function.

Definition at line 405 of file DeprecatedCoreInterface.cpp.

406  {
407  return getInterface<ProblemsManager>()->buildProblemOnDistributedMesh(
408  problem_ptr, square_matrix, verb);
409 }

◆ build_problem_on_distributed_mesh() [3/3]

virtual DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_problem_on_distributed_mesh ( int  verb = -1)
pure virtual

build problem data structures, assuming that mesh is distributed (collective)

Deprecated:
Use ProblemsManager to build and partition problems

Mesh is distributed, that means that each processor keeps only own part of the mesh and shared entities.

Collective - need to be run on all processors in communicator, i.e. each function has to call this function.

Implemented in MoFEM::Core.

◆ build_problems()

virtual DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_problems ( int  verb = -1)
pure virtual

build problem data structures

Deprecated:
Use MoFEM::Interface::build_problem(const std::string &name,const bool square_matrix,int verb = -1) instead. This function not allows to Control if problem is structurally symmetric.

Implemented in MoFEM::Core.

◆ build_sub_problem()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::build_sub_problem ( const std::string &  out_name,
const std::vector< std::string > &  fields_row,
const std::vector< std::string > &  fields_col,
const std::string &  main_problem,
const bool  square_matrix = true,
int  verb = -1 
)

build sub problem

Deprecated:
Use ProblemsManager to build and partition problems
Parameters
out_nameproblem
fields_rowvector of fields composing problem
fields_colvector of fields composing problem
main_problemmain problem
Returns
error code

Definition at line 439 of file DeprecatedCoreInterface.cpp.

442  {
443  return getInterface<ProblemsManager>()->buildSubProblem(
444  out_name, fields_row, fields_col, main_problem, square_matrix, verb);
445 }

◆ check_msId_meshset()

bool MoFEM::DeprecatedCoreInterface::check_msId_meshset ( const int  msId,
const CubitBCType  cubit_bc_type 
)

check for CUBIT Id and CUBIT type

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
msIdid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)

Definition at line 316 of file DeprecatedCoreInterface.cpp.

317  {
318  return getInterface<MeshsetsManager>()->checkMeshset(ms_id, cubit_bc_type);
319 }

◆ clear_dofs_fields()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::clear_dofs_fields ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
Deprecated:
Clear dofs by bit level

Definition at line 483 of file DeprecatedCoreInterface.cpp.

484  {
485  return clear_dofs_fields_by_bit_ref(bit, mask, verb);
486 }
virtual MoFEMErrorCode clear_dofs_fields_by_bit_ref(const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0

◆ clear_ents_fields()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::clear_ents_fields ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
Deprecated:
use clear_ents_fields_by_bit_ref

Definition at line 489 of file DeprecatedCoreInterface.cpp.

490  {
491  return clear_ents_fields_by_bit_ref(bit, mask, verb);
492 }
virtual MoFEMErrorCode clear_ents_fields_by_bit_ref(const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0

◆ clear_finite_elements()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::clear_finite_elements ( const BitRefLevel bit,
const BitRefLevel mask,
int  verb = -1 
)
Deprecated:
use clear_finite_elements_by_bit_ref

Definition at line 494 of file DeprecatedCoreInterface.cpp.

495  {
496  return clear_finite_elements_by_bit_ref(bit, mask, verb);
497 }
virtual MoFEMErrorCode clear_finite_elements_by_bit_ref(const BitRefLevel &bit, const BitRefLevel &mask, int verb=DEFAULT_VERBOSITY)=0

◆ delete_cubit_msId()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::delete_cubit_msId ( const CubitBCType  cubit_bc_type,
const int  msId 
)

delete cubit meshset

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
msIdid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT

Definition at line 346 of file DeprecatedCoreInterface.cpp.

347  {
348  return getInterface<MeshsetsManager>()->deleteMeshset(cubit_bc_type, ms_id);
349 }

◆ get_cubit_meshsets()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_meshsets ( const unsigned int  cubit_bc_type,
Range &  meshsets 
)

get all CUBIT meshsets by CUBIT type

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
seeCubitBC (NODESET, SIDESET or BLOCKSET and more).
meshsetsis range of meshsets

Definition at line 394 of file DeprecatedCoreInterface.cpp.

395  {
396  return getInterface<MeshsetsManager>()->getMeshsetsByType(cubit_bc_type,
397  meshsets);
398 }

◆ get_cubit_msId()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId ( const int  msId,
const CubitBCType  cubit_bc_type,
const CubitMeshSets **  cubit_meshset_ptr 
)

get cubit meshset

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface

Definition at line 350 of file DeprecatedCoreInterface.cpp.

352  {
353  return getInterface<MeshsetsManager>()->getCubitMeshsetPtr(
354  ms_id, cubit_bc_type, cubit_meshset_ptr);
355 }

◆ get_cubit_msId_entities_by_dimension() [1/4]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId_entities_by_dimension ( const int  ms_id,
const CubitBCType  cubit_bc_type,
const int  dimension,
Range &  entities,
const bool  recursive = false 
)

Definition at line 356 of file DeprecatedCoreInterface.cpp.

358  {
359  return getInterface<MeshsetsManager>()->getEntitiesByDimension(
360  msId, cubit_bc_type.to_ulong(), dimension, entities, recursive);
361 }

◆ get_cubit_msId_entities_by_dimension() [2/4]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId_entities_by_dimension ( const int  ms_id,
const CubitBCType  cubit_bc_type,
Range &  entities,
const bool  recursive = false 
)

Definition at line 362 of file DeprecatedCoreInterface.cpp.

364  {
365  return getInterface<MeshsetsManager>()->getEntitiesByDimension(
366  msId, cubit_bc_type.to_ulong(), entities, recursive);
367 }

◆ get_cubit_msId_entities_by_dimension() [3/4]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId_entities_by_dimension ( const int  msId,
const unsigned int  cubit_bc_type,
const int  dimension,
Range &  entities,
const bool  recursive = false 
)

get entities from CUBIT/meshset of a particular entity dimension

Nodeset can contain nodes, edges, triangles and tets. This applies to other meshsets too. The nodeset's meshset contain the nodes in the MIDDLE of the surface or volume which is done by default in Cubit, Hence if all nodes on a particular nodeset are required, one should get all triangles or tetrahedron for which the nodeset was create in Cubit, and get all the connectivities of tris/tets.

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
MeshsetsManager *meshset_manager_ptr;
ierr = m_field.getInterface(meshset_manager_ptr); CHKERRG(ierr);
meshset_manager_ptr->getEntitiesByDimension(ms_id,cubit_bc_type,dimension,entities,true);
Parameters
msIdid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
dimensions(0 - Nodes, 1 - Edges, 2 - Faces, 3 - Volume(tetrahedral))
Rangecontaining the retreived entities
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Definition at line 368 of file DeprecatedCoreInterface.cpp.

370  {
372  ierr = get_cubit_msId_entities_by_dimension(ms_id, CubitBCType(cubit_bc_type),
373  dimension, entities, recursive);
374  CHKERRG(ierr);
376 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:526
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490
std::bitset< 32 > CubitBCType
Definition: Common.hpp:200
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension(const int ms_id, const CubitBCType cubit_bc_type, const int dimension, Range &entities, const bool recursive=false)

◆ get_cubit_msId_entities_by_dimension() [4/4]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId_entities_by_dimension ( const int  msId,
const unsigned int  cubit_bc_type,
Range &  entities,
const bool  recursive = false 
)

get entities related to CUBIT/meshset,

NODESET will get Vertices only, even if the NODESET contains edges, tris and tets SIDESET will get Tris, BLOCKSET will get Tets, DISPLACEMENTSET and FORCESET are stored in NODESET, PRESSURESET is stored in Sideset.

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
msIdid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
Rangecontaining the retreived entities related to the
recursiveIf true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true.

Definition at line 377 of file DeprecatedCoreInterface.cpp.

379  {
381  ierr = get_cubit_msId_entities_by_dimension(ms_id, CubitBCType(cubit_bc_type),
382  entities, recursive);
383  CHKERRG(ierr);
385 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:526
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490
std::bitset< 32 > CubitBCType
Definition: Common.hpp:200
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
DEPRECATED MoFEMErrorCode get_cubit_msId_entities_by_dimension(const int ms_id, const CubitBCType cubit_bc_type, const int dimension, Range &entities, const bool recursive=false)

◆ get_cubit_msId_meshset()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::get_cubit_msId_meshset ( const int  msId,
const unsigned int  cubit_bc_type,
EntityHandle meshset 
)

get meshset from CUBIT Id and CUBIT type

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
msIdid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
meshsetwhere to store the retrieved entities

Definition at line 387 of file DeprecatedCoreInterface.cpp.

388  {
389  return getInterface<MeshsetsManager>()->getMeshset(ms_id, cubit_bc_type,
390  meshset);
391 }

◆ ISCreateFromProblemFieldToOtherProblemField() [1/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::ISCreateFromProblemFieldToOtherProblemField ( const std::string &  x_problem,
const std::string &  x_field_name,
RowColData  x_rc,
const std::string &  y_problem,
const std::string &  y_field_name,
RowColData  y_rc,
std::vector< int > &  idx,
std::vector< int > &  idy,
int  verb = -1 
) const

create IS for give two problems and field

Deprecated:
Use ISManager

Note that indices are ordered in ascending order of local indices in problem_y

Parameters
x_problemname of problem
x_field_namename of field in problem_x
x_rcthat is ROW or COL
y_problemname of problem
y_field_namename of field in problem_y
y_rcthat is ROW or COL
Return values
idxindexes in problem_x
idyindexes in problem_y

Definition at line 148 of file DeprecatedCoreInterface.cpp.

152  {
153  return getInterface<ISManager>()->isCreateFromProblemFieldToOtherProblemField(
154  x_problem, x_field_name, x_rc, y_problem, y_field_name, y_rc, idx, idy);
155 }

◆ ISCreateFromProblemFieldToOtherProblemField() [2/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::ISCreateFromProblemFieldToOtherProblemField ( const std::string &  x_problem,
const std::string &  x_field_name,
RowColData  x_rc,
const std::string &  y_problem,
const std::string &  y_field_name,
RowColData  y_rc,
IS *  ix,
IS *  iy,
int  verb = -1 
) const

create IS for give two problems and field

Deprecated:
Use ISManager

Indices are sorted by global PETSc index in problem_x.

Parameters
x_problemname of problem
x_field_namename of field in problem_x
x_rcthat is ROW or COL
y_problemname of problem
y_field_namename of field in problem_y
y_rcthat is ROW or COL
Return values
ixIS indexes in problem_x (can be PETSC_NULL)
iyIS indexes in problem_y

Definition at line 158 of file DeprecatedCoreInterface.cpp.

162  {
163  return getInterface<ISManager>()->isCreateFromProblemFieldToOtherProblemField(
164  x_problem, x_field_name, x_rc, y_problem, y_field_name, y_rc, ix, iy);
165 }

◆ ISCreateProblemOrder()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::ISCreateProblemOrder ( const std::string &  problem,
RowColData  rc,
int  min_order,
int  max_order,
IS *  is,
int  verb = -1 
) const

create IS for given order range (collective)

Deprecated:
Use ISManager
Parameters
problemname
rcROW or COL
min_order
max_order
Return values
isout value

Definition at line 135 of file DeprecatedCoreInterface.cpp.

137  {
138  return getInterface<ISManager>()->isCreateProblemOrder(problem, rc, min_order,
139  max_order, is);
140 }

◆ partition_compose_problem()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::partition_compose_problem ( const std::string &  name,
const std::string &  problem_for_rows,
const bool  copy_rows,
const std::string &  problem_for_cols,
const bool  copy_cols,
int  verb = -1 
)

build indexing and partition problem inheriting indexing and partitioning from two other problems

Deprecated:
Use ProblemsManager to build and partition problems
Parameters
nameproblem name
problem_for_rowsproblem used to index rows
copy_rowsjust copy rows dofs
problem_for_colsproblem used to index cols
copy_colsjust copy cols dofs

If copy_rows/copy_cols is set to false only partition is copied between problems.

Definition at line 431 of file DeprecatedCoreInterface.cpp.

434  {
435  return getInterface<ProblemsManager>()->inheritPartition(
436  name, problem_for_rows, copy_rows, problem_for_cols, copy_cols, verb);
437 }

◆ partition_finite_elements()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::partition_finite_elements ( const std::string &  name,
bool  part_from_moab = false,
int  low_proc = -1,
int  hi_proc = -1,
int  verb = -1 
)

partition finite elements

Function which partition finite elements based on dofs partitioning.
In addition it sets information about local row and cols dofs at given element on partition.

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

Definition at line 452 of file DeprecatedCoreInterface.cpp.

454  {
455  return getInterface<ProblemsManager>()->partitionFiniteElements(
456  name, part_from_moab, low_proc, hi_proc, verb);
458 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490

◆ partition_mesh()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::partition_mesh ( const Range &  ents,
const int  dim,
const int  adj_dim,
const int  n_parts,
int  verb = -1 
)

Set partition tag to each finite element in the problem.

This will use one of the mesh partitioning programs available from PETSc See http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatPartitioningType.html

Parameters
entsEntities to partition
dimDimension of entities to partition
adj_dimAdjacency dimension
n_partsNumber of partitions
verbVerbosity level
Returns
Error code

Definition at line 473 of file DeprecatedCoreInterface.cpp.

477  {
478  return getInterface<ProblemsManager>()->partitionMesh(
479  ents, dim, adj_dim, n_parts, NULL, NULL, NULL, verb);
480 }

◆ partition_problem()

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

partition problem dofs (collective)

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

Definition at line 448 of file DeprecatedCoreInterface.cpp.

448  {
449  return getInterface<ProblemsManager>()->partitionProblem(name, verb);
450 }

◆ partition_simple_problem()

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

partition problem dofs

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

Definition at line 426 of file DeprecatedCoreInterface.cpp.

427  {
428  return getInterface<ProblemsManager>()->partitionSimpleProblem(name, verb);
429 }

◆ print_cubit_displacement_set()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::print_cubit_displacement_set ( ) const
Deprecated:
use MeshsetsManager interface instead

Definition at line 299 of file DeprecatedCoreInterface.cpp.

299  {
300  return getInterface<MeshsetsManager>()->printDisplacementSet();
302 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490

◆ print_cubit_force_set()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::print_cubit_force_set ( ) const
Deprecated:
use MeshsetsManager interface instead

Definition at line 308 of file DeprecatedCoreInterface.cpp.

308  {
309  return getInterface<MeshsetsManager>()->printForceSet();
310 }

◆ print_cubit_materials_set()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::print_cubit_materials_set ( ) const
Deprecated:
use MeshsetsManager interface instead

Definition at line 312 of file DeprecatedCoreInterface.cpp.

312  {
313  return getInterface<MeshsetsManager>()->printMaterialsSet();
314 }

◆ print_cubit_pressure_set()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::print_cubit_pressure_set ( ) const
Deprecated:
use MeshsetsManager interface instead

Definition at line 304 of file DeprecatedCoreInterface.cpp.

304  {
305  return getInterface<MeshsetsManager>()->printPressureSet();
306 }

◆ query_interface() [1/2]

template<class IFace >
DEPRECATED MoFEMErrorCode MoFEM::DeprecatedCoreInterface::query_interface ( IFace *&  ptr) const
Examples:
cell_forces.cpp.

Definition at line 33 of file DeprecatedCoreInterface.hpp.

33  {
35  ierr = getInterface(ptr);
36  CHKERRG(ierr);
38  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
IFACE getInterface() const
Get interface pointer to pointer of interface.
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:526
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80

◆ query_interface() [2/2]

template<class IFace >
DEPRECATED IFace* MoFEM::DeprecatedCoreInterface::query_interface ( ) const

Definition at line 40 of file DeprecatedCoreInterface.hpp.

40  {
41  IFace *tmp_ptr;
42  ierr = getInterface(tmp_ptr);
43  CHKERRABORT(PETSC_COMM_SELF, ierr);
44  return tmp_ptr;
45  }
IFACE getInterface() const
Get interface pointer to pointer of interface.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80

◆ seed_finite_elements() [1/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_finite_elements ( const EntityHandle  meshset,
int  verb = -1 
)
Deprecated:
use BitRefManager and setElementsBitRefLevel Create finite elements based from entities in meshsets. Throw error if entity is not in database
Todo:
Should be outsourced to separate interface, i.e. BitLevelManager
Parameters
EntityHandlemeshset

Definition at line 50 of file DeprecatedCoreInterface.cpp.

51  {
52 
54  Range entities;
55  CHKERR get_moab().get_entities_by_handle(meshset, entities, true);
56  CHKERR getInterface<BitRefManager>()->setElementsBitRefLevel(entities,
57  BitRefLevel(), verb);
59 }
virtual moab::Interface & get_moab()=0
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:459
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Common.hpp:147
#define CHKERR
Inline error check.
Definition: definitions.h:578
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:403

◆ seed_finite_elements() [2/2]

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_finite_elements ( const Range &  entities,
int  verb = -1 
)
Deprecated:
use BitRefManager and setElementsBitRefLevel Create finite elements based from entities in meshsets. Throw error if entity is not in database
Todo:
Should be outsourced to separate interface, i.e. BitLevelManager
Parameters
Rangeentities

Definition at line 62 of file DeprecatedCoreInterface.cpp.

63  {
64  return getInterface<BitRefManager>()->setElementsBitRefLevel(entities,
65  BitRefLevel(), verb);
66 }
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Common.hpp:147

◆ seed_ref_level()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_ref_level ( const Range &  ents,
const BitRefLevel bit,
const bool  only_tets = true,
int  verb = -1 
)

seed entities in the range and their adjacencies in a particular BitRefLevel

Deprecated:
use BitRefManager
Todo:
Should be outsourced to separate interface, i.e. BitLevelManager
Examples:
cell_forces.cpp.

Definition at line 35 of file DeprecatedCoreInterface.cpp.

38  {
39  return getInterface<BitRefManager>()->setBitRefLevel(ents, bit, only_tets,
40  verb);
41 }

◆ seed_ref_level_2D()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_ref_level_2D ( const EntityHandle  meshset,
const BitRefLevel bit,
int  verb = -1 
)
virtual

seed 2D entities (Triangles entities only) in the meshset and their adjacencies (only TRIs adjacencies) in a particular BitRefLevel

Deprecated:
use BitRefManager
Todo:
Should be outsourced to separate interface, i.e. BitLevelManager
Parameters
EntityHandleMeshSet
BitRefLevelbitLevel

Definition at line 22 of file DeprecatedCoreInterface.cpp.

23  {
24  return getInterface<BitRefManager>()->setBitRefLevelByDim(meshset, 2, bit,
25  verb);
26 }

◆ seed_ref_level_3D()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_ref_level_3D ( const EntityHandle  meshset,
const BitRefLevel bit,
int  verb = -1 
)

seed 2D entities in the meshset and their adjacencies (only TETs adjacencies) in a particular BitRefLevel

Deprecated:
use BitRefManager
Todo:
Should be outsourced to separate interface, i.e. BitLevelManager
Parameters
EntityHandleMeshSet
BitRefLevelbitLevel

Example:

EntityHandle meshset1; //contains ent1,ent2,ent3
BitRefLevel myLevel0;
myLevel0.set(0);
seed_ref_level_3D(meshset1,myLevel0);
//refine meshset1 into meshset2 and get new ents which are ent4, ent5
EntityHandle meshset2; //contains ent1,ent2,ent3,ent4,ent5
BitRefLevel myLevel1;
myLevel1.set(1);
seed_ref_level_3D(meshset2,myLevel1);

So entities 1,2,3 would be assigned to bit level 0 and 1
ent1[1,1,0,0,0,0,0], ent2[1,1,0,0,0,0,0], ent3[1,1,0,0,0,0,0],
and entities 4 and 5 are assigned to bit level 1 only
ent4[0,1,0,0,0,0,0], ent5[0,1,0,0,0,0,0]

Definition at line 29 of file DeprecatedCoreInterface.cpp.

30  {
31  return getInterface<BitRefManager>()->setBitRefLevelByDim(meshset, 3, bit,
32  verb);
33 }

◆ seed_ref_level_MESHSET()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::seed_ref_level_MESHSET ( const EntityHandle  meshset,
const BitRefLevel bit,
int  verb = -1 
)
Deprecated:
use BitRefManager brief seed ref level by MESHSET that contains entities other than volumes
Parameters
EntityHandleMeshSet
BitRefLevelbitLevel

Definition at line 43 of file DeprecatedCoreInterface.cpp.

44  {
45  return getInterface<BitRefManager>()->setBitLevelToMeshset(meshset, bit,
46  verb);
47 }

◆ set_cubit_msId_attribites()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::set_cubit_msId_attribites ( const CubitBCType  cubit_bc_type,
const int  ms_id,
const std::vector< double > &  attributes,
const std::string  name = "" 
)

set attributes to cubit meshset

Deprecated:
use MeshsetsManager
Parameters
cubit_bc_typetype of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET
ms_idid of meshset
attributesattributes
Returns
error code

Definition at line 327 of file DeprecatedCoreInterface.cpp.

329  {
330  return getInterface<MeshsetsManager>()->setAtributes(cubit_bc_type, ms_id,
331  attributes, name);
332 }

◆ set_cubit_msId_attribites_data_structure()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::set_cubit_msId_attribites_data_structure ( const CubitBCType  cubit_bc_type,
const int  ms_id,
const GenericAttributeData data,
const std::string  name = "" 
)

set (material) data structure to cubit meshset

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
cubit_bc_typetype of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET
ms_idid of meshset
attributesattributes
Returns
error code

Definition at line 334 of file DeprecatedCoreInterface.cpp.

336  {
337  return getInterface<MeshsetsManager>()->setAtributesByDataStructure(
338  cubit_bc_type, ms_id, data, name);
339 }

◆ set_cubit_msId_bc_data_structure()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::set_cubit_msId_bc_data_structure ( const CubitBCType  cubit_bc_type,
const int  ms_id,
const GenericCubitBcData data 
)

set boundary data structure to meshset

Deprecated:
use MeshsetsManager
Todo:
All cubit interface functions should be outsourced to dedicated interface
Parameters
cubit_bc_typetype of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET
ms_idid of meshset
datadata structure
Returns
error code

Definition at line 340 of file DeprecatedCoreInterface.cpp.

342  {
343  return getInterface<MeshsetsManager>()->setBcData(cubit_bc_type, ms_id, data);
344 }

◆ shift_right_bit_ref()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::shift_right_bit_ref ( const int  shift,
int  verb = -1 
)

right shift bit ref level

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

Definition at line 235 of file DeprecatedCoreInterface.cpp.

236  {
237  return getInterface<BitRefManager>()->shiftRightBitRef(
238  shift, BitRefLevel().set(), verb);
239 }
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Common.hpp:147

◆ update_finite_element_meshset_by_entities_children()

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

update finite element mesheset by child entities

Deprecated:
do not us this use BitRefManager interface

Definition at line 291 of file DeprecatedCoreInterface.cpp.

293  {
294  return getInterface<BitRefManager>()
295  ->updateFiniteElementMeshsetByEntitiesChildren(name, child_bit,
296  fe_ent_type, verb);
297 }

◆ update_meshset_by_entities_children()

MoFEMErrorCode MoFEM::DeprecatedCoreInterface::update_meshset_by_entities_children ( const EntityHandle  parent,
const BitRefLevel child_bit,
const EntityHandle  child,
EntityType  child_type,
const bool  recursive = false,
int  verb = -1 
)

Get child entities form meshset containing parent entities.

Deprecated:
do not us this use BitRefManager interface

Search for refined entities of given type whose parent are entities in the parent meshset. It can be used for example to transfer information about boundary conditions to refined mesh or split mesh by interface elements. It is used by function refine_MESHSET, to update MESHSET finite elements.

Parameters
parentmeshset
child_bitrefinement level
typeof refined entity
child_typemeshset where child entities are stored (if the child meshset is set to be the parent meshset, the parent would be updated with the refined entities)
recursiveif true parent meshset is searched recursively

Definition at line 268 of file DeprecatedCoreInterface.cpp.

271  {
272  return getInterface<BitRefManager>()->updateMeshsetByEntitiesChildren(
273  parent, child_bit, child, child_type, recursive, verb);
274 }

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