![]() |
v0.13.2 |
Struct keeps handle to entity in the field. More...
#include <src/multi_indices/FieldEntsMultiIndices.hpp>
Public Types | |
using | interface_type_Field = interface_Field< Field, RefEntity > |
using | interface_type_RefEntity = interface_RefEntity< RefEntity > |
![]() | |
using | interface_type_RefEntity = interface_RefEntity< REFENT > |
Public Member Functions | |
FieldEntity (const boost::shared_ptr< Field > field_ptr, const boost::shared_ptr< RefEntity > ref_ents_ptr, boost::shared_ptr< double *const > field_data_adaptor_ptr, boost::shared_ptr< const int > t_max_order_ptr) | |
virtual | ~FieldEntity ()=default |
int | getNbDofsOnEnt () const |
Get number of active DOFs on entity. More... | |
boost::shared_ptr< FieldData *const > & | getEntFieldDataPtr () const |
Get shared ptr to vector adaptor pointing to the field tag data on entity. More... | |
VectorAdaptor | getEntFieldData () const |
Get vector of DOFs active values on entity. More... | |
int | getOrderNbDofs (ApproximationOrder order) const |
Get number of DOFs on entity for given order of approximation. More... | |
int | getOrderNbDofsDiff (ApproximationOrder order) const |
Get difference of number of DOFs between order and order-1. More... | |
const ApproximationOrder * | getMaxOrderPtr () const |
Get pinter to Tag keeping approximation order. More... | |
ApproximationOrder | getMaxOrder () const |
Get order set to the entity (Allocated tag size for such number) More... | |
UId | getLocalUniqueIdCalculate () |
Get the Local Unique Id Calculate object. More... | |
UId | getGlobalUniqueId () const |
Get global unique id. More... | |
const UId & | getLocalUniqueId () const |
Get global unique id. More... | |
UId | getGlobalUniqueIdCalculate () const |
Calculate global UId. More... | |
template<typename T > | |
void | getLoFieldEntityUId (T &uid)=delete |
template<typename T > | |
void | getHiFieldEntityUId (T &uid)=delete |
const std::array< int, MAX_DOFS_ON_ENTITY > & | getDofOrderMap () const |
get hash-map relating dof index on entity with its order More... | |
template<typename T = EntityStorage> | |
boost::shared_ptr< T > | getSharedStoragePtr () const |
Get the Weak Storage pointer. More... | |
boost::weak_ptr< EntityStorage > & | getWeakStoragePtr () const |
template<> | |
boost::shared_ptr< EntityStorage > | getSharedStoragePtr () const |
![]() | |
interface_Field (const boost::shared_ptr< Field > &field_ptr, const boost::shared_ptr< RefEntity > &ref_ents_ptr) | |
EntityHandle | getMeshset () const |
int | getCoordSysDim (const int d=0) const |
const BitFieldId & | getId () const |
boost::string_ref | getNameRef () const |
std::string | getName () const |
FieldSpace | getSpace () const |
FieldApproximationBase | getApproxBase () const |
FieldCoefficientsNumber | getNbOfCoeffs () const |
FieldBitNumber | getBitNumber () const |
std::array< ApproximationOrder, MAX_DOFS_ON_ENTITY > & | getDofOrderMap (const EntityType type) const |
get hash-map relating dof index on entity with its order More... | |
const Field * | getFieldRawPtr () const |
FieldOrderTable & | getFieldOrderTable () |
![]() | |
interface_FieldImpl (const boost::shared_ptr< FIELD > &field_ptr, const boost::shared_ptr< REFENT > &ref_ents_ptr) | |
virtual | ~interface_FieldImpl ()=default |
![]() | |
interface_RefEntity (const boost::shared_ptr< REFENT > &sptr) | |
interface_RefEntity (const interface_RefEntity< REFENT > &interface) | |
virtual | ~interface_RefEntity ()=default |
int | getSideNumber () const |
boost::shared_ptr< SideNumber > | getSideNumberPtr () const |
const boost::shared_ptr< BasicEntityData > | getBasicDataPtr () const |
EntityHandle | getEnt () const |
EntityType | getParentEntType () const |
EntityHandle | getParentEnt () const |
BitRefLevel * | getBitRefLevelPtr () const |
const BitRefLevel & | getBitRefLevel () const |
unsigned long int | getBitRefLevelULong () const |
EntityType | getEntType () const |
int | getEntDimension () const |
const char * | getEntTypeName () const |
EntityID | getEntId () const |
EntityHandle | getOwnerEnt () const |
EntityHandle & | getOwnerEnt () |
int | getOwnerProc () const |
int | getPartProc () const |
int * | getPartProcPtr () const |
unsigned char | getPStatus () const |
int * | getSharingProcsPtr () const |
EntityHandle * | getSharingHandlersPtr () const |
boost::shared_ptr< REFENT > & | getRefEntityPtr () const |
Static Public Member Functions | |
static boost::shared_ptr< FieldData *const > | makeSharedFieldDataAdaptorPtr (const boost::shared_ptr< Field > &field_ptr, const boost::shared_ptr< RefEntity > &ref_ents_ptr) |
Return shared pointer to entity field data vector adaptor. More... | |
static UId | getLocalUniqueIdCalculate (const char bit_number, const EntityHandle handle) |
Get the Local Unique Id Calculate. More... | |
static UId | getGlobalUniqueIdCalculate (const int owner_proc, const char bit_number, const EntityHandle moab_owner_handle) |
Calculate UId for field entity. More... | |
static auto | getOwnerFromUniqueId (const UId uid) |
static auto | getHandleFromUniqueId (const UId uid) |
static auto | getFieldBitNumberFromUniqueId (const UId uid) |
static UId | getLoBitNumberUId (const FieldBitNumber bit_number) |
static UId | getHiBitNumberUId (const FieldBitNumber bit_number) |
static UId | getLoFieldEntityUId (const UId &uid) |
static UId | getHiFieldEntityUId (const UId &uid) |
static UId | getLoLocalEntityBitNumber (const char bit_number, const EntityHandle ent) |
static UId | getHiLocalEntityBitNumber (const char bit_number, const EntityHandle ent) |
Public Attributes | |
UId | localUId |
Global unique id for this entity. More... | |
boost::weak_ptr< EntityCacheDofs > | entityCacheDataDofs |
boost::weak_ptr< EntityCacheNumeredDofs > | entityCacheRowDofs |
boost::weak_ptr< EntityCacheNumeredDofs > | entityCacheColDofs |
boost::weak_ptr< EntityStorage > | weakStoragePtr |
![]() | |
boost::shared_ptr< REFENT > | sPtr |
Private Attributes | |
boost::shared_ptr< const ApproximationOrder > | tagMaxOrderPtr |
boost::shared_ptr< FieldData *const > | fieldDataAdaptorPtr |
Static Private Attributes | |
static constexpr int | dof_shift = 9 |
static constexpr int | ent_shift = 64 |
static constexpr int | proc_shift = 10 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const FieldEntity &e) |
Struct keeps handle to entity in the field.
Definition at line 24 of file FieldEntsMultiIndices.hpp.
Definition at line 26 of file FieldEntsMultiIndices.hpp.
Definition at line 27 of file FieldEntsMultiIndices.hpp.
MoFEM::FieldEntity::FieldEntity | ( | const boost::shared_ptr< Field > | field_ptr, |
const boost::shared_ptr< RefEntity > | ref_ents_ptr, | ||
boost::shared_ptr< double *const > | field_data_adaptor_ptr, | ||
boost::shared_ptr< const int > | t_max_order_ptr | ||
) |
Definition at line 15 of file FieldEntsMultiIndices.cpp.
|
virtualdefault |
|
inline |
get hash-map relating dof index on entity with its order
DOFs of given field are indexed on entity of the same type, same space, approximation base and number of coefficients, are sorted in the way.
Definition at line 252 of file FieldEntsMultiIndices.hpp.
|
inline |
Get vector of DOFs active values on entity.
Definition at line 69 of file FieldEntsMultiIndices.hpp.
|
inline |
Get shared ptr to vector adaptor pointing to the field tag data on entity.
Definition at line 61 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 185 of file FieldEntsMultiIndices.hpp.
|
inline |
|
inline |
Calculate global UId.
Definition at line 196 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Calculate UId for field entity.
UId is constructed such that all DOFs are ordered by processor, entity, field.
UId is 128 bit
owner_proc | owning processor |
bit_number | field bit number |
moab_owner_handle | entity handle on owning processor meshes |
Definition at line 159 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 178 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 208 of file FieldEntsMultiIndices.hpp.
Definition at line 220 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 238 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 202 of file FieldEntsMultiIndices.hpp.
|
inline |
|
inline |
Get the Local Unique Id Calculate object.
Definition at line 128 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Get the Local Unique Id Calculate.
bit_number | |
handle |
Definition at line 114 of file FieldEntsMultiIndices.hpp.
Definition at line 216 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 227 of file FieldEntsMultiIndices.hpp.
|
inline |
Get order set to the entity (Allocated tag size for such number)
Definition at line 103 of file FieldEntsMultiIndices.hpp.
|
inline |
Get pinter to Tag keeping approximation order.
Definition at line 95 of file FieldEntsMultiIndices.hpp.
|
inline |
Get number of active DOFs on entity.
Definition at line 42 of file FieldEntsMultiIndices.hpp.
|
inline |
Get number of DOFs on entity for given order of approximation.
order | Order of approximation |
Definition at line 78 of file FieldEntsMultiIndices.hpp.
|
inline |
Get difference of number of DOFs between order and order-1.
order | Approximation order |
Definition at line 87 of file FieldEntsMultiIndices.hpp.
|
inlinestatic |
Definition at line 169 of file FieldEntsMultiIndices.hpp.
|
inline |
Definition at line 1 of file FieldEntsMultiIndices.hpp.
|
inline |
Get the Weak Storage pointer.
Definition at line 268 of file FieldEntsMultiIndices.hpp.
|
inline |
Definition at line 272 of file FieldEntsMultiIndices.hpp.
|
static |
Return shared pointer to entity field data vector adaptor.
Definition at line 35 of file FieldEntsMultiIndices.cpp.
|
friend |
Definition at line 54 of file FieldEntsMultiIndices.cpp.
|
staticconstexprprivate |
Definition at line 281 of file FieldEntsMultiIndices.hpp.
|
staticconstexprprivate |
Definition at line 282 of file FieldEntsMultiIndices.hpp.
|
mutable |
Definition at line 260 of file FieldEntsMultiIndices.hpp.
|
mutable |
Definition at line 258 of file FieldEntsMultiIndices.hpp.
|
mutable |
Definition at line 259 of file FieldEntsMultiIndices.hpp.
|
mutableprivate |
Definition at line 280 of file FieldEntsMultiIndices.hpp.
UId MoFEM::FieldEntity::localUId |
Global unique id for this entity.
Definition at line 29 of file FieldEntsMultiIndices.hpp.
|
staticconstexprprivate |
Definition at line 283 of file FieldEntsMultiIndices.hpp.
|
mutableprivate |
Definition at line 279 of file FieldEntsMultiIndices.hpp.
|
mutable |
Definition at line 276 of file FieldEntsMultiIndices.hpp.