47 Foam::fv::tabulatedHeatTransfer::hTable()
51 hTable_.reset(
new interpolation2DTable<scalar>(
coeffs_));
88 const word& modelType,
94 UName_(coeffs_.getOrDefault<
word>(
"U",
"U")),
95 UNbrName_(coeffs_.getOrDefault<
word>(
"UNbr",
"U")),
106 const auto& nbrMesh = mesh_.time().lookupObject<
fvMesh>(nbrRegionName());
120 htcc[i] = hTable()(
mag(
U[i]), UMagNbrMapped[i]);
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
Intermediate class for handling inter-region heat exchanges.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
2D table interpolation. The data must be in ascending order in both dimensions x and y...
tabulatedHeatTransfer(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from dictionary.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
Mesh data needed to do the Finite Volume discretisation.
virtual void calculateHtc()
Calculate the heat transfer coefficient.
Automatically write from objectRegistry::writeObject()
virtual bool read(const dictionary &dict)
Read source dictionary.
dictionary coeffs_
Dictionary containing source coefficients.