modelFluidTest
Information
This test maintains a constant pressure, and ramps temperature between the selected values. At each temperature, a thermodynamic state is created from p and T and, from it, different properties are calculated. The state is recovered also from d_T, p_H, and p_S, in order to check if the state is correctly reconstructed.
Also an intermediate state between bubble and dew is created and some of its properties calculate.
You can enable also the calculation of viscosity and thermal conductivity, but the CoolProp fluids will fail many times due to lack of implementation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.AbsolutePressure | Ps | 1.0e5 | |
| Medium.Temperature | initialT | 273.19 | |
| Medium.Temperature | finalT | 372.15 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.Temperature | Ts | We will ramp the temperature | |
| Medium.ThermodynamicState | StateP | original state from p and T | |
| Medium.MolarMass | MM | ||
| Medium.SpecificEnthalpy | H | ||
| Medium.Density | D | ||
| Medium.SpecificEntropy | S | ||
| Real | U | internal energy | |
| Real | Cp | ||
| Real | Cv | ||
| Real | Gamma | ||
| Real | SS | speed of sound | |
| Real | Beta | isobaric expansion coefficient | |
| Real | Kappa | isothermal compressibility | |
| Real | Density_derp_T | ||
| Real | Density_derT_p | ||
| Real | Density_derp_h | ||
| Real | Density_derh_p | ||
| Medium.ThermodynamicState | StateD | state reproduced from d,T | |
| Medium.ThermodynamicState | StateH | state reproduced from p,h | |
| Medium.SaturationProperties | sat | saturation point at given T | |
| Medium.AbsolutePressure | Vp | ||
| Medium.Temperature | Tb | ||
| Medium.Temperature | Tsat | temperature recovered from saturation pressure | |
| Medium.ThermodynamicState | StateBub | bubble state at sat | |
| Medium.ThermodynamicState | StateDew | dew state at sat | |
| Real | BetaBub | isobaric expansion coefficient | |
| Real | KappaBub | isothermal compressibility | |
| Real | BetaDew | isobaric expansion coefficient | |
| Real | KappaDew | isothermal compressibility | |
| Real | BubD | ||
| Real | BubH | bubble properties | |
| Real | BubS | ||
| Real | BubDerD_p | ||
| Real | BubDerH_p | ||
| Real | DewD | ||
| Real | DewH | dew properties | |
| Real | DewS | ||
| Real | DewDerD_p | ||
| Real | DewDerH_p | ||
| Real | Hv | vaporization enthalpy | |
| Medium.ThermodynamicState | State2H | state half way between Bub and Dew | |
| Real | T2 | ||
| Real | D2 | ||
| Real | S2 | ||
| Real | Cv2 | ||
| Real | Cp2 | ||
| Real | Density_derp_h2 | ||
| Real | Density_derh_p2 | ||
| Medium.ThermodynamicState | State2D | ||
| Medium.BaseProperties | BasePropT | ||
| Medium.BaseProperties | BasePropH | ||
| Medium.BaseProperties | BasePropD | ||
| Medium.BaseProperties | BasePropH2 |
Contents
| Name | Description |
|---|---|