1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "symmetryFvPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 symmetryFvPatchField<Type>::symmetryFvPatchField
40 const DimensionedField<Type, volMesh>& iF
43 basicSymmetryFvPatchField<Type>(p, iF)
48 symmetryFvPatchField<Type>::symmetryFvPatchField
50 const symmetryFvPatchField<Type>& ptf,
52 const DimensionedField<Type, volMesh>& iF,
53 const fvPatchFieldMapper& mapper
56 basicSymmetryFvPatchField<Type>(ptf, p, iF, mapper)
58 if (!isType<symmetryFvPatch>(this->patch()))
62 "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
64 " const symmetryFvPatchField<Type>& ptf,\n"
65 " const fvPatch& p,\n"
66 " const DimensionedField<Type, volMesh>& iF,\n"
67 " const fvPatchFieldMapper& mapper\n"
69 ) << "\n patch type '" << p.type()
70 << "' not constraint type '" << typeName << "'"
71 << "\n for patch " << p.name()
72 << " of field " << this->dimensionedInternalField().name()
73 << " in file " << this->dimensionedInternalField().objectPath()
74 << exit(FatalIOError);
80 symmetryFvPatchField<Type>::symmetryFvPatchField
83 const DimensionedField<Type, volMesh>& iF,
84 const dictionary& dict
87 basicSymmetryFvPatchField<Type>(p, iF, dict)
89 if (!isType<symmetryFvPatch>(p))
93 "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
95 " const fvPatch& p,\n"
96 " const Field<Type>& field,\n"
97 " const dictionary& dict\n"
100 ) << "\n patch type '" << p.type()
101 << "' not constraint type '" << typeName << "'"
102 << "\n for patch " << p.name()
103 << " of field " << this->dimensionedInternalField().name()
104 << " in file " << this->dimensionedInternalField().objectPath()
105 << exit(FatalIOError);
111 symmetryFvPatchField<Type>::symmetryFvPatchField
113 const symmetryFvPatchField<Type>& ptf
116 basicSymmetryFvPatchField<Type>(ptf)
121 symmetryFvPatchField<Type>::symmetryFvPatchField
123 const symmetryFvPatchField<Type>& ptf,
124 const DimensionedField<Type, volMesh>& iF
127 basicSymmetryFvPatchField<Type>(ptf, iF)
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 } // End namespace Foam
135 // ************************************************************************* //