v0.16.3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MoFEM::GenericAttributeData Struct Referenceabstract

Generic attribute data structure. More...

#include "src/multi_indices/MaterialBlocks.hpp"

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

Public Member Functions

virtual MoFEMErrorCode fill_data (const std::vector< double > &attributes)
 get data from structure
 
virtual MoFEMErrorCode set_data (void *tag_ptr, unsigned int size) const
 set data on structure
 
virtual const CubitBCType & getType () const
 get data type
 
virtual unsigned int getMinMumberOfAtributes () const
 get minimal number of attributes which blockset has to have
 
virtual std::size_t getSizeOfData () const =0
 get data structure size
 
virtual const void * getDataPtr () const =0
 get pointer to data structure
 
 GenericAttributeData (const CubitBCType type, const unsigned int min_number_of_atributes)
 

Public Attributes

const CubitBCType tYpe
 Type of data (f.e. MAT_ELATIC)
 
unsigned int minNumberOfAtributes
 minimal number of attributes
 

Detailed Description

Generic attribute data structure.

Definition at line 17 of file MaterialBlocks.hpp.

Constructor & Destructor Documentation

◆ GenericAttributeData()

MoFEM::GenericAttributeData::GenericAttributeData ( const CubitBCType  type,
const unsigned int  min_number_of_atributes 
)
inline

Definition at line 74 of file MaterialBlocks.hpp.

76 : tYpe(type), minNumberOfAtributes(min_number_of_atributes) {}
std::string type
const CubitBCType tYpe
Type of data (f.e. MAT_ELATIC)
unsigned int minNumberOfAtributes
minimal number of attributes

Member Function Documentation

◆ fill_data()

virtual MoFEMErrorCode MoFEM::GenericAttributeData::fill_data ( const std::vector< double > &  attributes)
inlinevirtual

get data from structure

Parameters
attributesvector of doubles
Returns
error code

Reimplemented in MoFEM::BlockSetAttributes, MoFEM::Mat_Elastic, MoFEM::Mat_Thermal, MoFEM::Mat_Moisture, MoFEM::Block_BodyForces, MoFEM::Mat_Elastic_TransIso, MoFEM::Mat_Interf, and MoFEM::Mat_Elastic_EberleinHolzapfel1.

Definition at line 24 of file MaterialBlocks.hpp.

24 {
26 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
27 "It makes no sense for the generic attribute type");
29 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...

◆ getDataPtr()

virtual const void * MoFEM::GenericAttributeData::getDataPtr ( ) const
pure virtual

◆ getMinMumberOfAtributes()

virtual unsigned int MoFEM::GenericAttributeData::getMinMumberOfAtributes ( ) const
inlinevirtual

get minimal number of attributes which blockset has to have

Returns
number of minimal data attributes

Definition at line 58 of file MaterialBlocks.hpp.

58 {
60 }

◆ getSizeOfData()

virtual std::size_t MoFEM::GenericAttributeData::getSizeOfData ( ) const
pure virtual

◆ getType()

virtual const CubitBCType & MoFEM::GenericAttributeData::getType ( ) const
inlinevirtual

get data type

Returns
data type, see CubitBC

Definition at line 50 of file MaterialBlocks.hpp.

50{ return tYpe; }

◆ set_data()

virtual MoFEMErrorCode MoFEM::GenericAttributeData::set_data ( void *  tag_ptr,
unsigned int  size 
) const
inlinevirtual

set data on structure

Parameters
tag_ptrpointer to tag on meshset
sizesize of data in bytes
Returns
error code

Reimplemented in MoFEM::BlockSetAttributes, MoFEM::Mat_Elastic, MoFEM::Mat_Thermal, MoFEM::Block_BodyForces, MoFEM::Mat_Elastic_TransIso, and MoFEM::Mat_Interf.

Definition at line 37 of file MaterialBlocks.hpp.

37 {
39 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
40 "It makes no sense for the generic attribute type");
42 }

Member Data Documentation

◆ minNumberOfAtributes

unsigned int MoFEM::GenericAttributeData::minNumberOfAtributes

minimal number of attributes

Definition at line 52 of file MaterialBlocks.hpp.

◆ tYpe

const CubitBCType MoFEM::GenericAttributeData::tYpe

Type of data (f.e. MAT_ELATIC)

Definition at line 44 of file MaterialBlocks.hpp.


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