modelR134a_setState_phX
Test setState_phX() of R134a
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.AbsolutePressure | p0 | 10e5 | p at time 0 |
| SI.PressureSlope | pRate | 20e5 | p's rate of change |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificEnthalpy | h | Medium.h_default | |
| SI.AbsolutePressure | p | p0 + pRate*time | |
| Medium.ThermodynamicState | state | Medium.setState_phX(p, h) | |
| SI.Temperature | T | Medium.temperature(state) | |
| SI.Density | rho | Medium.density(state) | |
| SI.DynamicViscosity | mu | Medium.dynamicViscosity(state) | |
| SI.SpecificHeatCapacity | cp | Medium.specificHeatCapacityCp(state) | |
| SI.ThermalConductivity | k | Medium.thermalConductivity(state) |
Contents
| Name | Description |
|---|---|
| Medium model |