www.mooseframework.org
Classes | Functions
RichardsDensityVDW.h File Reference

Go to the source code of this file.

Classes

class  RichardsDensityVDW
 Density of a gas according to the van der Waals expression (P + n^2 a/V^2)(V - nb) = nRT How density is calculated: given P, (1/V) is calculated for n=1 and rho = molar_mass*(1/V). More...
 

Functions

template<>
InputParameters validParams< RichardsDensityVDW > ()
 

Function Documentation

template<>
InputParameters validParams< RichardsDensityVDW > ( )

Definition at line 12 of file RichardsDensityVDW.C.

13 {
14  InputParameters params = validParams<RichardsDensity>();
15  params.addRequiredRangeCheckedParam<Real>(
16  "a",
17  "a > 0",
18  "Parameter 'a' in the van der Waals expression (P + n^2 a/V^2)(V - nb) = nRT. "
19  "Example for methane 0.2303 Pa m^6 mol^-2");
20  params.addRequiredRangeCheckedParam<Real>(
21  "b",
22  "b > 0",
23  "Parameter 'b' in the van der Waals expression (P + n^2 a/V^2)(V - nb) = nRT. "
24  "Example for methane 4.31E-5 m^3/mol");
25  params.addRequiredRangeCheckedParam<Real>(
26  "temperature", "temperature > 0", "Temperature in Kelvin");
27  params.addRequiredRangeCheckedParam<Real>(
28  "molar_mass",
29  "molar_mass > 0",
30  "Molar mass of the gas. Example for methane 16.04246E-3 kg/mol");
31  params.addRangeCheckedParam<Real>("infinity_ratio",
32  10,
33  "infinity_ratio > 0",
34  "For P<0 the density is not physically defined, "
35  "but numerically it is advantageous to define "
36  "it: density(P=-infinity) = "
37  "-infinity_ratio*molar_mass, and density tends "
38  "exponentially towards this value as P -> "
39  "-infinity. (Units are mol/m^3).");
40  params.addClassDescription("Density of van der Waals gas.");
41  return params;
42 }
InputParameters validParams< RichardsDensity >()