Fix tutorials: coupled/conjugateHeatFoam/conjugateCavity: fix Allrun file
[OpenFOAM-1.6-ext.git] / src / finiteVolume / fields / fvPatchFields / constraint / symmetry / symmetryFvPatchField.C
blob5c27393900890c18bc93b759215e907ce0eee702
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 namespace Foam
34 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
36 template<class Type>
37 symmetryFvPatchField<Type>::symmetryFvPatchField
39     const fvPatch& p,
40     const DimensionedField<Type, volMesh>& iF
43     basicSymmetryFvPatchField<Type>(p, iF)
47 template<class Type>
48 symmetryFvPatchField<Type>::symmetryFvPatchField
50     const symmetryFvPatchField<Type>& ptf,
51     const fvPatch& p,
52     const DimensionedField<Type, volMesh>& iF,
53     const fvPatchFieldMapper& mapper
56     basicSymmetryFvPatchField<Type>(ptf, p, iF, mapper)
58     if (!isType<symmetryFvPatch>(this->patch()))
59     {
60         FatalErrorIn
61         (
62             "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
63             "(\n"
64             "    const symmetryFvPatchField<Type>& ptf,\n"
65             "    const fvPatch& p,\n"
66             "    const DimensionedField<Type, volMesh>& iF,\n"
67             "    const fvPatchFieldMapper& mapper\n"
68             ")\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);
75     }
79 template<class Type>
80 symmetryFvPatchField<Type>::symmetryFvPatchField
82     const fvPatch& p,
83     const DimensionedField<Type, volMesh>& iF,
84     const dictionary& dict
87     basicSymmetryFvPatchField<Type>(p, iF, dict)
89     if (!isType<symmetryFvPatch>(p))
90     {
91         FatalIOErrorIn
92         (
93             "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
94             "(\n"
95             "    const fvPatch& p,\n"
96             "    const Field<Type>& field,\n"
97             "    const dictionary& dict\n"
98             ")\n",
99             dict
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);
106     }
110 template<class Type>
111 symmetryFvPatchField<Type>::symmetryFvPatchField
113     const symmetryFvPatchField<Type>& ptf
116     basicSymmetryFvPatchField<Type>(ptf)
120 template<class Type>
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 // ************************************************************************* //