Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
OpenFOAM
fields
pointPatchFields
constraint
symmetry
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
26
#include <
OpenFOAM/symmetryPointPatchField.H
>
27
28
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29
30
namespace
Foam
31
{
32
33
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
34
35
template
<
class
Type>
36
symmetryPointPatchField<Type>::symmetryPointPatchField
37
(
38
const
pointPatch
&
p
,
39
const
DimensionedField<Type, pointMesh>
& iF
40
)
41
:
42
basicSymmetryPointPatchField<Type>
(
p
, iF)
43
{}
44
45
46
template
<
class
Type>
47
symmetryPointPatchField<Type>::symmetryPointPatchField
48
(
49
const
pointPatch
& p,
50
const
DimensionedField<Type, pointMesh>
& iF,
51
const
dictionary
& dict
52
)
53
:
54
basicSymmetryPointPatchField<Type>
(
p
, iF, dict)
55
{
56
if
(!isType<symmetryPointPatch>(p))
57
{
58
FatalIOErrorIn
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>
75
symmetryPointPatchField<Type>::symmetryPointPatchField
76
(
77
const
symmetryPointPatchField<Type>
& ptf,
78
const
pointPatch
& p,
79
const
DimensionedField<Type, pointMesh>
& iF,
80
const
pointPatchFieldMapper
& mapper
81
)
82
:
83
basicSymmetryPointPatchField<Type>
(ptf,
p
, iF, mapper)
84
{
85
if
(!isType<symmetryPointPatch>(this->patch()))
86
{
87
FatalErrorIn
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>
106
symmetryPointPatchField<Type>::symmetryPointPatchField
107
(
108
const
symmetryPointPatchField<Type>
& ptf,
109
const
DimensionedField<Type, pointMesh>
& iF
110
)
111
:
112
basicSymmetryPointPatchField<Type>
(ptf, iF)
113
{}
114
115
116
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118
}
// End namespace Foam
119
120
// ************************ vim: set sw=4 sts=4 et: ************************ //