v0.8.13
Public Member Functions | Public Attributes | Friends | List of all members
MoFEM::Mat_Elastic_EberleinHolzapfel1 Struct Reference

Mat_Elastic with Fibres. More...

#include <src/multi_indices/MaterialBlocks.hpp>

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

Public Member Functions

struct __attribute__ ((packed)) _data_
 Hotzapler soft tissue. More...
 
std::size_t getSizeOfData () const
 get data structure size More...
 
const void * getDataPtr () const
 get pointer to data structure More...
 
 Mat_Elastic_EberleinHolzapfel1 ()
 
MoFEMErrorCode fill_data (const std::vector< double > &attributes)
 get data from structure More...
 
- Public Member Functions inherited from MoFEM::GenericAttributeData
virtual MoFEMErrorCode set_data (void *tag_ptr, unsigned int size) const
 set data on structure More...
 
virtual const CubitBCTypegetType () const
 get data type More...
 
virtual unsigned int getMinMumberOfAtributes () const
 get minimal number of attributes which blockset has to have More...
 
 GenericAttributeData (const CubitBCType type, const unsigned int min_number_of_atributes)
 

Public Attributes

_data_ data
 
- Public Attributes inherited from MoFEM::GenericAttributeData
const CubitBCType tYpe
 Type of data (f.e. MAT_ELATIC) More...
 
unsigned int minNumberOfAtributes
 minimal number of attributes More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Mat_Elastic_EberleinHolzapfel1 &e)
 Print Mat_Elastic data. More...
 

Detailed Description

Mat_Elastic with Fibres.

Elastic material data structure

Definition at line 501 of file MaterialBlocks.hpp.

Constructor & Destructor Documentation

◆ Mat_Elastic_EberleinHolzapfel1()

MoFEM::Mat_Elastic_EberleinHolzapfel1::Mat_Elastic_EberleinHolzapfel1 ( )

Definition at line 523 of file MaterialBlocks.hpp.

523  :
525  bzero(&data,sizeof(data));
526  }
GenericAttributeData(const CubitBCType type, const unsigned int min_number_of_atributes)
block name is "MAT_ELASTIC"
Definition: definitions.h:230

Member Function Documentation

◆ __attribute__()

struct MoFEM::Mat_Elastic_EberleinHolzapfel1::__attribute__ ( (packed)  )

Hotzapler soft tissue.

Definition at line 506 of file MaterialBlocks.hpp.

506  {
507  double Young; ///< Young's modulus
508  double Poisson; ///< Poisson's ratio
509  double k1; // User attribute 1
510  double k2; // User attribute 2
511  double a0x; // User attribute 3
512  double a0y; // User attribute 4
513  double a0z; // User attribute 5
514  double a1x; // User attribute 6
515  double a1y; // User attribute 7
516  double a1z; // User attribute 8
517  };

◆ fill_data()

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

get data from structure

Parameters
attributesvector of doubles
Returns
error code

Reimplemented from MoFEM::GenericAttributeData.

Definition at line 528 of file MaterialBlocks.hpp.

528  {
530  if(attributes.size()<minNumberOfAtributes) {
531  SETERRQ(PETSC_COMM_SELF,MOFEM_DATA_INCONSISTENCY,"All material data not defined");
532  }
533  if(8*attributes.size()>sizeof(data)) {
534  SETERRQ(PETSC_COMM_SELF,MOFEM_DATA_INCONSISTENCY,"data inconsistency, please review the number of material properties defined");
535  }
536  bzero(&data,sizeof(data));
537  memcpy(&data, &attributes[0],8*attributes.size());
539  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:519
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:526
unsigned int minNumberOfAtributes
minimal number of attributes

◆ getDataPtr()

const void* MoFEM::Mat_Elastic_EberleinHolzapfel1::getDataPtr ( ) const
virtual

get pointer to data structure

Returns
pointer

Implements MoFEM::GenericAttributeData.

Definition at line 521 of file MaterialBlocks.hpp.

◆ getSizeOfData()

std::size_t MoFEM::Mat_Elastic_EberleinHolzapfel1::getSizeOfData ( ) const
virtual

get data structure size

Returns
size of structure in bytes

Implements MoFEM::GenericAttributeData.

Definition at line 520 of file MaterialBlocks.hpp.

520 { return sizeof(data); }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Mat_Elastic_EberleinHolzapfel1 e 
)
friend

Print Mat_Elastic data.

Definition at line 586 of file BCMultiIndices.cpp.

587  {
588  os << std::endl << "Material Properties" << std::endl;
589  os << "-------------------" << std::endl;
590  os << "Young's modulus = " << e.data.Young << std::endl;
591  os << "Poisson's ratio = " << e.data.Poisson << std::endl;
592  os << "k1 = " << e.data.k1 << std::endl;
593  os << "k2 = " << e.data.k2 << std::endl;
594  os << "a0_x = " << e.data.a0x << std::endl;
595  os << "a0_y = " << e.data.a0y << std::endl;
596  os << "a0_z = " << e.data.a0z << std::endl;
597  os << "a1_x = " << e.data.a1x << std::endl;
598  os << "a1_y = " << e.data.a1y << std::endl;
599  os << "a1_Z = " << e.data.a1z << std::endl << std::endl;
600  return os;
601  }

Member Data Documentation

◆ data

_data_ MoFEM::Mat_Elastic_EberleinHolzapfel1::data

Definition at line 517 of file MaterialBlocks.hpp.


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