Description: "Return thermodynamic state from p and T"

- Home > Modelica

## Modelica.Media.Interfaces.PartialPureSubstance.setState_pT

Return thermodynamic state from p and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
ThermodynamicState | state | Thermodynamic state record

### Modelica definition

replaceable function setState_pT "Return thermodynamic state from p and T" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; output ThermodynamicState state "Thermodynamic state record"; algorithm state := setState_pTX( p, T, fill(0, 0)); end setState_pT;

## Modelica.Media.Interfaces.PartialPureSubstance.setState_ph

Return thermodynamic state from p and h

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEnthalpy | h |  | Specific enthalpy [J/kg]

### Outputs

Type | Name | Description
--- | --- | ---
ThermodynamicState | state | Thermodynamic state record

### Modelica definition

replaceable function setState_ph "Return thermodynamic state from p and h" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; output ThermodynamicState state "Thermodynamic state record"; algorithm state := setState_phX( p, h, fill(0, 0)); end setState_ph;

## Modelica.Media.Interfaces.PartialPureSubstance.setState_ps

Return thermodynamic state from p and s

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEntropy | s |  | Specific entropy [J/(kg.K)]

### Outputs

Type | Name | Description
--- | --- | ---
ThermodynamicState | state | Thermodynamic state record

### Modelica definition

replaceable function setState_ps "Return thermodynamic state from p and s" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEntropy s "Specific entropy"; output ThermodynamicState state "Thermodynamic state record"; algorithm state := setState_psX( p, s, fill(0, 0)); end setState_ps;

## Modelica.Media.Interfaces.PartialPureSubstance.setState_dT

Return thermodynamic state from d and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Density | d |  | Density [kg/m3]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
ThermodynamicState | state | Thermodynamic state record

### Modelica definition

replaceable function setState_dT "Return thermodynamic state from d and T" extends Modelica.Icons.Function; input Density d "Density"; input Temperature T "Temperature"; output ThermodynamicState state "Thermodynamic state record"; algorithm state := setState_dTX( d, T, fill(0, 0)); end setState_dT;

## Modelica.Media.Interfaces.PartialPureSubstance.density_ph

Return density from p and h

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEnthalpy | h |  | Specific enthalpy [J/kg]

### Outputs

Type | Name | Description
--- | --- | ---
Density | d | Density [kg/m3]

### Modelica definition

replaceable function density_ph "Return density from p and h" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; output Density d "Density"; algorithm d := density_phX( p, h, fill(0, 0)); end density_ph;

## Modelica.Media.Interfaces.PartialPureSubstance.temperature_ph

Return temperature from p and h

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEnthalpy | h |  | Specific enthalpy [J/kg]

### Outputs

Type | Name | Description
--- | --- | ---
Temperature | T | Temperature [K]

### Modelica definition

replaceable function temperature_ph "Return temperature from p and h" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; output Temperature T "Temperature"; algorithm T := temperature_phX( p, h, fill(0, 0)); end temperature_ph;

## Modelica.Media.Interfaces.PartialPureSubstance.pressure_dT

Return pressure from d and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Density | d |  | Density [kg/m3]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
AbsolutePressure | p | Pressure [Pa]

### Modelica definition

replaceable function pressure_dT "Return pressure from d and T" extends Modelica.Icons.Function; input Density d "Density"; input Temperature T "Temperature"; output AbsolutePressure p "Pressure"; algorithm p := pressure(setState_dTX( d, T, fill(0, 0))); end pressure_dT;

## Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_dT

Return specific enthalpy from d and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Density | d |  | Density [kg/m3]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
SpecificEnthalpy | h | Specific enthalpy [J/kg]

### Modelica definition

replaceable function specificEnthalpy_dT "Return specific enthalpy from d and T" extends Modelica.Icons.Function; input Density d "Density"; input Temperature T "Temperature"; output SpecificEnthalpy h "Specific enthalpy"; algorithm h := specificEnthalpy(setState_dTX( d, T, fill(0, 0))); end specificEnthalpy_dT;

## Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_ps

Return specific enthalpy from p and s

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEntropy | s |  | Specific entropy [J/(kg.K)]

### Outputs

Type | Name | Description
--- | --- | ---
SpecificEnthalpy | h | Specific enthalpy [J/kg]

### Modelica definition

replaceable function specificEnthalpy_ps "Return specific enthalpy from p and s" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEntropy s "Specific entropy"; output SpecificEnthalpy h "Specific enthalpy"; algorithm h := specificEnthalpy_psX( p, s, fill(0, 0)); end specificEnthalpy_ps;

## Modelica.Media.Interfaces.PartialPureSubstance.temperature_ps

Return temperature from p and s

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEntropy | s |  | Specific entropy [J/(kg.K)]

### Outputs

Type | Name | Description
--- | --- | ---
Temperature | T | Temperature [K]

### Modelica definition

replaceable function temperature_ps "Return temperature from p and s" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEntropy s "Specific entropy"; output Temperature T "Temperature"; algorithm T := temperature_psX( p, s, fill(0, 0)); end temperature_ps;

## Modelica.Media.Interfaces.PartialPureSubstance.density_ps

Return density from p and s

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
SpecificEntropy | s |  | Specific entropy [J/(kg.K)]

### Outputs

Type | Name | Description
--- | --- | ---
Density | d | Density [kg/m3]

### Modelica definition

replaceable function density_ps "Return density from p and s" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEntropy s "Specific entropy"; output Density d "Density"; algorithm d := density_psX( p, s, fill(0, 0)); end density_ps;

## Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_pT

Return specific enthalpy from p and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
SpecificEnthalpy | h | Specific enthalpy [J/kg]

### Modelica definition

replaceable function specificEnthalpy_pT "Return specific enthalpy from p and T" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; output SpecificEnthalpy h "Specific enthalpy"; algorithm h := specificEnthalpy_pTX( p, T, fill(0, 0)); end specificEnthalpy_pT;

## Modelica.Media.Interfaces.PartialPureSubstance.density_pT

Return density from p and T

### Information

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
AbsolutePressure | p |  | Pressure [Pa]
Temperature | T |  | Temperature [K]

### Outputs

Type | Name | Description
--- | --- | ---
Density | d | Density [kg/m3]

### Modelica definition

replaceable function density_pT "Return density from p and T" extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; output Density d "Density"; algorithm d := density(setState_pTX( p, T, fill(0, 0))); end density_pT;