v0.9.0
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 494 of file MaterialBlocks.hpp.

Constructor & Destructor Documentation

◆ Mat_Elastic_EberleinHolzapfel1()

MoFEM::Mat_Elastic_EberleinHolzapfel1::Mat_Elastic_EberleinHolzapfel1 ( )

Definition at line 516 of file MaterialBlocks.hpp.

517  bzero(&data, sizeof(data));
518  }
GenericAttributeData(const CubitBCType type, const unsigned int min_number_of_atributes)
block name is "MAT_ELASTIC"
Definition: definitions.h:222

Member Function Documentation

◆ __attribute__()

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

Hotzapler soft tissue.

Definition at line 499 of file MaterialBlocks.hpp.

499  {
500  double Young; ///< Young's modulus
501  double Poisson; ///< Poisson's ratio
502  double k1; // User attribute 1
503  double k2; // User attribute 2
504  double a0x; // User attribute 3
505  double a0y; // User attribute 4
506  double a0z; // User attribute 5
507  double a1x; // User attribute 6
508  double a1y; // User attribute 7
509  double a1z; // User attribute 8
510  };

◆ 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 520 of file MaterialBlocks.hpp.

520  {
522  if (attributes.size() < minNumberOfAtributes) {
523  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
524  "All material data not defined");
525  }
526  if (8 * attributes.size() > sizeof(data)) {
527  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
528  "data inconsistency, please review the number of material "
529  "properties defined");
530  }
531  bzero(&data, sizeof(data));
532  memcpy(&data, &attributes[0], 8 * attributes.size());
534  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508
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 514 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 513 of file MaterialBlocks.hpp.

513 { 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 612 of file BCMultiIndices.cpp.

613  {
614  os << std::endl << "Material Properties" << std::endl;
615  os << "-------------------" << std::endl;
616  os << "Young's modulus = " << e.data.Young << std::endl;
617  os << "Poisson's ratio = " << e.data.Poisson << std::endl;
618  os << "k1 = " << e.data.k1 << std::endl;
619  os << "k2 = " << e.data.k2 << std::endl;
620  os << "a0_x = " << e.data.a0x << std::endl;
621  os << "a0_y = " << e.data.a0y << std::endl;
622  os << "a0_z = " << e.data.a0z << std::endl;
623  os << "a1_x = " << e.data.a1x << std::endl;
624  os << "a1_y = " << e.data.a1y << std::endl;
625  os << "a1_Z = " << e.data.a1z << std::endl << std::endl;
626  return os;
627 }

Member Data Documentation

◆ data

_data_ MoFEM::Mat_Elastic_EberleinHolzapfel1::data

Definition at line 510 of file MaterialBlocks.hpp.


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