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::filmPyrolysisTemperatureCoupledFvPatchScalarField
28 Temperature boundary condition for patches on the primary region:
30 - where the film height > height threshold value:
31 apply film surface temperature values
33 apply pyrolysis surface temperature values
36 filmPyrolysisTemperatureCoupledFvPatchScalarField.C
38 \*---------------------------------------------------------------------------*/
40 #ifndef filmPyrolysisTemperatureCoupledFvPatchScalarField_H
41 #define filmPyrolysisTemperatureCoupledFvPatchScalarField_H
43 #include "fixedValueFvPatchFields.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class filmPyrolysisTemperatureCoupledFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class filmPyrolysisTemperatureCoupledFvPatchScalarField
56 public fixedValueFvPatchScalarField
60 //- Name of flux field
63 //- Name of density field
66 //- Film height threshold beyond which it is considered 'wet'
72 //- Runtime type information
73 TypeName("filmPyrolysisTemperatureCoupled");
78 //- Construct from patch and internal field
79 filmPyrolysisTemperatureCoupledFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 filmPyrolysisTemperatureCoupledFvPatchScalarField
89 const DimensionedField<scalar, volMesh>&,
93 //- Construct by mapping given
94 // filmPyrolysisTemperatureCoupledFvPatchScalarField onto a new patch
95 filmPyrolysisTemperatureCoupledFvPatchScalarField
97 const filmPyrolysisTemperatureCoupledFvPatchScalarField&,
99 const DimensionedField<scalar, volMesh>&,
100 const fvPatchFieldMapper&
103 //- Construct as copy
104 filmPyrolysisTemperatureCoupledFvPatchScalarField
106 const filmPyrolysisTemperatureCoupledFvPatchScalarField&
109 //- Construct and return a clone
110 virtual tmp<fvPatchScalarField> clone() const
112 return tmp<fvPatchScalarField>
114 new filmPyrolysisTemperatureCoupledFvPatchScalarField(*this)
118 //- Construct as copy setting internal field reference
119 filmPyrolysisTemperatureCoupledFvPatchScalarField
121 const filmPyrolysisTemperatureCoupledFvPatchScalarField&,
122 const DimensionedField<scalar, volMesh>&
125 //- Construct and return a clone setting internal field reference
126 virtual tmp<fvPatchScalarField> clone
128 const DimensionedField<scalar, volMesh>& iF
131 return tmp<fvPatchScalarField>
133 new filmPyrolysisTemperatureCoupledFvPatchScalarField(*this, iF)
142 //- Return the name of phi
143 const word& phiName() const
148 //- Return reference to the name of phi to allow adjustment
154 //- Return the name of rho
155 const word& rhoName() const
160 //- Return reference to the name of rho to allow adjustment
167 //- Update the coefficients associated with the patch field
168 virtual void updateCoeffs();
171 virtual void write(Ostream&) const;
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 } // End namespace Foam
179 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 // ************************************************************************* //