Go to the documentation of this file.
13 #include "DelimitedFileReader.h"
15 class SinglePhaseFluidPropertiesPT;
16 class BicubicInterpolation;
22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
100 virtual std::string
fluidName()
const override;
126 using SinglePhaseFluidProperties::cp_from_p_T;
139 virtual void s_from_p_T(Real
p, Real
T, Real & s, Real & ds_dp, Real & ds_dT)
const override;
177 const std::vector<Real> & vec,
178 std::vector<std::vector<Real>> & mat);
214 "density",
"enthalpy",
"internal_energy",
"viscosity",
"k",
"cv",
"cp",
"entropy"};
243 #pragma GCC diagnostic pop
virtual std::vector< Real > henryCoefficients() const override
Henry's law coefficients for dissolution in water.
bool _interpolate_enthalpy
Class for fluid properties read from a file.
MooseUtils::DelimitedFileReader _csv_reader
The MOOSE delimited file reader.
Common class for single phase fluid properties.
virtual void generateTabulatedData()
Generates a table of fluid properties by looping over pressure and temperature and calculating proper...
virtual Real s_from_p_T(Real pressure, Real temperature) const override
MultiMooseEnum _interpolated_properties_enum
Properties to be interpolated entered in the input file.
virtual Real k_from_p_T(Real pressure, Real temperature) const override
virtual void initialSetup() override
const SinglePhaseFluidProperties & _fp
SinglePhaseFluidPropertiesPT UserObject.
unsigned int _viscosity_idx
virtual Real vaporPressure(Real temperature) const override
Vapor pressure.
virtual void checkInputVariables(Real &pressure, Real &temperature) const
Checks that the inputs are within the range of the tabulated data, and throws an error if they are no...
bool _interpolate_entropy
const std::vector< std::string > _required_columns
List of required column names to be read.
InputParameters validParams< TabulatedFluidProperties >()
std::vector< std::string > _interpolated_properties
List of properties to be interpolated.
std::vector< Real > _pressure
Pressure vector.
Real _pressure_max
Maximum pressure in tabulated data.
unsigned int _num_T
Number of temperature points in the tabulated data.
std::vector< std::vector< Real > > _properties
Tabulated fluid properties.
unsigned int _internal_energy_idx
virtual Real cv_from_p_T(Real pressure, Real temperature) const override
unsigned int _density_idx
Index of each property.
const std::vector< std::string > _property_columns
List of possible property column names to be read.
virtual Real molarMass() const override
Fluid name.
bool _interpolate_density
Set of flags to note whether a property is to be interpolated.
void reshapeData2D(unsigned int nrow, unsigned int ncol, const std::vector< Real > &vec, std::vector< std::vector< Real >> &mat)
Forms a 2D matrix from a single std::vector.
Real _temperature_min
Minimum temperature in tabulated data.
virtual Real h_from_p_T(Real p, Real T) const override
bool _interpolate_internal_energy
const bool _save_file
Whether to save a generated fluid properties file to disk.
virtual ~TabulatedFluidProperties()
std::vector< std::unique_ptr< BicubicInterpolation > > _property_ipol
Interpolated fluid property.
virtual Real c_from_p_T(Real pressure, Real temperature) const override
void writeTabulatedData(std::string file_name)
Writes tabulated data to a file.
const std::string temperature
FileName _file_name
File name of tabulated data file.
std::vector< Real > _temperature
Temperature vector.
virtual Real e_from_p_T(Real pressure, Real temperature) const override
TabulatedFluidProperties(const InputParameters ¶meters)
virtual std::string fluidName() const override
Real _pressure_min
Minimum pressure in tabulated data.
unsigned int _enthalpy_idx
virtual Real rho_from_p_T(Real pressure, Real temperature) const override
virtual Real mu_from_p_T(Real pressure, Real temperature) const override
bool _interpolate_viscosity
virtual Real cp_from_p_T(Real pressure, Real temperature) const override
unsigned int _num_p
Number of pressure points in the tabulated data.
unsigned int _entropy_idx
Real _temperature_max
Maximum temperature in tabulated data.
const std::string pressure