initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / OpenFOAM / meshes / polyMesh / polyPatches / constraint / symmetry / symmetryPolyPatch.C
blob99468ea477672d9fbac6170de8381e8871cfb606
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 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 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 "symmetryPolyPatch.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(symmetryPolyPatch, 0);
36     addToRunTimeSelectionTable(polyPatch, symmetryPolyPatch, word);
37     addToRunTimeSelectionTable(polyPatch, symmetryPolyPatch, dictionary);
40 // * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * * * * * //
42 Foam::symmetryPolyPatch::symmetryPolyPatch
44     const word& name,
45     const label size,
46     const label start,
47     const label index,
48     const polyBoundaryMesh& bm
51     polyPatch(name, size, start, index, bm)
55 Foam::symmetryPolyPatch::symmetryPolyPatch
57     const word& name,
58     const dictionary& dict,
59     const label index,
60     const polyBoundaryMesh& bm
63     polyPatch(name, dict, index, bm)
67 Foam::symmetryPolyPatch::symmetryPolyPatch
69     const symmetryPolyPatch& pp,
70     const polyBoundaryMesh& bm
73     polyPatch(pp, bm)
77 Foam::symmetryPolyPatch::symmetryPolyPatch
79     const symmetryPolyPatch& pp,
80     const polyBoundaryMesh& bm,
81     const label index,
82     const label newSize,
83     const label newStart
86     polyPatch(pp, bm, index, newSize, newStart)
90 // ************************************************************************* //