95 forAll(ppCoupled, localFacei)
147thermalBaffle::thermalBaffle
149 const word& modelType,
155 nNonOrthCorr_(
solution().get<label>(
"nNonOrthCorr")),
164 regionMesh().thisDb(),
177 regionMesh().thisDb(),
188 dict.subDict(
"radiation"),
198thermalBaffle::thermalBaffle
200 const word& modelType,
205 nNonOrthCorr_(
solution().get<label>(
"nNonOrthCorr")),
214 regionMesh().thisDb(),
227 regionMesh().thisDb(),
255void thermalBaffle::init()
265 <<
"the boundary field of qs is "
266 << qsb <<
" and " <<
nl
329 const label patchi = coupledPatches[i];
337 *
thermo_->alpha().boundaryField()[patchi]
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
@ NO_REGISTER
Do not request registration (bool: false).
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of entries in the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
const Type & value() const noexcept
Return const reference to value.
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
SolverPerformance< Type > solve(const dictionary &)
Solve returning the solution statistics.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
Top level model for radiation modelling.
Switch moveMesh_
Flag to allow mesh movement.
labelListList boundaryFaceCells_
Global cell IDs.
virtual bool read()
Read control parameters from dictionary.
const dictionary & solution() const
Return the solution dictionary.
const Time & time() const noexcept
Return the reference to the time database.
const fvMesh & regionMesh() const
Return the region mesh database.
const labelList & intCoupledPatchIDs() const noexcept
List of patch IDs internally coupled with the primary region.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
static autoPtr< thermalBaffleModel > New(const fvMesh &mesh)
Return a reference to the selected model.
bool constantThickness_
Is thickness constant.
scalarField thickness_
Baffle physical thickness.
bool oneD_
Is it one dimension.
dimensionedScalar delta_
Baffle mesh thickness.
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
virtual const volScalarField & rho() const
Return density [Kg/m3].
volScalarField qs_
Surface energy source / [J/m2/s].
volScalarField & h_
Enthalpy/internal energy.
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
virtual const volScalarField & T() const
Return temperature [K].
void solveEnergy()
Solve energy equation.
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
volScalarField Q_
Volumetric energy source / [J/m3/s].
tmp< scalarField > he(const scalarField &p, const scalarField &T, const label patchi) const
Return sensible enthalpy/internal energy.
virtual void preEvolveRegion()
Pre-evolve thermal baffle.
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
virtual const volScalarField & kappaRad() const
Return solid absortivity [1/m].
autoPtr< solidThermo > thermo_
Solid thermo.
virtual void info()
Provide some feedback.
virtual ~thermalBaffle()
Destructor.
label nNonOrthCorr_
Number of non orthogonal correctors.
virtual bool read()
Read control parameters IO dictionary.
virtual void evolveRegion()
Evolve the thermal baffle.
Fundamental solid thermodynamic properties.
Selector class for relaxation factors, solver type and solution.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Calculate the divergence of the given field.
#define DebugInFunction
Report an information message using Foam::Info.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
Namespace for radiation modelling.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Type gSum(const FieldField< Field, Type > &f)
List< label > labelList
A List of labels.
const dimensionSet dimEnergy
fvMatrix< scalar > fvScalarMatrix
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
messageStream Info
Information stream (stdout output on master, null elsewhere).
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const dimensionSet dimVolume(pow3(dimLength))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fvPatchField< scalar > fvPatchScalarField
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.