24#ifndef MATERIAL_PROPERTIES_HH
25#define MATERIAL_PROPERTIES_HH
33template <
typename T,
unsigned N>
35 const T youngsModulus,
const T poissonRatio)
37 materialProperties[material][0] = youngsModulus;
38 materialProperties[material][1] = poissonRatio;
41template <
typename T,
unsigned N>
45 return materialProperties[material][0];
48template <
typename T,
unsigned N>
52 return materialProperties[material][1];
Top level namespace for all of OpenLB.
void set(const unsigned material, const T youngsModulus, const T poissonRatio)
Set material properties.
const T getPoissonsRatio(const unsigned material) const
Get Poisson's ratio.
const T getYoungsModulus(const unsigned material) const
Get modulus of elasticity.