thermalShellModel.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2019-2021 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28#include "thermalShellModel.H"
29#include "faMesh.H"
30#include "fvMesh.H"
31#include "fvPatchFields.H"
32
33// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34
35namespace Foam
36{
37namespace regionModels
38{
39
40// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41
43
45
46// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
47
49(
50 const word& modelType,
51 const fvPatch& p,
52 const dictionary& dict
53)
54:
55 regionFaModel(p, "thermalShell", modelType, dict, true),
56 TName_(dict.get<word>("T")),
57 Tp_(p.boundaryMesh().mesh().lookupObject<volScalarField>(TName_)),
58 T_
59 (
61 (
62 "Ts_" + regionName_,
63 p.boundaryMesh().mesh().time().timeName(),
65 IOobject::MUST_READ,
66 IOobject::AUTO_WRITE
67 ),
68 regionMesh()
69 ),
70 faOptions_(Foam::fa::options::New(p))
71{
72 if (!faOptions_.optionList::size())
73 {
74 Info << "No finite area options present" << endl;
75 }
76}
77
78
79// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
80
82{}
83
84
85// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
86
87} // End namespace regionModels
88} // End namespace Foam
89
90// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
Definition: boundaryMesh.H:63
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:71
Base class for area region models.
Foam::fa::options & faOptions_
Pointer to faOptions.
virtual void preEvolveRegion()
Pre-evolve region.
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
volScalarField & p
dynamicFvMesh & mesh
word timeName
Definition: getTimeIndex.H:3
Namespace for OpenFOAM.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
dictionary dict