OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::particles::contact::MaterialProperties< T, N > Struct Template Reference

Class storing properties that are necessary for the computation of the contact orce N = number of different materials [0]: modulus of elasticity [1]: Poisson's ratio. More...

#include <materialProperties.h>

+ Collaboration diagram for olb::particles::contact::MaterialProperties< T, N >:

Public Member Functions

 MaterialProperties ()=default
 Constructor.
 
void set (const unsigned material, const T youngsModulus, const T poissonRatio)
 Set material properties.
 
const T getYoungsModulus (const unsigned material) const
 Get modulus of elasticity.
 
const T getPoissonsRatio (const unsigned material) const
 Get Poisson's ratio.
 

Detailed Description

template<typename T, unsigned N>
struct olb::particles::contact::MaterialProperties< T, N >

Class storing properties that are necessary for the computation of the contact orce N = number of different materials [0]: modulus of elasticity [1]: Poisson's ratio.

Definition at line 38 of file materialProperties.h.

Constructor & Destructor Documentation

◆ MaterialProperties()

template<typename T , unsigned N>
olb::particles::contact::MaterialProperties< T, N >::MaterialProperties ( )
default

Constructor.

Member Function Documentation

◆ getPoissonsRatio()

template<typename T , unsigned N>
const T olb::particles::contact::MaterialProperties< T, N >::getPoissonsRatio ( const unsigned material) const

Get Poisson's ratio.

Definition at line 50 of file materialProperties.hh.

51{
52 return materialProperties[material][1];
53}

◆ getYoungsModulus()

template<typename T , unsigned N>
const T olb::particles::contact::MaterialProperties< T, N >::getYoungsModulus ( const unsigned material) const

Get modulus of elasticity.

Definition at line 43 of file materialProperties.hh.

44{
45 return materialProperties[material][0];
46}

◆ set()

template<typename T , unsigned N>
void olb::particles::contact::MaterialProperties< T, N >::set ( const unsigned material,
const T youngsModulus,
const T poissonRatio )

Set material properties.

Definition at line 34 of file materialProperties.hh.

36{
37 materialProperties[material][0] = youngsModulus;
38 materialProperties[material][1] = poissonRatio;
39}

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