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::filmPyrolysisVelocityCoupledFvPatchVectorField
28 Velocity boundary condition for patches on the primary region:
30 - where the film height > height threshold value:
31 apply film surface velocity values
33 apply pyrolysis out-gassing velocity values
36 filmPyrolysisVelocityCoupledFvPatchVectorField.C
38 \*---------------------------------------------------------------------------*/
40 #ifndef filmPyrolysisVelocityCoupledFvPatchVectorField_H
41 #define filmPyrolysisVelocityCoupledFvPatchVectorField_H
43 #include "fixedValueFvPatchFields.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class filmPyrolysisVelocityCoupledFvPatchVectorField Declaration
52 \*---------------------------------------------------------------------------*/
54 class filmPyrolysisVelocityCoupledFvPatchVectorField
56 public fixedValueFvPatchVectorField
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("filmPyrolysisVelocityCoupled");
78 //- Construct from patch and internal field
79 filmPyrolysisVelocityCoupledFvPatchVectorField
82 const DimensionedField<vector, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 filmPyrolysisVelocityCoupledFvPatchVectorField
89 const DimensionedField<vector, volMesh>&,
93 //- Construct by mapping given
94 // filmPyrolysisVelocityCoupledFvPatchVectorField onto a new patch
95 filmPyrolysisVelocityCoupledFvPatchVectorField
97 const filmPyrolysisVelocityCoupledFvPatchVectorField&,
99 const DimensionedField<vector, volMesh>&,
100 const fvPatchFieldMapper&
103 //- Construct as copy
104 filmPyrolysisVelocityCoupledFvPatchVectorField
106 const filmPyrolysisVelocityCoupledFvPatchVectorField&
109 //- Construct and return a clone
110 virtual tmp<fvPatchVectorField> clone() const
112 return tmp<fvPatchVectorField>
114 new filmPyrolysisVelocityCoupledFvPatchVectorField(*this)
118 //- Construct as copy setting internal field reference
119 filmPyrolysisVelocityCoupledFvPatchVectorField
121 const filmPyrolysisVelocityCoupledFvPatchVectorField&,
122 const DimensionedField<vector, volMesh>&
125 //- Construct and return a clone setting internal field reference
126 virtual tmp<fvPatchVectorField> clone
128 const DimensionedField<vector, volMesh>& iF
131 return tmp<fvPatchVectorField>
133 new filmPyrolysisVelocityCoupledFvPatchVectorField(*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 // ************************************************************************* //