MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
MaterialState< nDim > Class Template Reference

#include <materialstate.h>

Collaboration diagram for MaterialState< nDim >:
[legend]

Public Member Functions

 MaterialState (const MInt solverId_)
 
MFloat checkWithTemperatureRange (const MFloat temperature_)
 
MFloat thermalConductivity (const MFloat temperature_)
 
MFloat liquidThermalConductivity (const MFloat temperature_)
 
MFloat diffusionCoefficient (const MFloat temperature_)
 
MFloat latentHeatEvap (const MFloat temperature_)
 
MFloat dynamicViscosity (const MFloat temperature_)
 
MFloat liquidDynamicViscosity (const MFloat temperature_)
 
MFloat airThermalConductivity (const MFloat temperature_)
 
MFloat airPrandtl (const MFloat temperature_)
 
MFloat dynViscosityFun (const MFloat temperature_)
 
MFloat spraySurfaceTension (const MFloat temperature_=1)
 
MFloat T ()
 
MFloat density (const MFloat temperature_=1)
 
MFloat densityRatio ()
 
MFloat ambientDensityRatio ()
 
MFloat cp (const MFloat temperature_=1)
 
MFloat airCp ()
 
MFloat boilingPoint ()
 
MFloat bpRefPressure ()
 
MFloat gasConstant ()
 
MFloat molWeightRatio ()
 
MFloat gammaMinusOne ()
 

Public Attributes

MFloat m_viscosityFactor = -1.0
 
MFloat m_temperatureFactor = -1.0
 
MFloat m_sutherlandConstant = -1.0
 
MFloat m_sutherlandPlusOne = -1.0
 

Private Attributes

const MInt solverId
 
MFloat m_airCp = 1005
 
MFloat m_gamma = -1
 
MFloat m_gammaMinusOne = -1
 
MFloat m_gasConstant = -1
 
MFloat m_particleTemperature = 293.15
 
MFloat m_temperatureLower = -MFloatMax
 
MFloat m_temperatureUpper = MFloatMax
 
MFloat m_molarMass = -1
 
MFloat m_molarWeightRatio = 1
 
MFloat m_boilingPoint = 300.0
 
MFloat m_bpRefPressure = 101325
 
