www.mooseframework.org
Functions
TabulatedFluidProperties.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("FluidPropertiesApp", TabulatedFluidProperties)
 
template<>
InputParameters validParams< TabulatedFluidProperties > ()
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "FluidPropertiesApp"  ,
TabulatedFluidProperties   
)

◆ validParams< TabulatedFluidProperties >()

template<>
InputParameters validParams< TabulatedFluidProperties > ( )

Definition at line 23 of file TabulatedFluidProperties.C.

24 {
25  InputParameters params = validParams<SinglePhaseFluidProperties>();
26  params.addParam<FileName>(
27  "fluid_property_file",
28  "fluid_properties.csv",
29  "Name of the csv file containing the tabulated fluid property data. If "
30  "no file exists and save_file = true, then one will be written to "
31  "fluid_properties.csv using the temperature and pressure range specified.");
32  params.addRangeCheckedParam<Real>("temperature_min",
33  300.0,
34  "temperature_min > 0",
35  "Minimum temperature for tabulated data. Default is 300 K)");
36  params.addParam<Real>(
37  "temperature_max", 500.0, "Maximum temperature for tabulated data. Default is 500 K");
38  params.addRangeCheckedParam<Real>("pressure_min",
39  1.0e5,
40  "pressure_min > 0",
41  "Minimum pressure for tabulated data. Default is 0.1 MPa)");
42  params.addParam<Real>(
43  "pressure_max", 50.0e6, "Maximum pressure for tabulated data. Default is 50 MPa");
44  params.addRangeCheckedParam<unsigned int>(
45  "num_T", 100, "num_T > 0", "Number of points to divide temperature range. Default is 100");
46  params.addRangeCheckedParam<unsigned int>(
47  "num_p", 100, "num_p > 0", "Number of points to divide pressure range. Default is 100");
48  params.addRequiredParam<UserObjectName>("fp", "The name of the FluidProperties UserObject");
49  MultiMooseEnum properties("density enthalpy internal_energy viscosity k cv cp entropy",
50  "density enthalpy internal_energy viscosity");
51  params.addParam<MultiMooseEnum>("interpolated_properties",
52  properties,
53  "Properties to interpolate if no data file is provided");
54  params.addParam<bool>("save_file", true, "Whether to save the csv fluid properties file");
55  params.addClassDescription(
56  "Fluid properties using bicubic interpolation on tabulated values provided");
57  return params;
58 }
validParams< SinglePhaseFluidProperties >
InputParameters validParams< SinglePhaseFluidProperties >()
Definition: SinglePhaseFluidProperties.C:14