41 namespace regionModels
43 namespace thermalBaffleModels
104 const polyPatch& ppCoupled = rbm[patchi];
106 forAll(ppCoupled, localFacei)
158 thermalBaffle::thermalBaffle
160 const word& modelType,
166 nNonOrthCorr_(
solution().
get<label>(
"nNonOrthCorr")),
199 dict.subDict(
"radiation"),
209 thermalBaffle::thermalBaffle
211 const word& modelType,
216 nNonOrthCorr_(
solution().
get<label>(
"nNonOrthCorr")),
266 void thermalBaffle::init()
276 <<
"the boundary field of qs is " 277 << qsb <<
" and " <<
nl 340 const label patchi = coupledPatches[i];
348 *
thermo_->alpha().boundaryField()[patchi]
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
autoPtr< solidThermo > thermo_
Solid thermo.
const Type & value() const noexcept
Return const reference to value.
void size(const label n)
Older name for setAddressableSize.
fvMatrix< scalar > fvScalarMatrix
dimensionedScalar delta_
Baffle mesh thickness.
Ostream & indent(Ostream &os)
Indent stream.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
void solveEnergy()
Solve energy equation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label nNonOrthCorr_
Number of non orthogonal correctors.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool oneD_
Is it one dimension.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
constexpr char nl
The newline '\n' character (0x0a)
bool constantThickness_
Is thickness constant.
scalarField thickness_
Baffle physical thickness.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
const labelList & intCoupledPatchIDs() const noexcept
List of patch IDs internally coupled with the primary region.
volScalarField & h_
Enthalpy/internal energy.
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...
Switch moveMesh_
Flag to allow mesh movement.
const dimensionSet dimVolume(pow3(dimLength))
virtual void evolveRegion()
Evolve the thermal baffle.
virtual ~thermalBaffle()
Destructor.
Type gSum(const FieldField< Field, Type > &f)
virtual const volScalarField & kappaRad() const
Return solid absortivity [1/m].
virtual void preEvolveRegion()
Pre-evolve thermal baffle.
volScalarField Q_
Volumetric energy source / [J/m3/s].
addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh)
A class for handling words, derived from Foam::string.
#define DebugInFunction
Report an information message using Foam::Info.
labelListList boundaryFaceCells_
Global cell IDs.
label size() const noexcept
The number of elements in the list.
const dictionary & solution() const
Return the solution dictionary.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
const fvMesh & regionMesh() const
Return the region mesh database.
Top level model for radiation modelling.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
Calculate the divergence of the given field.
virtual bool read()
Read control parameters IO dictionary.
Fundamental solid thermodynamic properties.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimEnergy
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual bool read()
Read control parameters from dictionary.
defineTypeNameAndDebug(noThermo, 0)
Mesh data needed to do the Finite Volume discretisation.
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual const volScalarField & T() const
Return temperature [K].
A special matrix type and solver, designed for finite volume solutions of scalar equations.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
Selector class for relaxation factors, solver type and solution.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
A class for managing temporary objects.
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
A patch is a list of labels that address the faces in the global face list.
virtual void info()
Provide some feedback.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
virtual const volScalarField & rho() const
Return density [Kg/m3].
const Time & time() const noexcept
Return the reference to the time database.
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
const dimensionSet dimArea(sqr(dimLength))
volScalarField qs_
Surface energy source / [J/m2/s].
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
static constexpr const zero Zero
Global zero (0)