std::array< MFloat, 4 > m_particleDensity = {-1.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_cp = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_my = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_thCond = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_diffC = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_lH_ev = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_surfaceTension = {1.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_liquidMy = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_liquidThCond = {0.0, 0.0, 0.0, 0.0}
 
std::array< MFloat, 4 > m_fluidThCond = {3.227E-3, 8.3894E-5, -1.9858E-8, 0.0}
 
std::array< MFloat, 4 > m_Pr = {0.815, -0.0004958, 0.0000004514, 0.0}
 
MFloat m_densityRatio = 1
 
MFloat m_ambientDensity = 1
 
std::function< MFloat(const MFloat T)> m_viscosityFunction
 
MFloat m_nu = -1.0
 

Friends

class LPT< nDim >
 

Detailed Description

template<MInt nDim>
class MaterialState< nDim >

Definition at line 15 of file materialstate.h.

Constructor & Destructor Documentation

◆ MaterialState()

template<MInt nDim>
MaterialState< nDim >::MaterialState ( const MInt  solverId_)
inline

Definition at line 57 of file materialstate.h.

57: solverId(solverId_) { readProperties(); }
const MInt solverId
Definition: materialstate.h:19

Member Function Documentation

◆ airCp()

template<MInt nDim>
MFloat MaterialState< nDim >::airCp ( )
inline

Definition at line 168 of file materialstate.h.

168{ return m_airCp; }

◆ airPrandtl()

template<MInt nDim>
MFloat MaterialState< nDim >::airPrandtl ( const MFloat  temperature_)
inline

Definition at line 122 of file materialstate.h.

122 {
123 MFloat temperature = checkWithTemperatureRange(temperature_);
124 return m_Pr[0] + m_Pr[1] * temperature + m_Pr[2] * POW2(temperature) + m_Pr[3] * POW3(temperature);
125 }
std::array< MFloat, 4 > m_Pr
Definition: materialstate.h:48
MFloat checkWithTemperatureRange(const MFloat temperature_)
Definition: materialstate.h:65
constexpr Real POW3(const Real x)
Definition: functions.h:123
constexpr Real POW2(const Real x)
Definition: functions.h:119
double MFloat
Definition: maiatypes.h:52

◆ airThermalConductivity()

template<MInt nDim>
MFloat MaterialState< nDim >::airThermalConductivity ( const MFloat  temperature_)
inline

Definition at line 115 of file materialstate.h.

115 {
116 MFloat temperature = checkWithTemperatureRange(temperature_);
117 return m_fluidThCond[0] + m_fluidThCond[1] * temperature + m_fluidThCond[2] * POW2(temperature)
118 + m_fluidThCond[3] * POW3(temperature);
119 }
std::array< MFloat, 4 > m_fluidThCond
Definition: materialstate.h:47

◆ ambientDensityRatio()

template<MInt nDim>
MFloat MaterialState< nDim >::ambientDensityRatio ( )
inline

Definition at line 157 of file materialstate.h.

MFloat m_densityRatio
Definition: materialstate.h:50
MFloat m_ambientDensity
Definition: materialstate.h:51

◆ boilingPoint()

template<MInt nDim>
MFloat MaterialState< nDim >::boilingPoint ( )
inline

Definition at line 172 of file materialstate.h.

172{ return m_boilingPoint; }
MFloat m_boilingPoint
Definition: materialstate.h:34

◆ bpRefPressure()

template<MInt nDim>
MFloat MaterialState< nDim >::bpRefPressure ( )
inline

Definition at line 176 of file materialstate.h.

176{ return m_bpRefPressure; }
MFloat m_bpRefPressure
Definition: materialstate.h:35

◆ checkWithTemperatureRange()

template<MInt nDim>
MFloat MaterialState< nDim >::checkWithTemperatureRange ( const MFloat  temperature_)
inline

Definition at line 65 of file materialstate.h.

65 {
66 if(temperature_ < m_temperatureLower) {
67 return m_temperatureLower;
68 }
69 if(temperature_ > m_temperatureUpper) {
70 return m_temperatureUpper;
71 }
72 return temperature_;
73 }
MFloat m_temperatureLower
Definition: materialstate.h:28
MFloat m_temperatureUpper
Definition: materialstate.h:29

◆ cp()

template<MInt nDim>
MFloat MaterialState< nDim >::cp ( const MFloat  temperature_ = 1)
inline

Definition at line 161 of file materialstate.h.

161 {
162 MFloat temperature = checkWithTemperatureRange(temperature_);
163 return m_cp[0] + m_cp[1] * temperature + m_cp[2] * POW2(temperature) + m_cp[3] * POW3(temperature);
164 }
std::array< MFloat, 4 > m_cp
Definition: materialstate.h:38

◆ density()

template<MInt nDim>
MFloat MaterialState< nDim >::density ( const MFloat  temperature_ = 1)
inline

Definition at line 149 of file materialstate.h.

149 {
150 MFloat temperature = checkWithTemperatureRange(temperature_);
151 return m_particleDensity[0] + m_particleDensity[1] * temperature + m_particleDensity[2] * POW2(temperature)
152 + m_particleDensity[3] * POW3(temperature);
153 }
std::array< MFloat, 4 > m_particleDensity
Definition: materialstate.h:37

◆ densityRatio()

template<MInt nDim>
MFloat MaterialState< nDim >::densityRatio ( )
inline

Definition at line 155 of file materialstate.h.

155{ return m_densityRatio; }

◆ diffusionCoefficient()

template<MInt nDim>
MFloat MaterialState< nDim >::diffusionCoefficient ( const MFloat  temperature_)
inline

Definition at line 89 of file materialstate.h.

89 {
90 MFloat temperature = checkWithTemperatureRange(temperature_);
91 return m_diffC[0] + m_diffC[1] * temperature + m_diffC[2] * POW2(temperature) + m_diffC[3] * POW3(temperature);
92 }
std::array< MFloat, 4 > m_diffC
Definition: materialstate.h:41

◆ dynamicViscosity()

template<MInt nDim>
MFloat MaterialState< nDim >::dynamicViscosity ( const MFloat  temperature_)
inline

Definition at line 101 of file materialstate.h.

101 {
102 MFloat temperature = checkWithTemperatureRange(temperature_);
103 return m_my[0] + m_my[1] * temperature + m_my[2] * POW2(temperature) + m_my[3] * POW3(temperature);
104 }
std::array< MFloat, 4 > m_my
Definition: materialstate.h:39

◆ dynViscosityFun()

template<MInt nDim>
MFloat MaterialState< nDim >::dynViscosityFun ( const MFloat  temperature_)
inline

Definition at line 128 of file materialstate.h.

128 {
129 MFloat temperature = checkWithTemperatureRange(temperature_);
130 return m_viscosityFunction(temperature);
131 }
std::function< MFloat(const MFloat T)> m_viscosityFunction
Definition: materialstate.h:53

◆ gammaMinusOne()

template<MInt nDim>
MFloat MaterialState< nDim >::gammaMinusOne ( )
inline

Definition at line 188 of file materialstate.h.

188{ return m_gammaMinusOne; }
MFloat m_gammaMinusOne
Definition: materialstate.h:24

◆ gasConstant()

template<MInt nDim>
MFloat MaterialState< nDim >::gasConstant ( )
inline

Definition at line 180 of file materialstate.h.

180{ return m_gasConstant; }
MFloat m_gasConstant
Definition: materialstate.h:25

◆ latentHeatEvap()

template<MInt nDim>
MFloat MaterialState< nDim >::latentHeatEvap ( const MFloat  temperature_)
inline

Definition at line 95 of file materialstate.h.

95 {
96 MFloat temperature = checkWithTemperatureRange(temperature_);
97 return m_lH_ev[0] + m_lH_ev[1] * temperature + m_lH_ev[2] * POW2(temperature) + m_lH_ev[3] * POW3(temperature);
98 }
std::array< MFloat, 4 > m_lH_ev
Definition: materialstate.h:42

◆ liquidDynamicViscosity()

template<MInt nDim>
MFloat MaterialState< nDim >::liquidDynamicViscosity ( const MFloat  temperature_)
inline

Definition at line 108 of file materialstate.h.

108 {
109 MFloat temperature = checkWithTemperatureRange(temperature_);
110 return m_liquidMy[0] + m_liquidMy[1] * temperature + m_liquidMy[2] * POW2(temperature)
111 + m_liquidMy[3] * POW3(temperature);
112 }
std::array< MFloat, 4 > m_liquidMy
Definition: materialstate.h:44

◆ liquidThermalConductivity()

template<MInt nDim>
MFloat MaterialState< nDim >::liquidThermalConductivity ( const MFloat  temperature_)
inline

Definition at line 82 of file materialstate.h.

82 {
83 MFloat temperature = checkWithTemperatureRange(temperature_);
84 return m_liquidThCond[0] + m_liquidThCond[1] * temperature + m_liquidThCond[2] * POW2(temperature)
85 + m_liquidThCond[3] * POW3(temperature);
86 }
std::array< MFloat, 4 > m_liquidThCond
Definition: materialstate.h:45

◆ molWeightRatio()

template<MInt nDim>
MFloat MaterialState< nDim >::molWeightRatio ( )
inline

Definition at line 184 of file materialstate.h.

184{ return m_molarWeightRatio; }
MFloat m_molarWeightRatio
Definition: materialstate.h:32

◆ spraySurfaceTension()

template<MInt nDim>
MFloat MaterialState< nDim >::spraySurfaceTension ( const MFloat  temperature_ = 1)
inline

Definition at line 136 of file materialstate.h.

136 {
137 MFloat temperature = checkWithTemperatureRange(temperature_);
138 return m_surfaceTension[0] + m_surfaceTension[1] * temperature + m_surfaceTension[2] * POW2(temperature)
139 + m_surfaceTension[3] * POW3(temperature);
140 }
std::array< MFloat, 4 > m_surfaceTension
Definition: materialstate.h:43

◆ T()

template<MInt nDim>
MFloat MaterialState< nDim >::T ( )
inline

Definition at line 144 of file materialstate.h.

144{ return m_particleTemperature; }
MFloat m_particleTemperature
Definition: materialstate.h:27

◆ thermalConductivity()

template<MInt nDim>
MFloat MaterialState< nDim >::thermalConductivity ( const MFloat  temperature_)
inline

Definition at line 76 of file materialstate.h.

76 {
77 MFloat temperature = checkWithTemperatureRange(temperature_);
78 return m_thCond[0] + m_thCond[1] * temperature + m_thCond[2] * POW2(temperature) + m_thCond[3] * POW3(temperature);
79 }
std::array< MFloat, 4 > m_thCond
Definition: materialstate.h:40

Friends And Related Function Documentation

◆ LPT< nDim >

template<MInt nDim>
friend class LPT< nDim >
friend

Definition at line 626 of file materialstate.h.

Member Data Documentation

◆ m_airCp

template<MInt nDim>
MFloat MaterialState< nDim >::m_airCp = 1005
private

Definition at line 21 of file materialstate.h.

◆ m_ambientDensity

template<MInt nDim>
MFloat MaterialState< nDim >::m_ambientDensity = 1
private

Definition at line 51 of file materialstate.h.

◆ m_boilingPoint

template<MInt nDim>
MFloat MaterialState< nDim >::m_boilingPoint = 300.0
private

Definition at line 34 of file materialstate.h.

◆ m_bpRefPressure

template<MInt nDim>
MFloat MaterialState< nDim >::m_bpRefPressure = 101325
private

Definition at line 35 of file materialstate.h.

◆ m_cp

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_cp = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 38 of file materialstate.h.

◆ m_densityRatio

template<MInt nDim>
MFloat MaterialState< nDim >::m_densityRatio = 1
private

Definition at line 50 of file materialstate.h.

◆ m_diffC

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_diffC = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 41 of file materialstate.h.

◆ m_fluidThCond

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_fluidThCond = {3.227E-3, 8.3894E-5, -1.9858E-8, 0.0}
private

Definition at line 47 of file materialstate.h.

◆ m_gamma

template<MInt nDim>
MFloat MaterialState< nDim >::m_gamma = -1
private

Definition at line 23 of file materialstate.h.

◆ m_gammaMinusOne

template<MInt nDim>
MFloat MaterialState< nDim >::m_gammaMinusOne = -1
private

Definition at line 24 of file materialstate.h.

◆ m_gasConstant

template<MInt nDim>
MFloat MaterialState< nDim >::m_gasConstant = -1
private

Definition at line 25 of file materialstate.h.

◆ m_lH_ev

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_lH_ev = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 42 of file materialstate.h.

◆ m_liquidMy

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_liquidMy = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 44 of file materialstate.h.

◆ m_liquidThCond

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_liquidThCond = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 45 of file materialstate.h.

◆ m_molarMass

template<MInt nDim>
MFloat MaterialState< nDim >::m_molarMass = -1
private

Definition at line 31 of file materialstate.h.

◆ m_molarWeightRatio

template<MInt nDim>
MFloat MaterialState< nDim >::m_molarWeightRatio = 1
private

Definition at line 32 of file materialstate.h.

◆ m_my

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_my = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 39 of file materialstate.h.

◆ m_nu

template<MInt nDim>
MFloat MaterialState< nDim >::m_nu = -1.0
private

Definition at line 54 of file materialstate.h.

◆ m_particleDensity

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_particleDensity = {-1.0, 0.0, 0.0, 0.0}
private

Definition at line 37 of file materialstate.h.

◆ m_particleTemperature

template<MInt nDim>
MFloat MaterialState< nDim >::m_particleTemperature = 293.15
private

Definition at line 27 of file materialstate.h.

◆ m_Pr

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_Pr = {0.815, -0.0004958, 0.0000004514, 0.0}
private

Definition at line 48 of file materialstate.h.

◆ m_surfaceTension

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_surfaceTension = {1.0, 0.0, 0.0, 0.0}
private

Definition at line 43 of file materialstate.h.

◆ m_sutherlandConstant

template<MInt nDim>
MFloat MaterialState< nDim >::m_sutherlandConstant = -1.0

Definition at line 61 of file materialstate.h.

◆ m_sutherlandPlusOne

template<MInt nDim>
MFloat MaterialState< nDim >::m_sutherlandPlusOne = -1.0

Definition at line 62 of file materialstate.h.

◆ m_temperatureFactor

template<MInt nDim>
MFloat MaterialState< nDim >::m_temperatureFactor = -1.0

Definition at line 60 of file materialstate.h.

◆ m_temperatureLower

template<MInt nDim>
MFloat MaterialState< nDim >::m_temperatureLower = -MFloatMax
private

Definition at line 28 of file materialstate.h.

◆ m_temperatureUpper

template<MInt nDim>
MFloat MaterialState< nDim >::m_temperatureUpper = MFloatMax
private

Definition at line 29 of file materialstate.h.

◆ m_thCond

template<MInt nDim>
std::array<MFloat, 4> MaterialState< nDim >::m_thCond = {0.0, 0.0, 0.0, 0.0}
private

Definition at line 40 of file materialstate.h.

◆ m_viscosityFactor

template<MInt nDim>
MFloat MaterialState< nDim >::m_viscosityFactor = -1.0

Definition at line 59 of file materialstate.h.

◆ m_viscosityFunction

template<MInt nDim>
std::function<MFloat(const MFloat T)> MaterialState< nDim >::m_viscosityFunction
private

Definition at line 53 of file materialstate.h.

◆ solverId

template<MInt nDim>
const MInt MaterialState< nDim >::solverId
private

Definition at line 19 of file materialstate.h.


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