|
Nektar++
|
#include <VariableConverter.h>
Public Member Functions | |
| VariableConverter (const LibUtilities::SessionReaderSharedPtr &pSession, const int spaceDim) | |
| ~VariableConverter () | |
| Destructor for VariableConverter class. More... | |
| void | GetVelocityVector (const Array< OneD, Array< OneD, NekDouble > > &physfield, Array< OneD, Array< OneD, NekDouble > > &velocity) |
| void | GetSoundSpeed (const Array< OneD, Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &pressure, Array< OneD, NekDouble > &soundspeed) |
| void | GetMach (Array< OneD, Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &soundspeed, Array< OneD, NekDouble > &mach) |
| void | GetTemperature (const Array< OneD, const Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &pressure, Array< OneD, NekDouble > &temperature) |
| void | GetPressure (const Array< OneD, const Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &pressure) |
Calculate the pressure field assuming an ideal gas law. More... | |
| void | GetPressure (const Array< OneD, const Array< OneD, NekDouble > > &physfield, const Array< OneD, const Array< OneD, NekDouble > > &velocity, Array< OneD, NekDouble > &pressure) |
Calculate the pressure field assuming an ideal gas law. More... | |
| void | GetEnthalpy (const Array< OneD, const Array< OneD, NekDouble > > &physfield, Array< OneD, NekDouble > &pressure, Array< OneD, NekDouble > &enthalpy) |
| void | GetEntropy (const Array< OneD, const Array< OneD, NekDouble > > &physfield, const Array< OneD, const NekDouble > &pressure, const Array< OneD, const NekDouble > &temperature, Array< OneD, NekDouble > &entropy) |
| void | GetDynamicViscosity (const Array< OneD, const NekDouble > &temperature, Array< OneD, NekDouble > &mu) |
| void | GetAbsoluteVelocity (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, NekDouble > &Vtot) |
| void | GetSensor (const MultiRegions::ExpListSharedPtr &field, const Array< OneD, const Array< OneD, NekDouble > > &physarray, Array< OneD, NekDouble > &Sensor, Array< OneD, NekDouble > &SensorKappa) |
Definition at line 50 of file VariableConverter.h.
| Nektar::VariableConverter::VariableConverter | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
| const int | spaceDim | ||
| ) |
Definition at line 45 of file VariableConverter.cpp.
References ASSERTL0, m_gamma, m_gasConstant, m_Kappa, m_mu, m_mu0, m_pInf, m_rhoInf, m_session, m_Skappa, and m_thermalConductivity.
| Nektar::VariableConverter::~VariableConverter | ( | ) |
Destructor for VariableConverter class.
Definition at line 83 of file VariableConverter.cpp.
| void Nektar::VariableConverter::GetAbsoluteVelocity | ( | const Array< OneD, const Array< OneD, NekDouble > > & | inarray, |
| Array< OneD, NekDouble > & | Vtot | ||
| ) |
| void Nektar::VariableConverter::GetDynamicViscosity | ( | const Array< OneD, const NekDouble > & | temperature, |
| Array< OneD, NekDouble > & | mu | ||
| ) |
| void Nektar::VariableConverter::GetEnthalpy | ( | const Array< OneD, const Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, NekDouble > & | pressure, | ||
| Array< OneD, NekDouble > & | enthalpy | ||
| ) |
| void Nektar::VariableConverter::GetEntropy | ( | const Array< OneD, const Array< OneD, NekDouble > > & | physfield, |
| const Array< OneD, const NekDouble > & | pressure, | ||
| const Array< OneD, const NekDouble > & | temperature, | ||
| Array< OneD, NekDouble > & | entropy | ||
| ) |
| void Nektar::VariableConverter::GetMach | ( | Array< OneD, Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, NekDouble > & | soundspeed, | ||
| Array< OneD, NekDouble > & | mach | ||
| ) |
| void Nektar::VariableConverter::GetPressure | ( | const Array< OneD, const Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, NekDouble > & | pressure | ||
| ) |
Calculate the pressure field
assuming an ideal gas law.
| physfield | Input momentum. |
| pressure | Computed pressure field. |
Definition at line 96 of file VariableConverter.cpp.
References m_gamma, m_spacedim, Vmath::Smul(), Vmath::Svtvp(), Vmath::Vdiv(), Vmath::Vmul(), and Vmath::Vvtvp().
| void Nektar::VariableConverter::GetPressure | ( | const Array< OneD, const Array< OneD, NekDouble > > & | physfield, |
| const Array< OneD, const Array< OneD, NekDouble > > & | velocity, | ||
| Array< OneD, NekDouble > & | pressure | ||
| ) |
Calculate the pressure field
assuming an ideal gas law.
This is a slightly optimised way to calculate the pressure field which avoids division by the density field if the velocity field has already been calculated.
| physfield | Input momentum. |
| velocity | Velocity vector. |
| pressure | Computed pressure field. |
Definition at line 132 of file VariableConverter.cpp.
References m_gamma, m_spacedim, Vmath::Smul(), Vmath::Svtvp(), Vmath::Vmul(), and Vmath::Vvtvp().
| void Nektar::VariableConverter::GetSensor | ( | const MultiRegions::ExpListSharedPtr & | field, |
| const Array< OneD, const Array< OneD, NekDouble > > & | physarray, | ||
| Array< OneD, NekDouble > & | Sensor, | ||
| Array< OneD, NekDouble > & | SensorKappa | ||
| ) |
| void Nektar::VariableConverter::GetSoundSpeed | ( | const Array< OneD, Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, NekDouble > & | pressure, | ||
| Array< OneD, NekDouble > & | soundspeed | ||
| ) |
| void Nektar::VariableConverter::GetTemperature | ( | const Array< OneD, const Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, NekDouble > & | pressure, | ||
| Array< OneD, NekDouble > & | temperature | ||
| ) |
| void Nektar::VariableConverter::GetVelocityVector | ( | const Array< OneD, Array< OneD, NekDouble > > & | physfield, |
| Array< OneD, Array< OneD, NekDouble > > & | velocity | ||
| ) |
|
protected |
Definition at line 106 of file VariableConverter.h.
Referenced by GetPressure(), and VariableConverter().
|
protected |
Definition at line 109 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 113 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 110 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 114 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 107 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 108 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 104 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 112 of file VariableConverter.h.
Referenced by VariableConverter().
|
protected |
Definition at line 105 of file VariableConverter.h.
Referenced by GetPressure().
|
protected |
Definition at line 111 of file VariableConverter.h.
Referenced by VariableConverter().
1.8.8