Mordicus.Modules.Safran.Containers.ConstitutiveLaws.ThermalConstitutiveLaw module

class Mordicus.Modules.Safran.Containers.ConstitutiveLaws.ThermalConstitutiveLaw.ThermalConstitutiveLaw(set)[source]

Bases: ConstitutiveLawBase

Class containing a ThermalConstitutiveLaw thermal capacity (in J.K-1.kg-1) and thermal conductivity (in W.K-1.m-1) are modeled as piecewise linear functions of the temperature

capacityTemp

temperature values on which thermal capacities are provided

Type

np.ndarray or list of floats

capacityFunction

thermal capacity as a piecewise linear functions of the temperature

Type

scipy.interpolate.interp1d

internalEnergyFunctions

internal energy modeled as a set of piecewise linear functions of the temperature up to a constant

Type

list of scipy.interpolate.interp1d

internalEnergyConstants

additive constants associated to internalEnergyFunctions

Type

np.ndarray or list of floats

conductivityFunction

thermal conductivity as a piecewise linear functions of the temperature

Type

scipy.interpolate.interp1d

behavior

name of the model behavior

Type

str

ComputeCapacity(temperature)[source]

Computes the thermal capacity for a given temperature value

Parameters

temperature (float) – temperature at which the capacity is computed

Returns

thermal capacity

Return type

float

ComputeConductivity(temperature)[source]

Computes the thermal conductivity for a given temperature value

Parameters

temperature (float) – temperature at which the conductivity is computed

Returns

thermal conductivity

Return type

float

ComputeInternalEnergy(temperature)[source]

Computes the internal energy for a given temperature value

Parameters

temperature (float) – temperature at which the conductivity is computed

Returns

internal energy

Return type

float

ComputeInternalEnergyVectorized(temperature)[source]

Computes the internal energy for a set of given temperature values

Notes

Out of bounds: we take for internal energy the constant value of the bound, not extrapolate the primitive

Parameters

temperature (np.ndarray or list of floats) – temperature values at which the internal energy is computed

Returns

set of internal energy values

Return type

np.ndarray of floats

SetBehavior(behavior)[source]

Sets the name of the model behavior

Parameters

behavior (str) – name of the model behavior

SetThermalCapacity(capacityTemp, capacityVal)[source]

Sets the model of thermal capacity

Parameters
  • capacityTemp (np.ndarray or list of floats) – temperature values on which thermal capacity are provided

  • capacityVal (np.ndarray or list of floats) – thermal capacity values on corresponding temperature values

SetThermalConductivity(conductivityTemp, conductivityVal)[source]

Sets the model of thermal conductivity

Parameters
  • conductivityTemp (np.ndarray or list of floats) – temperature values on which thermal conductivity values are provided

  • conductivityVal (np.ndarray or list of floats) – thermal conductivity values on corresponding temperature values