genericROM.Containers.Loadings.Radiation module

class Radiation(solutionName, set)[source]

Bases: LoadingBase

Class containing a Loading of type radiation boundary condition for thermal problems.

TextTimes

time values on which external temperature values are provided

Type:

np.ndarray or list of floats

TextValues

external temperature values at the corresponding time values

Type:

np.ndarray or list of floats

StefanBoltzmannConstant

Stefan-Boltzmann constant used for the boundary condition computation

Type:

float

reducedPhiT

of size (numberOfModes,) containing the precomputed vector “red” for deriving the convection heat flux reduced external forces contribution is the form: stefanBoltzmannConstant*(Text**4)*red

Type:

numpy.ndarray

ComputeContributionToReducedExternalForces(time)[source]

Computes and returns the reduced external forces contribution of the loading

Parameters:

time (float)

Returns:

of size (numberOfModes,)

Return type:

np.ndarray

GetTextAtTime(time: float) float[source]

Computes and return Text at time, using PieceWiseLinearInterpolation

Parameters:

time (float)

Returns:

Text at time

Return type:

float

ReduceLoading(mesh, problemData, reducedOrderBases, operatorCompressionData)[source]

Computes and sets the reduced representation of the loading

Parameters:
  • mesh (Muscat.Containers.Mesh) – mesh of the high-fidelity model

  • problemData (ProblemData) – problemData containing the loading

  • reducedOrderBases (dict(str: np.ndarray)) – dictionary with solutionNames (str) as keys and reducedOrderBases (np.ndarray of size (numberOfModes, numberOfDOFs)) as values

  • operatorCompressionData (dict(str: custom_data_structure)) – not used in this loading dictionary with solutionNames (str) as keys and data structure generated by the operator compression step as values

SetStefanBoltzmannConstant(stefanBoltzmannConstant)[source]

Sets stefanBoltzmannConstant

Parameters:

stefanBoltzmannConstant (float) – Stefan-Boltzmann constant used for the boundary condition computation

SetText(Text)[source]

Sets TextTimes and TextValues

Parameters:

Text (dict) – dictionary with time steps (float) as keys and the values of the external temperature values (float)