Skip to content

readTemperature

Description

The readTemperature thermal solver class in OFFBEAT reads the temperature T field from the time-step folders stored in the constant/timeDependentInput/ sub-folder. If the T file is present in the corresponding time folder for a given time step, the temperature field will be set accordingly. Otherwise, the T field remains constant.

Note

The readTemperature class provides a second convenient way to (explicitly) couple OFFBEAT with an external solver that separately generates (before running OFFBEAT) the T field. To use this class, simply place the T files generated by the external solver in the corresponding time folders within the constant/timeDependentInput/ sub-folder, and OFFBEAT will read and use that temperature field.

Warning

This class might be redundant, as the same functionalities might be achieved using standard OpenFOAM functionObjects.


Options

As a thermalSubSolver class, readTemperature allows the user to specify a few additional parameters in the thermalOptions sub-dictionary located within the solverDict.

Parameters in thermalOptions:

heatFluxSummary It activates the calculation of the heat flowing out from every surface of the domain, printing this information on the terminal. It is set to false by default.
calculateEnthalpy It activates the calculation of the enthalpy deposited in the fuel materials (useful for RIA cases). It is set to false by default.


Usage

Here is a code snippet of the solverDict to be used for activating the readTemperature thermal class:

thermalSolver readTemperature;

thermalOptions
{
    // Print summary of boundary-heat fluxes at each iteration
    heatFluxSummary false;

    // Activate calculation of enthalpy - false by default
    calculateEnthalpy false;
}