This source allows the user to compute specific internal energy (\(\epsilon\)), pressure (\(P\)), density (\(\rho\)), and temperature (\(T\)) from the Van Der Waals gas law,
Here \(R\) is the gas constant, \(C_V\) is the specific heat at constant volume and \(\eta_a\) and \(\eta_b\) are constants accounting for the intermolecular forces and the molecular size, respectively.
operations
(string vector, required)The operation(s) to be performed. The standard direct operation is “computeEOSFromTemperatureAndDensity” where “EOS” should be replaced by one of the following values (the first word of each option should be used, the remainder offers a brief description and the default units after conversion):
To compute an inverse operation, simply permute the string to be “computeTemperatureFromEOSAndDensity” or “computeDensityFromTemperatureAndEOS”. The input is not case sensitive.
Rr
(float, required)Cv
(float, required)etaA
(float, required)etaB
(float, required)speciesMass
(float, required)kboltz
(float, optional)useParticleDensity
(int, optional)densityConversionCoefficient
(float, optional)temperatureConversionCoefficient
(float, optional)conversionCoefficients
(float vector, optional)in
(string vector, required)
input variables
(nodalArray, 1-component each, 2 required)The specific input variables and order depend on the operations input option. For direct EOS evaluation, the input variables should be in = [temperature, density]. The order is critical where temperature must be the first input and density must be the second input. For inverse operations, the temperature, if an input, must be the first input and the density, if an input, must be the second input. The EOS input should be placed in the correspondingly empty input location. Inputs are of type nodalArray with one component each.
out
(string vector, required)
output variables
(nodalArray, 1-component each, required)The number of out variables should be the same as the number of entries into the list of operations. The result of each operation will be placed into the corresponding output variable, respectively. Outputs are of type nodalArray with one component each.
<Updater computeEOS>
kind=equation2d
onGrid=domain
in=[temperature, density]
out=[energy, pressure]
<Equation thisGas>
kind=vanDerWaalsVariables
Rr=2.0769
Cv=3.1156
etaA=0.0346
etaB=0.0238
speciesMass=6.64e-27
operations=["computeEnergyFromDensityAndTemperature", \
"computePressureFromDensityAndTemperature"]
</Equation>
</Updater>