Fix tutorials: coupled/conjugateHeatFoam/conjugateCavity: fix Allrun file
[OpenFOAM-1.6-ext.git] / src / finiteVolume / fields / fvsPatchFields / constraint / symmetry / symmetryFvsPatchField.C
blob044c4702a450c355df04644eb5bb38f7616f0b53
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 "symmetryFvsPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 namespace Foam
34 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
36 template<class Type>
37 symmetryFvsPatchField<Type>::symmetryFvsPatchField
39     const fvPatch& p,
40     const DimensionedField<Type, surfaceMesh>& iF
43     fvsPatchField<Type>(p, iF)
47 template<class Type>
48 symmetryFvsPatchField<Type>::symmetryFvsPatchField
50     const symmetryFvsPatchField<Type>& ptf,
51     const fvPatch& p,
52     const DimensionedField<Type, surfaceMesh>& iF,
53     const fvPatchFieldMapper& mapper
56     fvsPatchField<Type>(ptf, p, iF, mapper)
58     if (!isType<symmetryFvPatch>(this->patch()))
59     {
60         FatalErrorIn
61         (
62             "symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
63             "(\n"
64             "    const symmetryFvsPatchField<Type>& ptf,\n"
65             "    const fvPatch& p,\n"
66             "    const DimensionedField<Type, surfaceMesh>& iF,\n"
67             "    const fvPatchFieldMapper& mapper\n"
68             ")\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()
73             << exit(FatalError);
74     }
78 template<class Type>
79 symmetryFvsPatchField<Type>::symmetryFvsPatchField
81     const fvPatch& p,
82     const DimensionedField<Type, surfaceMesh>& iF,
83     const dictionary& dict
86     fvsPatchField<Type>(p, iF, dict)
88     if (!isType<symmetryFvPatch>(p))
89     {
90         FatalIOErrorIn
91         (
92             "symmetryFvsPatchField<Type>::symmetryFvsPatchField\n"
93             "(\n"
94             "    const fvPatch& p,\n"
95             "    const Field<Type>& field,\n"
96             "    const dictionary& dict\n"
97             ")\n",
98             dict
99         )   << "patch " << this->patch().index() << " not symmetry type. "
100             << "Patch type = " << p.type()
101             << exit(FatalIOError);
102     }
106 template<class Type>
107 symmetryFvsPatchField<Type>::symmetryFvsPatchField
109     const symmetryFvsPatchField<Type>& ptf
112     fvsPatchField<Type>(ptf)
116 template<class Type>
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 // ************************************************************************* //