filmPyrolysisVelocityCoupledFvPatchVectorField.H
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) 2011-2016 OpenFOAM Foundation
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
26Class
27 Foam::filmPyrolysisVelocityCoupledFvPatchVectorField
28
29Description
30 This boundary condition is designed to be used in conjunction with surface
31 film and pyrolysis modelling.
32
33 It provides a velocity boundary condition for patches on the primary region
34 based on whether the patch is seen to be 'wet', retrieved from the film
35 alpha field.
36 - if the patch is wet, the velocity is set using the film velocity
37 - otherwise, it is set using pyrolysis out-gassing velocity
38
39 Example of the boundary condition specification:
40 \verbatim
41 <patchName>
42 {
43 type filmPyrolysisVelocityCoupled;
44 phi phi; // name of flux field (default = phi)
45 rho rho; // name of density field (default = rho)
46 deltaWet 1e-4; // threshold height for 'wet' film
47 value uniform (0 0 0); // initial velocity / [m/s]
48 }
49 \endverbatim
50
51SourceFiles
52 filmPyrolysisVelocityCoupledFvPatchVectorField.C
53
54\*---------------------------------------------------------------------------*/
55
56#ifndef filmPyrolysisVelocityCoupledFvPatchVectorField_H
57#define filmPyrolysisVelocityCoupledFvPatchVectorField_H
58
60
61// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62
63namespace Foam
64{
65
66/*---------------------------------------------------------------------------*\
67 Class filmPyrolysisVelocityCoupledFvPatchVectorField Declaration
68\*---------------------------------------------------------------------------*/
71:
72 public fixedValueFvPatchVectorField
73{
74 // Private data
75
76 //- Name of film region
77 word filmRegionName_;
78
79 //- Name of pyrolysis region
80 word pyrolysisRegionName_;
81
82 //- Name of flux field
83 word phiName_;
84
85 //- Name of density field
86 word rhoName_;
87
88
89public:
90
91 //- Runtime type information
92 TypeName("filmPyrolysisVelocityCoupled");
93
94
95 // Constructors
96
97 //- Construct from patch and internal field
99 (
100 const fvPatch&,
102 );
103
104 //- Construct from patch, internal field and dictionary
106 (
107 const fvPatch&,
109 const dictionary&
110 );
111
112 //- Construct by mapping given
113 // filmPyrolysisVelocityCoupledFvPatchVectorField onto a new patch
115 (
117 const fvPatch&,
119 const fvPatchFieldMapper&
120 );
121
122 //- Construct as copy
124 (
126 );
127
128 //- Construct and return a clone
129 virtual tmp<fvPatchVectorField> clone() const
130 {
132 (
134 );
135 }
136
137 //- Construct as copy setting internal field reference
139 (
142 );
143
144 //- Construct and return a clone setting internal field reference
146 (
148 ) const
149 {
151 (
153 );
154 }
155
156
157 // Member functions
158
159 // Access
160
161 //- Return the name of phi
162 const word& phiName() const
163 {
164 return phiName_;
165 }
166
167 //- Return reference to the name of phi to allow adjustment
168 word& phiName()
169 {
170 return phiName_;
171 }
172
173 //- Return the name of rho
174 const word& rhoName() const
175 {
176 return rhoName_;
177 }
178
179 //- Return reference to the name of rho to allow adjustment
180 word& rhoName()
181 {
182 return rhoName_;
183 }
184
185
186 //- Update the coefficients associated with the patch field
187 virtual void updateCoeffs();
188
189 //- Write
190 virtual void write(Ostream&) const;
191};
192
193
194// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195
196} // End namespace Foam
197
198// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199
200#endif
201
202// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
This boundary condition is designed to be used in conjunction with surface film and pyrolysis modelli...
word & phiName()
Return reference to the name of phi to allow adjustment.
virtual tmp< fvPatchVectorField > clone(const DimensionedField< vector, volMesh > &iF) const
Construct and return a clone setting internal field reference.
word & rhoName()
Return reference to the name of rho to allow adjustment.
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
TypeName("filmPyrolysisVelocityCoupled")
Runtime type information.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:71
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73