Skip to content

Data for Swedish Diabase.

cp = 1272 (specific heat capacity at constant pressure) rho = 3007 (density) k = 1.75 (thermal conductivity)

T(h, p=None)

Temperature as function of mass specific enthalpy at 1 atm (fit assumes constant cp).

Parameters:

Name Type Description Default
h float

Specific enthalpy in J/kg

required
p float

Pressure in Pa

None

Returns:

Type Description
float

Temperature in kelvin

Source code in openterrace/bed_substances/swedish_diabase.py
def T(h:float, p:float=None) -> float:
    """Temperature as function of mass specific enthalpy at 1 atm (fit assumes constant cp).

    Args:
        h (float): Specific enthalpy in J/kg
        p (float): Pressure in Pa

    Returns:
        Temperature in kelvin
    """
    return 1/1272*h

cp(h, p=None)

Specific heat capacity as function of mass specific enthalpy at 1 atm (fit assumes constant specific heat capacity).

Parameters:

Name Type Description Default
h float

Specific enthalpy in J/kg

required
p float

Pressure in Pa

None

Returns:

Name Type Description
float float

Specific heat capacity in J/(kg K)

Source code in openterrace/bed_substances/swedish_diabase.py
def cp(h:float, p:float=None) -> float:
    """Specific heat capacity as function of mass specific enthalpy at 1 atm (fit assumes constant specific heat capacity).

    Args:
        h (float): Specific enthalpy in J/kg
        p (float): Pressure in Pa

    Returns:
        float: Specific heat capacity in J/(kg K)
    """
    return 1272*h**0

h(T)

Mass specific enthalpy as function of temperature at 1 atm (fit assumes constant cp).

Parameters:

Name Type Description Default
T float

Temperature in K

required

Returns:

Type Description
float

Specific enthalpy in J/kg

Source code in openterrace/bed_substances/swedish_diabase.py
def h(T:float) -> float:
    """Mass specific enthalpy as function of temperature at 1 atm (fit assumes constant cp).

    Args:
        T (float): Temperature in K

    Returns:
        Specific enthalpy in J/kg
    """
    return 1272*T

k(h, p=None)

Thermal conductivity as function of mass specific enthalpy at 1 atm (fit assumes constant thermal conductivity).

Parameters:

Name Type Description Default
h float

Specific enthalpy in J/kg

required
p float

Pressure in Pa

None

Returns:

Name Type Description
float float

Thermal conductivity in W/(m K)

Source code in openterrace/bed_substances/swedish_diabase.py
def k(h:float, p:float=None) -> float:
    """Thermal conductivity as function of mass specific enthalpy at 1 atm (fit assumes constant thermal conductivity).

    Args:
        h (float): Specific enthalpy in J/kg
        p (float): Pressure in Pa

    Returns:
        float: Thermal conductivity in W/(m K)
    """
    return 1.75*h**0

rho(h, p=None)

Density as function of mass specific entahlpy at 1 atm (fit assumes constant density).

Parameters:

Name Type Description Default
h float

Specific enthalpy in J/kg

required
p float

Pressure in Pa

None

Returns:

Type Description
float

Density in kg/m^3

Source code in openterrace/bed_substances/swedish_diabase.py
def rho(h:float, p:float=None) -> float:
    """Density as function of mass specific entahlpy at 1 atm (fit assumes constant density).

    Args:
        h (float): Specific enthalpy in J/kg
        p (float): Pressure in Pa

    Returns:
        Density in kg/m^3
    """
    return 3007*h**0