Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / OpenFOAM / meshes / polyMesh / polyPatches / constraint / symmetry / symmetryPolyPatch.C
blob8d97aabc8e38ae79dd2f0cbe2699df33e9bf0dce
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
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
13     the Free Software Foundation, either version 3 of the License, or
14     (at your 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, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "symmetryPolyPatch.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(symmetryPolyPatch, 0);
35     addToRunTimeSelectionTable(polyPatch, symmetryPolyPatch, word);
36     addToRunTimeSelectionTable(polyPatch, symmetryPolyPatch, dictionary);
39 // * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * * * * * //
41 Foam::symmetryPolyPatch::symmetryPolyPatch
43     const word& name,
44     const label size,
45     const label start,
46     const label index,
47     const polyBoundaryMesh& bm
50     polyPatch(name, size, start, index, bm)
54 Foam::symmetryPolyPatch::symmetryPolyPatch
56     const word& name,
57     const dictionary& dict,
58     const label index,
59     const polyBoundaryMesh& bm
62     polyPatch(name, dict, index, bm)
66 Foam::symmetryPolyPatch::symmetryPolyPatch
68     const symmetryPolyPatch& pp,
69     const polyBoundaryMesh& bm
72     polyPatch(pp, bm)
76 Foam::symmetryPolyPatch::symmetryPolyPatch
78     const symmetryPolyPatch& pp,
79     const polyBoundaryMesh& bm,
80     const label index,
81     const label newSize,
82     const label newStart
85     polyPatch(pp, bm, index, newSize, newStart)
89 Foam::symmetryPolyPatch::symmetryPolyPatch
91     const symmetryPolyPatch& pp,
92     const polyBoundaryMesh& bm,
93     const label index,
94     const labelUList& mapAddressing,
95     const label newStart
98     polyPatch(pp, bm, index, mapAddressing, newStart)
102 // ************************************************************************* //