v0.6.9
Public Member Functions | Public Attributes | List of all members
MoFEM::GenericCubitBcData Struct Referenceabstract

Generic bc data structure. More...

#include <src/multi_indices/BCData.hpp>

Inheritance diagram for MoFEM::GenericCubitBcData:
[legend]

Public Member Functions

virtual MoFEMErrorCode fill_data (const std::vector< char > &bc_data)
 get data from structure More...
 
virtual MoFEMErrorCode set_data (void *tag_ptr, unsigned int size) const
 set data on structure More...
 
virtual std::size_t getSizeOfData () const =0
 get data structure size More...
 
virtual const void * getDataPtr () const =0
 get pointer to data structure More...
 
virtual const CubitBCTypegetType () const
 get data type More...
 
 GenericCubitBcData (const CubitBCType type)
 
virtual ~GenericCubitBcData ()
 

Public Attributes

const CubitBCType tYpe
 Type of boundary condition. More...
 

Detailed Description

Generic bc data structure.

Definition at line 30 of file BCData.hpp.

Constructor & Destructor Documentation

◆ GenericCubitBcData()

MoFEM::GenericCubitBcData::GenericCubitBcData ( const CubitBCType  type)

Definition at line 76 of file BCData.hpp.

76  :
77  tYpe(type) {}
const CubitBCType tYpe
Type of boundary condition.
Definition: BCData.hpp:68

◆ ~GenericCubitBcData()

virtual MoFEM::GenericCubitBcData::~GenericCubitBcData ( )
virtual

Definition at line 79 of file BCData.hpp.

79 {}

Member Function Documentation

◆ fill_data()

virtual MoFEMErrorCode MoFEM::GenericCubitBcData::fill_data ( const std::vector< char > &  bc_data)
virtual

get data from structure

Parameters
attributesvector of doubles
Returns
error code

Reimplemented in MoFEM::CfgCubitBcData, MoFEM::HeatFluxCubitBcData, MoFEM::PressureCubitBcData, MoFEM::TemperatureCubitBcData, MoFEM::AccelerationCubitBcData, MoFEM::VelocityCubitBcData, MoFEM::ForceCubitBcData, and MoFEM::DisplacementCubitBcData.

Definition at line 38 of file BCData.hpp.

38  {
40  SETERRQ(PETSC_COMM_SELF,1,"It makes no sense for the generic bc type");
42  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:468
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:474

◆ getDataPtr()

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

◆ getSizeOfData()

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

◆ getType()

virtual const CubitBCType& MoFEM::GenericCubitBcData::getType ( ) const
virtual

get data type

Returns
data type, see CubitBC

Definition at line 74 of file BCData.hpp.

74 { return tYpe; }
const CubitBCType tYpe
Type of boundary condition.
Definition: BCData.hpp:68

◆ set_data()

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

set data on structure

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

Reimplemented in MoFEM::CfgCubitBcData, MoFEM::HeatFluxCubitBcData, MoFEM::PressureCubitBcData, MoFEM::TemperatureCubitBcData, MoFEM::AccelerationCubitBcData, MoFEM::VelocityCubitBcData, MoFEM::ForceCubitBcData, and MoFEM::DisplacementCubitBcData.

Definition at line 50 of file BCData.hpp.

50  {
52  SETERRQ(PETSC_COMM_SELF,1,"It makes no sense for the generic bc type");
54  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:468
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:474

Member Data Documentation

◆ tYpe

const CubitBCType MoFEM::GenericCubitBcData::tYpe

Type of boundary condition.

Definition at line 68 of file BCData.hpp.


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