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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "fixedValueFvPatchFieldTemplate.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "fvPatchFieldMapper.H"
29 #include "volFields.H"
30 #include "surfaceFields.H"
31 //{{{ begin codeInclude
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * //
48 // * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
55 // unique function name that can be checked if the correct library version
57 void ${typeName}_${SHA1sum}(bool load)
61 // code that can be explicitly executed after loading
65 // code that can be explicitly executed before unloading
70 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
72 makeRemovablePatchTypeField
75 ${typeName}FixedValueFvPatch${FieldType}
79 const char* const ${typeName}FixedValueFvPatch${FieldType}::SHA1sum =
83 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
85 ${typeName}FixedValueFvPatch${FieldType}::
86 ${typeName}FixedValueFvPatch${FieldType}
89 const DimensionedField<${TemplateType}, volMesh>& iF
92 fixedValueFvPatchField<${TemplateType}>(p, iF)
94 if (${verbose:-false})
96 Info<<"construct ${typeName} sha1: ${SHA1sum}"
97 " from patch/DimensionedField\n";
102 ${typeName}FixedValueFvPatch${FieldType}::
103 ${typeName}FixedValueFvPatch${FieldType}
105 const ${typeName}FixedValueFvPatch${FieldType}& ptf,
107 const DimensionedField<${TemplateType}, volMesh>& iF,
108 const fvPatchFieldMapper& mapper
111 fixedValueFvPatchField<${TemplateType}>(ptf, p, iF, mapper)
113 if (${verbose:-false})
115 Info<<"construct ${typeName} sha1: ${SHA1sum}"
116 " from patch/DimensionedField/mapper\n";
121 ${typeName}FixedValueFvPatch${FieldType}::
122 ${typeName}FixedValueFvPatch${FieldType}
125 const DimensionedField<${TemplateType}, volMesh>& iF,
126 const dictionary& dict
129 fixedValueFvPatchField<${TemplateType}>(p, iF, dict)
131 if (${verbose:-false})
133 Info<<"construct ${typeName} sha1: ${SHA1sum}"
134 " from patch/dictionary\n";
139 ${typeName}FixedValueFvPatch${FieldType}::
140 ${typeName}FixedValueFvPatch${FieldType}
142 const ${typeName}FixedValueFvPatch${FieldType}& ptf
145 fixedValueFvPatchField<${TemplateType}>(ptf)
147 if (${verbose:-false})
149 Info<<"construct ${typeName} sha1: ${SHA1sum}"
155 ${typeName}FixedValueFvPatch${FieldType}::
156 ${typeName}FixedValueFvPatch${FieldType}
158 const ${typeName}FixedValueFvPatch${FieldType}& ptf,
159 const DimensionedField<${TemplateType}, volMesh>& iF
162 fixedValueFvPatchField<${TemplateType}>(ptf, iF)
164 if (${verbose:-false})
166 Info<<"construct ${typeName} sha1: ${SHA1sum} "
167 "as copy/DimensionedField\n";
172 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
174 ${typeName}FixedValueFvPatch${FieldType}::
175 ~${typeName}FixedValueFvPatch${FieldType}()
177 if (${verbose:-false})
179 Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
184 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
186 void ${typeName}FixedValueFvPatch${FieldType}::updateCoeffs()
193 if (${verbose:-false})
195 Info<<"updateCoeffs ${typeName} sha1: ${SHA1sum}\n";
202 this->fixedValueFvPatchField<${TemplateType}>::updateCoeffs();
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
208 } // End namespace Foam
210 // ************************************************************************* //