Exported Functions

Exported Functions

Index

Documentation

ModiaMedia.densityMethod.
density(state)

Return density from state::ThermodynamicState in [kg/m^3]

source
density_pTX(medium,p,T,X)

Return density for medium::AbstractMedium from p, T, and X or Xi in [kg/m^3]

source
density_ph(medium,p,h)

Return density in [kg/m^3] for medium::PureSubstance from pressure p [Pa] and specific enthalpy h [J/kg].

source
density_phX(medium,p,h,X)

Return density for medium::AbstractMedium from p, h, and X or Xi in [kg/m^3]

source
dynamicViscosity(state)

Return dynamic viscosity from state::ThermodynamicState in [Pa*s]

source
R = gasConstant(state)

Return gas constant of MixtureMedium from state::MixtureThermodynamicState in [J/mol.K]

source
Medium = getMedium(name::AbstractString)

Return Medium object from medium name. Possible values of argument name can be inquired via listMedia() (Available media).

Examples

medium = getMedium("SimpleAir")
source
isenthalpicState!(state_b,state_a,dp)

Update state_b by an isenthalpic transformation of state_a with pressure drop dp:

pressure(state_b)         = pressure(state_a) + dp
specificEnthalpy(state_b) = specificEnthalpy(state_a)
state_b.X                 = state_a.X
source
state_b = isenthalpicState(state_a,dp)

Return state_b by an isenthalpic transformation of state_a with pressure drop dp:

pressure(state_b)         = pressure(state_a) + dp
specificEnthalpy(state_b) = specificEnthalpy(state_a)
state_b.X                 = state_a.X
source
listMedia()

List available media of ModiaMedia.

source
pressure(state)

Return pressure from state::ThermodynamicState in [Pa]

source
pressure_dT(medium,d,T)

Return pressure in [Pa] for medium::PureSubstance from density d in [kg/m^3] and temperature T [K].

source
saturationPressureOfLiquidWater(Tsat)

Return saturation pressure of liquid water as a function of saturation temperature Tsat in the range of 273.16 to 647.096 K

source
saturationPressureOfWater(Tsat)

Return saturation pressure of water as a function of saturation temperature Tsat between 190 K and 647.096 K

source
setState_dT!(state, d,T)

Update the state::ThermodynamicState of a PureSubstance medium with density d [kg/m^3] and temperature T [K].

source
state = setState_dT(medium, d,T)

Generate a state object for medium medium::PureSubstance for density d [kg/m^3] and temperature T [K].

source
setState_dTX!(state, d,T,X)

Update the state::ThermodynamicState object with density d [kg/m^3], temperature T [K] and mass fractions vector X or Xi.

source
state = setState_dTX(medium, d,T,X)

Generate a state object for medium medium::AbstractMedium for density d [kg/m^3], temperature T [K] and mass fractions vector X or Xi.

source
setState_pT!(state, p,T)

Update the state::ThermodynamicState of a PureSubstance medium with pressure p [Pa] and temperature T [K].

source
state = setState_pT(medium, p,T)

Generate a state object for medium medium::PureSubstance for pressure p [Pa] and temperature T [K].

source
setState_pTX!(state, p,T,X)

Update the state::ThermodynamicState object with pressure p [Pa], temperature T [K] and mass fractions vector X or Xi.

source
state = setState_pTX(medium, p,T,X)

Generate a state object for medium medium::AbstractMedium for pressure p [Pa], temperature T [K] and mass fractions vector X or Xi.

source
setState_ph!(state, p,h)

Update the state::ThermodynamicState of a PureSubstance medium with pressure p [Pa] and specific enthalpy h [J/kg]].

source
state = setState_ph(medium, p,h)

Generate a state object for medium medium::PureSubstance for pressure p [Pa] and specific enthalpy h [J/kg].

source
setState_phX!(state, p,h,X)

Update the state::ThermodynamicState object with pressure p [Pa], specific enthalpy h [J/kg]] and mass fractions vector X or Xi.

source
state = setState_phX(medium, p,h,X)

Generate a state object for medium medium::AbstractMedium for pressure p [Pa], specific enthalpy h [J/kg]] and mass fractions vector X or Xi.

source
setState_ps!(state, p,s)

Update the state::ThermodynamicState of a PureSubstance medium with pressure p [Pa] and specific entropy s [J/(kg*K)].

source
state = setState_ps(medium, p,s)

Generate a state object for medium medium::PureSubstance for pressure p [Pa] and specific entropy s [J/(kg*K)].

source
setState_psX!(state, p,s,X)

Update the state::ThermodynamicState object with pressure p [Pa], specific entropy s [J/(kg*K)] and mass fractions vector X or Xi.

source
state = setState_psX(medium, p,s,X)

Generate a state object for medium medium::AbstractMedium for pressure p [Pa], specific entropy s [J/(kg*K)] and mass fractions vector X or Xi.

source
specificEnthalpy(state)

Return specific enthalpy from state::ThermodynamicState in [J/kg]

source
specificEnthalpy_dT(medium,d,T)

Return specific enthalpy in [J/kg] for medium::PureSubstance from density d [kg/m^3] and and temperature T [K].

source
specificEnthalpy_pTX(medium,p,T,X)

Return specific enthalpy for medium::AbstractMedium from p, T, and X or Xi in [J/kg].

source
specificHeatCapacityCp(state)

Return specific heat capacity at constant pressure from state::ThermodynamicState in [J/(kg*K)]

source
specificInternalEnergy(state)

Return specific internal energy from state::ThermodynamicState in [J/kg]

source
dict = standardCharacteristics(medium::AbstractMedium)

Return a dict::dict{AbstractString,Any} dictionary with the most important characteristics of the medium as vectors.

source
standardPlot(medium::AbstractMedium; figure=1)

Plot the standardCharacteristics(medium) of the medium.

source
sublimationPressureIce(Tsat)

Return sublimation pressure of water as a function of saturation temperature Tsat between 190 and 273.16 K

source
temperature(state)

Return temperature from state::ThermodynamicState in [K]

source
temperature_ph(medium,p,h)

Return temperature in [K] for medium::PureSubstance from pressure p [Pa] and specific enthalpy h [J/kg].

source
temperature_phX(medium,p,h,X)

Return temperature for medium::AbstractMedium from p, h, and X or Xi in [K].

source