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 "symmetryFvsPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 symmetryFvsPatchField<Type>::symmetryFvsPatchField
40 const DimensionedField<Type, surfaceMesh>& iF
43 fvsPatchField<Type>(p, iF)
48 symmetryFvsPatchField<Type>::symmetryFvsPatchField
50 const symmetryFvsPatchField<Type>& ptf,
52 const DimensionedField<Type, surfaceMesh>& iF,
53 const fvPatchFieldMapper& mapper
56 fvsPatchField<Type>(ptf, p, iF, mapper)
58 if (!isType<symmetryFvPatch>(this->patch()))
62 "symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
64 " const symmetryFvsPatchField<Type>& ptf,\n"
65 " const fvPatch& p,\n"
66 " const DimensionedField<Type, surfaceMesh>& iF,\n"
67 " const fvPatchFieldMapper& mapper\n"
69 ) << "Field type does not correspond to patch type for patch "
70 << this->patch().index() << "." << endl
71 << "Field type: " << typeName << endl
72 << "Patch type: " << this->patch().type()
79 symmetryFvsPatchField<Type>::symmetryFvsPatchField
82 const DimensionedField<Type, surfaceMesh>& iF,
83 const dictionary& dict
86 fvsPatchField<Type>(p, iF, dict)
88 if (!isType<symmetryFvPatch>(p))
92 "symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
94 " const fvPatch& p,\n"
95 " const Field<Type>& field,\n"
96 " const dictionary& dict\n"
99 ) << "patch " << this->patch().index() << " not symmetry type. "
100 << "Patch type = " << p.type()
101 << exit(FatalIOError);
107 symmetryFvsPatchField<Type>::symmetryFvsPatchField
109 const symmetryFvsPatchField<Type>& ptf
112 fvsPatchField<Type>(ptf)
117 symmetryFvsPatchField<Type>::symmetryFvsPatchField
119 const symmetryFvsPatchField<Type>& ptf,
120 const DimensionedField<Type, surfaceMesh>& iF
123 fvsPatchField<Type>(ptf, iF)
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // ************************************************************************* //