1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::temperatureThermoBaffleFvPatchScalarField
28 Thermal bounday applied to both sides of the thermal baffle region and
29 in the primary region.
30 The primary region creates and evolves the thermal baffle heat transfer
31 equation. The solid thermo and baffle dictionaries are located on the
34 type compressible::temperatureThermoBaffle;
42 // Thermo baffle model
43 thermoBaffleModel thermoBaffle2D;
44 regionName baffleRegion;
53 thermoType constSolidThermo;
55 constSolidThermoCoeffs
58 rho rho [1 -3 0 0 0 0 0] 80;
59 Cp Cp [0 2 -2 -1 0 0 0] 15;
60 K K [1 1 -3 -1 0 0 0] 0.01;
62 //- radiative properties
63 kappa kappa [0 -1 0 0 0 0 0] 0;
64 sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
65 emissivity emissivity [0 0 0 0 0 0 0] 1;
67 //- chemical properties
68 Hf Hf [0 2 -2 0 0 0 0] 0;
75 temperatureThermoBaffleFvPatchScalarField.C
77 \*---------------------------------------------------------------------------*/
79 #ifndef temperatureThermoBaffleFvPatchScalarField_H
80 #define temperatureThermoBaffleFvPatchScalarField_H
84 #include "regionModel.H"
85 #include "thermoBaffleModel.H"
86 #include "turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H"
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 namespace compressible
96 /*---------------------------------------------------------------------------*\
97 Class temperatureThermoBaffleFvPatchScalarField Declaration
98 \*---------------------------------------------------------------------------*/
100 class temperatureThermoBaffleFvPatchScalarField
102 public turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
106 //- Is the baffle owner
110 autoPtr<regionModels::thermoBaffleModels::thermoBaffleModel> baffle_;
112 //- Solid thermo type
113 word solidThermoType_;
118 //- Runtime type information
119 TypeName("compressible::temperatureThermoBaffle");
124 //- Construct from patch and internal field
125 temperatureThermoBaffleFvPatchScalarField
128 const DimensionedField<scalar, volMesh>&
131 //- Construct from patch, internal field and dictionary
132 temperatureThermoBaffleFvPatchScalarField
135 const DimensionedField<scalar, volMesh>&,
139 //- Construct by mapping given
140 // temperatureThermoBaffleFvPatchScalarField onto a new patch
141 temperatureThermoBaffleFvPatchScalarField
143 const temperatureThermoBaffleFvPatchScalarField&,
145 const DimensionedField<scalar, volMesh>&,
146 const fvPatchFieldMapper&
150 //- Construct and return a clone
151 virtual tmp<fvPatchScalarField> clone() const
153 return tmp<fvPatchScalarField>
155 new temperatureThermoBaffleFvPatchScalarField(*this)
159 //- Construct as copy setting internal field reference
160 temperatureThermoBaffleFvPatchScalarField
162 const temperatureThermoBaffleFvPatchScalarField&,
163 const DimensionedField<scalar, volMesh>&
166 //- Construct and return a clone setting internal field reference
167 virtual tmp<fvPatchScalarField> clone
169 const DimensionedField<scalar, volMesh>& iF
172 return tmp<fvPatchScalarField>
174 new temperatureThermoBaffleFvPatchScalarField(*this, iF)
184 //- Map (and resize as needed) from self given a mapping object
187 const fvPatchFieldMapper&
190 //- Reverse map the given fvPatchField onto this fvPatchField
193 const fvPatchScalarField&,
198 //- Update the coefficients associated with the patch field
199 virtual void updateCoeffs();
202 virtual void write(Ostream&) const;
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
208 } // End namespace compressible
209 } // End namespace Foam
211 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
216 // ************************************************************************* //