PlasCom2  1.0
XPACC Multi-physics simluation application
perfect_gas Class Reference

Perfect Gas Equation of State. More...

Detailed Description

Perfect Gas Equation of State.

Single material P = rho*R*T E = Cv*T gamma = Cp/Cv = constant R = Cp - Cv

Definition at line 124 of file EOS.H.

#include <EOS.H>

Public Member Functions

 perfect_gas ()
 
 ~perfect_gas ()
 
int InitializeMaterialProperties ()
 Derive material properties from a minimum required set. More...
 
double GetSpecificGasConstant ()
 
double GetHeatCapacityCv ()
 
double GetHeatCapacityCp ()
 
double GetGamma ()
 
void SetSpecificGasConstant (const double &inValue)
 
void SetGamma (const double &inValue)
 
void ComputePressure (size_t index)
 Compute pressure at a single buffer index. More...
 
void ComputeTemperature (size_t index)
 Compute temperature at a single buffer index. More...
 
- Public Member Functions inherited from eos
 eos ()
 
void Initialize ()
 
int ComputePressureBuffer (const pcpp::IndexIntervalType &regionInterval, const std::vector< size_t > &bufferSizes)
 Compute pressure for the entire buffer. More...
 
int ComputeTemperatureBuffer (const pcpp::IndexIntervalType &regionInterval, const std::vector< size_t > &bufferSizes)
 Compute temperature for the entire buffer. 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)
 

Private Attributes

double * specificGasConstantPtr
 
double * gammaPtr
 
double gamma
 
double specificGasConstant
 
double gammaMinus1
 
double inverseCv
 
double heatCapacityCv
 
double heatCapacityCp
 

Additional Inherited Members

- Protected Attributes inherited from eos
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
 
Inheritance diagram for perfect_gas:
Collaboration diagram for perfect_gas:

Constructor & Destructor Documentation

◆ perfect_gas()

perfect_gas ( )
inline

Definition at line 127 of file EOS.H.

References perfect_gas::gammaPtr, and perfect_gas::specificGasConstantPtr.

◆ ~perfect_gas()

~perfect_gas ( )
inline

Definition at line 136 of file EOS.H.

References perfect_gas::gammaPtr, and perfect_gas::specificGasConstantPtr.

Member Function Documentation

◆ ComputePressure()

void ComputePressure ( size_t  index)
inlinevirtual

Compute pressure at a single buffer index.

Implements eos.

Definition at line 181 of file EOS.H.

References perfect_gas::gammaMinus1, eos::internalEnergyPtr, and eos::pressurePtr.

◆ ComputeTemperature()

void ComputeTemperature ( size_t  index)
inlinevirtual

Compute temperature at a single buffer index.

Implements eos.

Definition at line 185 of file EOS.H.

References eos::internalEnergyPtr, perfect_gas::inverseCv, eos::specificVolumePtr, and eos::temperaturePtr.

◆ GetGamma()

double GetGamma ( )
inlinevirtual

Implements eos.

Definition at line 165 of file EOS.H.

References perfect_gas::gammaPtr.

◆ GetHeatCapacityCp()

double GetHeatCapacityCp ( )
inlinevirtual

Implements eos.

Definition at line 164 of file EOS.H.

References perfect_gas::heatCapacityCp.

◆ GetHeatCapacityCv()

double GetHeatCapacityCv ( )
inlinevirtual

Implements eos.

Definition at line 163 of file EOS.H.

References perfect_gas::heatCapacityCv.

◆ GetSpecificGasConstant()

double GetSpecificGasConstant ( )
inlinevirtual

Implements eos.

Definition at line 162 of file EOS.H.

References perfect_gas::specificGasConstantPtr.

◆ InitializeMaterialProperties()

int InitializeMaterialProperties ( )
inlinevirtual

◆ SetGamma()

void SetGamma ( const double &  inValue)
inlinevirtual

Implements eos.

Definition at line 174 of file EOS.H.

References perfect_gas::gammaPtr.

Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().

Here is the caller graph for this function:

◆ SetSpecificGasConstant()

void SetSpecificGasConstant ( const double &  inValue)
inlinevirtual

Implements eos.

Definition at line 167 of file EOS.H.

References perfect_gas::specificGasConstantPtr.

Referenced by TestEOS_ComputeBuffers(), TestEulerKernels(), TestViscidKernels(), and TestViscidKernelsMetrics().

Here is the caller graph for this function:

Member Data Documentation

◆ gamma

double gamma
private

Definition at line 197 of file EOS.H.

Referenced by perfect_gas::InitializeMaterialProperties().

◆ gammaMinus1

double gammaMinus1
private

◆ gammaPtr

◆ heatCapacityCp

double heatCapacityCp
private

◆ heatCapacityCv

double heatCapacityCv
private

◆ inverseCv

double inverseCv
private

◆ specificGasConstant

double specificGasConstant
private

Definition at line 198 of file EOS.H.

Referenced by perfect_gas::InitializeMaterialProperties().

◆ specificGasConstantPtr


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