FreeFOAM The Cross-Platform CFD Toolkit
symmetryPointPatchField.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
32 
33 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
34 
35 template<class Type>
37 (
38  const pointPatch& p,
40 )
41 :
43 {}
44 
45 
46 template<class Type>
48 (
49  const pointPatch& p,
51  const dictionary& dict
52 )
53 :
55 {
56  if (!isType<symmetryPointPatch>(p))
57  {
59  (
60  "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
61  "(\n"
62  " const pointPatch& p,\n"
63  " const Field<Type>& field,\n"
64  " const dictionary& dict\n"
65  ")\n",
66  dict
67  ) << "patch " << this->patch().index() << " not symmetry type. "
68  << "Patch type = " << p.type()
69  << exit(FatalIOError);
70  }
71 }
72 
73 
74 template<class Type>
76 (
78  const pointPatch& p,
80  const pointPatchFieldMapper& mapper
81 )
82 :
83  basicSymmetryPointPatchField<Type>(ptf, p, iF, mapper)
84 {
85  if (!isType<symmetryPointPatch>(this->patch()))
86  {
88  (
89  "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
90  "(\n"
91  " const symmetryPointPatchField<Type>& ptf,\n"
92  " const pointPatch& p,\n"
93  " const DimensionedField<Type, pointMesh>& iF,\n"
94  " const pointPatchFieldMapper& mapper\n"
95  ")\n"
96  ) << "Field type does not correspond to patch type for patch "
97  << this->patch().index() << "." << endl
98  << "Field type: " << typeName << endl
99  << "Patch type: " << this->patch().type()
100  << exit(FatalError);
101  }
102 }
103 
104 
105 template<class Type>
107 (
110 )
111 :
113 {}
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // ************************ vim: set sw=4 sts=4 et: ************************ //