A component which returns run time specified values for all fluid properties.
More...
template<int id, class
Scalar>
class Dumux::Components::Constant< id, Scalar >
- Template Parameters
-
| id | The id used to read from the input file / parametertree |
| Scalar | The type used for scalar values |
- Note
- For the constant component with id=1 you would specify the parameters in the input file as follows
[1.Component]
MolarMass = 0.018 # kg/mol
-
If you only have one component you can also omit the "1.".
|
| static constexpr bool | gasIsCompressible () |
| | Returns true if the gas phase is assumed to be compressible.
|
| |
| static constexpr bool | gasViscosityIsConstant () |
| | Returns true if the gas phase viscosity is constant.
|
| |
| static constexpr bool | gasIsIdeal () |
| | Returns true if the gas phase is assumed to be ideal.
|
| |
| static constexpr bool | liquidIsCompressible () |
| | Returns true if the liquid phase is assumed to be compressible.
|
| |
| static constexpr bool | liquidViscosityIsConstant () |
| | Returns true if the liquid phase viscosity is constant.
|
| |
| static const std::string & | name () |
| | A human readable name for the component.
|
| |
| static Scalar | molarMass () |
| | The mass in \(\mathrm{[kg]}\) of one mole of the component.
|
| |
| static Scalar | tripleTemperature () |
| | Returns the temperature \(\mathrm{[K]}\) at the components's triple point.
|
| |
| static Scalar | triplePressure () |
| | Returns the pressure \(\mathrm{[Pa]}\) at the component's triple point.
|
| |
| static Scalar | vaporizationEnthalpy () |
| | The vaporization enthalpy in \(\mathrm{[J/kg]}\) needed to vaporize one kilogram of the liquid component to the gaseous state.
|
| |
| static Scalar | liquidDensity (Scalar temperature, Scalar pressure) |
| | Sets the liquid density in \(\mathrm{[kg/m^3]}\).
|
| |
| static Scalar | liquidMolarDensity (Scalar temperature, Scalar pressure) |
| | The molar density in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature.
|
| |
| static Scalar | liquidViscosity (Scalar temperature, Scalar pressure) |
| | Sets the liquid dynamic viscosity in \(\mathrm{[Pa*s]}\).
|
| |
| static Scalar | liquidThermalConductivity (Scalar temperature, Scalar pressure) |
| | Thermal conductivity of the component \(\mathrm{[W/(m*K)]}\) as a liquid.
|
| |
| static Scalar | liquidInternalEnergy (Scalar temperature, Scalar pressure) |
| | Specific internal energy of the component \(\mathrm{[J/kg]}\) as a liquid.
|
| |
| static Scalar | liquidEnthalpy (Scalar temperature, Scalar pressure) |
| | Specific enthalpy of the component \(\mathrm{[J/kg]}\) as a liquid.
|
| |
| static Scalar | liquidHeatCapacity (Scalar temperature, Scalar pressure) |
| | Specific isobaric heat capacity of the component \(\mathrm{[J/(kg*K)]}\) as a liquid.
|
| |
| static Scalar | gasDensity (Scalar temperature, Scalar pressure) |
| | Sets the gas density in \(\mathrm{[kg/m^3]}\).
|
| |
| static Scalar | gasMolarDensity (Scalar temperature, Scalar pressure) |
| | The molar density in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature.
|
| |
| static Scalar | gasViscosity (Scalar temperature, Scalar pressure) |
| | Sets the gas dynamic viscosity in \(\mathrm{[Pa*s]}\).
|
| |
| static Scalar | gasThermalConductivity (Scalar temperature, Scalar pressure) |
| | Thermal conductivity of the component \(\mathrm{[W/(m*K)]}\) as a gas.
|
| |
| static Scalar | gasInternalEnergy (Scalar temperature, Scalar pressure) |
| | Specific internal energy of the component \(\mathrm{[J/kg]}\) as a gas.
|
| |
| static Scalar | gasEnthalpy (Scalar temperature, Scalar pressure) |
| | Specific enthalpy of the component \(\mathrm{[J/kg]}\) as a gas.
|
| |
| static Scalar | gasHeatCapacity (Scalar temperature, Scalar pressure) |
| | Specific isobaric heat capacity of the component \(\mathrm{[J/(kg*K)]}\) as a gas.
|
| |
| static Scalar | vaporPressure (Scalar T) |
| | The vapor pressure in \(\mathrm{[Pa]}\) of a the component at a given temperature.
|
| |
| static Scalar | solidDensity (Scalar temperature) |
| | The density in \(\mathrm{[kg/m^3]}\) of the component at a given pressure in \(\mathrm{[Pa]}\) and temperature in \(\mathrm{[K]}\).
|
| |
| static Scalar | solidThermalConductivity (Scalar temperature) |
| | Thermal conductivity of the component \(\mathrm{[W/(m*K)]}\) as a solid.
|
| |
| static Scalar | solidHeatCapacity (Scalar temperature) |
| | Specific isobaric heat capacity of the component \(\mathrm{[J/(kg*K)]}\) as a solid.
|
| |
| static void | init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress) |
| | A default routine for initialization, not needed for components and must not be called.
|
| |
| static constexpr Scalar | criticalTemperature () |
| | Returns the critical temperature in \(\mathrm{[K]}\) of the component.
|
| |
| static constexpr Scalar | criticalPressure () |
| | Returns the critical pressure in \(\mathrm{[Pa]}\) of the component.
|
| |
| static constexpr bool | solidIsCompressible () |
| | Returns true if the solid phase is assumed to be compressible.
|
| |