39 namespace regionModels
41 namespace thermalBaffleModels
96 forAll(ppCoupled, localFacei)
150 const word& modelType,
201 const word& modelType,
256 void thermalBaffle::init()
266 <<
"the boundary field of Qs is " 267 << Qsb <<
" and " <<
nl const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
autoPtr< solidThermo > thermo_
Solid thermo.
thermalBaffle(const word &modelType, const fvMesh &mesh)
Construct from components.
volScalarField Qs_
Surface energy source / [J/m2/s].
#define forAll(list, i)
Loop across all elements in list.
thermalBaffleModel(const fvMesh &mesh)
Construct null from mesh.
dimensionedScalar delta_
Baffle mesh thickness.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimArea
autoPtr< radiationModel > radiation_
Pointer to radiation model.
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)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label nNonOrthCorr_
Number of non orthogonal correctors.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
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.
static autoPtr< solidThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
bool constantThickness_
Is thickness constant.
void size(const label)
Override size to be inconsistent with allocated storage.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
scalarField thickness_
Baffle physical thickness.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const Time & time() const
Return the reference to the time database.
static autoPtr< radiationModel > New(const volScalarField &T)
Return a reference to the selected radiation model.
Macros for easy insertion into run-time selection tables.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
volScalarField & h_
Enthalpy/internal energy.
Switch moveMesh_
Flag to allow mesh movement.
const dimensionSet dimTime
virtual void evolveRegion()
Evolve the thermal baffle.
virtual ~thermalBaffle()
Destructor.
Type gSum(const FieldField< Field, Type > &f)
virtual const volScalarField & kappaRad() const
Return solid absorptivity [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 string.
#define DebugInFunction
Report an information message using Foam::Info.
labelListList boundaryFaceCells_
Global cell IDs.
const dictionary & solution() const
Return the solution dictionary.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
const Type & value() const
Return const reference to value.
const fvMesh & regionMesh() const
Return the region mesh database.
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.
virtual const tmp< volScalarField > Cp() const
Return the film specific heat capacity [J/kg/K].
Calculate the divergence of the given field.
virtual bool read()
Read control parameters IO dictionary.
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
Base-class for solid thermodynamic properties.
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
const dimensionSet dimEnergy
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.
virtual const volScalarField & T() const
Return temperature [K].
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const dimensionSet dimVolume
dimensioned< scalar > mag(const dimensioned< Type > &)
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].
const labelList & intCoupledPatchIDs() const
Return the list of patch IDs internally coupled with the.
A patch is a list of labels that address the faces in the global face list.
virtual void info()
Provide some feedback.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual const volScalarField & rho() const
Return density [Kg/m^3].
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.