39 namespace regionModels
41 namespace thermalBaffleModels
71 Info<<
"thermalBaffle::solveEnergy()" <<
endl;
105 const polyPatch& ppCoupled = rbm[patchI];
107 forAll(ppCoupled, localFaceI)
159 thermalBaffle::thermalBaffle
161 const word& modelType,
220 thermalBaffle::thermalBaffle
222 const word& modelType,
287 void thermalBaffle::init()
297 <<
"the boundary field of Qs is " 298 << Qsb <<
" and " <<
nl 361 const label patchI = coupledPatches[i];
369 *
thermo_->alpha().boundaryField()[patchI]
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf, const surfaceScalarField &faceFlux, Istream &schemeData)
virtual void evolveRegion()
Evolve the thermal baffle.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
labelListList boundaryFaceCells_
Global cell IDs.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
bool oneD_
Is it one dimension.
Mesh data needed to do the Finite Volume discretisation.
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
virtual const solidThermo & thermo() const
Return const reference to the solidThermo.
virtual bool read()
Read control parameters from dictionary.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Ostream & indent(Ostream &os)
Indent stream.
virtual tmp< volScalarField > a(const label bandI=0) const
Absorption coefficient (net)
virtual void info()
Provide some feedback.
static autoPtr< solidThermo > New(const fvMesh &, const word &phaseName=word::null)
Return a pointer to a new solidThermo created from.
const dimensionSet dimArea(sqr(dimLength))
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
defineTypeNameAndDebug(noThermo, 0)
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
volScalarField & h_
Enthalpy/internal energy.
const dimensionSet dimEnergy
const fvMesh & regionMesh() const
Return the region mesh database.
addToRunTimeSelectionTable(thermalBaffleModel, noThermo, mesh)
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const Time & time() const
Return the reference to the time database.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
volScalarField Qs_
Surface energy source / [J/m2/s].
label readLabel(Istream &is)
A patch is a list of labels that address the faces in the global face list.
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
virtual const volScalarField & kappa() const
Return thermal conductivity [W/m/K].
Type gSum(const FieldField< Field, Type > &f)
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
autoPtr< solidThermo > thermo_
Solid thermo.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool constantThickness_
Is thickness constant.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual const volScalarField & T() const
Return temperature [K].
virtual const volScalarField & kappaRad() const
Return solid absortivity [1/m].
Fundamental solid thermodynamic properties.
label nNonOrthCorr_
Number of non orthogonal correctors.
Macros for easy insertion into run-time selection tables.
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
solverPerformance solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const absorptionEmissionModel & absorptionEmission() const
Access to absorptionEmission model.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const dictionary & solution() const
Return the solution dictionary.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const cellShapeList & cells
Calculate the divergence of the given field.
Traits class for primitives.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Switch moveMesh_
Flag to allow mesh movement.
const dimensionSet dimVolume(pow3(dimLength))
virtual const volScalarField & rho() const
Return density [Kg/m3].
volScalarField Q_
Volumetric energy source / [J/m3/s].
virtual bool read()
Read control parameters IO dictionary.
void solveEnergy()
Solve energy equation.
virtual void preEvolveRegion()
Pre-evolve thermal baffle.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
scalarField thickness_
Baffle physical thickness.
virtual ~thermalBaffle()
Destructor.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
This function object calculates and outputs the second invariant of the velocity gradient tensor [1/s...
dimensionedScalar delta_
Baffle mesh thickness.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A class for managing temporary objects.
const Type & value() const
Return const reference to value.
static autoPtr< radiationModel > New(const volScalarField &T)
Return a reference to the selected radiation model.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.