1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 "symmetryPointPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 symmetryPointPatchField<Type>::symmetryPointPatchField
40 const DimensionedField<Type, pointMesh>& iF
43 basicSymmetryPointPatchField<Type>(p, iF)
48 symmetryPointPatchField<Type>::symmetryPointPatchField
51 const DimensionedField<Type, pointMesh>& iF,
52 const dictionary& dict
55 basicSymmetryPointPatchField<Type>(p, iF, dict)
57 if (!isType<symmetryPointPatch>(p))
61 "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
63 " const pointPatch& p,\n"
64 " const Field<Type>& field,\n"
65 " const dictionary& dict\n"
68 ) << "patch " << this->patch().index() << " not symmetry type. "
69 << "Patch type = " << p.type()
70 << exit(FatalIOError);
76 symmetryPointPatchField<Type>::symmetryPointPatchField
78 const symmetryPointPatchField<Type>& ptf,
80 const DimensionedField<Type, pointMesh>& iF,
81 const pointPatchFieldMapper& mapper
84 basicSymmetryPointPatchField<Type>(ptf, p, iF, mapper)
86 if (!isType<symmetryPointPatch>(this->patch()))
90 "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
92 " const symmetryPointPatchField<Type>& ptf,\n"
93 " const pointPatch& p,\n"
94 " const DimensionedField<Type, pointMesh>& iF,\n"
95 " const pointPatchFieldMapper& mapper\n"
97 ) << "Field type does not correspond to patch type for patch "
98 << this->patch().index() << "." << endl
99 << "Field type: " << typeName << endl
100 << "Patch type: " << this->patch().type()
107 symmetryPointPatchField<Type>::symmetryPointPatchField
109 const symmetryPointPatchField<Type>& ptf,
110 const DimensionedField<Type, pointMesh>& iF
113 basicSymmetryPointPatchField<Type>(ptf, iF)
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 } // End namespace Foam
121 // ************************************************************************* //