base API for equations of state More...
base API for equations of state
At the most basic level, an equation of state should take the conserved state variables (density, momentum, and energy) and convert them to their observable counterparts (pressure and temperature)
#include <EOS.H>
Public Member Functions | |
eos () | |
void | Initialize () |
virtual int | InitializeMaterialProperties ()=0 |
Derive material properties from a minimum required set. More... | |
int | ComputePressureBuffer (const pcpp::IndexIntervalType ®ionInterval, const std::vector< size_t > &bufferSizes) |
Compute pressure for the entire buffer. More... | |
int | ComputeTemperatureBuffer (const pcpp::IndexIntervalType ®ionInterval, const std::vector< size_t > &bufferSizes) |
Compute temperature for the entire buffer. More... | |
virtual void | ComputePressure (size_t index)=0 |
Compute pressure at a single buffer index. More... | |
virtual void | ComputeTemperature (size_t index)=0 |
Compute temperature at a single buffer index. More... | |
void | SetupPressureBuffer (double *const inPtr) |
void | SetupTemperatureBuffer (double *const inPtr) |
void | SetupSpecificVolumeBuffer (double *const inPtr) |
void | SetupDensityBuffer (double *const inPtr) |
void | SetupInternalEnergyBuffer (double *const inPtr) |
virtual double | GetSpecificGasConstant ()=0 |
virtual double | GetHeatCapacityCv ()=0 |
virtual double | GetHeatCapacityCp ()=0 |
virtual double | GetGamma ()=0 |
virtual void | SetSpecificGasConstant (const double &inValue)=0 |
virtual void | SetGamma (const double &inValue)=0 |
Protected Attributes | |
int | numDim |
double * | densityPtr |
double * | momentumPtr |
double * | internalEnergyPtr |
double * | totalEnergyPtr |
double * | pressurePtr |
double * | temperaturePtr |
double * | specificVolumePtr |
size_t | xStart |
size_t | xEnd |
size_t | xSize |
size_t | yStart |
size_t | yEnd |
size_t | ySize |
size_t | zStart |
size_t | zEnd |
size_t | zSize |
size_t | numPointsBuffer |
|
inline |
Definition at line 20 of file EOS.H.
References plascom2::operators::sbp::Initialize().
|
pure virtual |
Compute pressure at a single buffer index.
Implemented in perfect_gas.
int ComputePressureBuffer | ( | const pcpp::IndexIntervalType & | regionInterval, |
const std::vector< size_t > & | bufferSizes | ||
) |
Compute pressure for the entire buffer.
Definition at line 5 of file EOS.C.
References numPointsBuffer.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
pure virtual |
Compute temperature at a single buffer index.
Implemented in perfect_gas.
int ComputeTemperatureBuffer | ( | const pcpp::IndexIntervalType & | regionInterval, |
const std::vector< size_t > & | bufferSizes | ||
) |
Compute temperature for the entire buffer.
Definition at line 52 of file EOS.C.
References numPointsBuffer.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
pure virtual |
Implemented in perfect_gas.
|
pure virtual |
Implemented in perfect_gas.
|
pure virtual |
Implemented in perfect_gas.
|
pure virtual |
Implemented in perfect_gas.
|
inline |
Definition at line 22 of file EOS.H.
References bufferSizes.
|
pure virtual |
Derive material properties from a minimum required set.
Implemented in perfect_gas.
|
pure virtual |
Implemented in perfect_gas.
|
pure virtual |
Implemented in perfect_gas.
|
inline |
Definition at line 73 of file EOS.H.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
inline |
Definition at line 69 of file EOS.H.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
inline |
Definition at line 71 of file EOS.H.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
inline |
Definition at line 70 of file EOS.H.
Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().
|
protected |
Definition at line 89 of file EOS.H.
Referenced by perfect_gas::ComputePressure(), and perfect_gas::ComputeTemperature().
|
protected |
Definition at line 91 of file EOS.H.
Referenced by perfect_gas::ComputePressure().
|
protected |
Definition at line 93 of file EOS.H.
Referenced by perfect_gas::ComputeTemperature().
|
protected |
Definition at line 92 of file EOS.H.
Referenced by perfect_gas::ComputeTemperature().