ENH: splitMeshRegions now fills in coupling information in directMapped patch.
[OpenFOAM-1.6.x.git] / src / meshTools / directMapped / directMappedPolyPatch / directMappedWallPolyPatch.C
blob8485da313831492846c23bed3172cac29a6119ab
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 "directMappedWallPolyPatch.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(directMappedWallPolyPatch, 0);
36     addToRunTimeSelectionTable(polyPatch, directMappedWallPolyPatch, word);
37     addToRunTimeSelectionTable
38     (
39         polyPatch,
40         directMappedWallPolyPatch,
41         dictionary
42     );
46 // * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
49 // * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * * * * * //
51 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
53     const word& name,
54     const label size,
55     const label start,
56     const label index,
57     const polyBoundaryMesh& bm
60     wallPolyPatch(name, size, start, index, bm),
61     directMappedPatchBase(static_cast<const polyPatch&>(*this))
65 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
67     const word& name,
68     const label size,
69     const label start,
70     const label index,
71     const word& sampleRegion,
72     const directMappedPatchBase::sampleMode mode,
73     const word& samplePatch,
74     const vectorField& offset,
75     const polyBoundaryMesh& bm
78     wallPolyPatch(name, size, start, index, bm),
79     directMappedPatchBase
80     (
81         static_cast<const polyPatch&>(*this),
82         sampleRegion,
83         mode,
84         samplePatch,
85         offset
86     )
90 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
92     const word& name,
93     const label size,
94     const label start,
95     const label index,
96     const word& sampleRegion,
97     const directMappedPatchBase::sampleMode mode,
98     const word& samplePatch,
99     const vector& offset,
100     const polyBoundaryMesh& bm
103     wallPolyPatch(name, size, start, index, bm),
104     directMappedPatchBase
105     (
106         static_cast<const polyPatch&>(*this),
107         sampleRegion,
108         mode,
109         samplePatch,
110         offset
111     )
115 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
117     const word& name,
118     const dictionary& dict,
119     const label index,
120     const polyBoundaryMesh& bm
123     wallPolyPatch(name, dict, index, bm),
124     directMappedPatchBase(*this, dict)
128 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
130     const directMappedWallPolyPatch& pp,
131     const polyBoundaryMesh& bm
134     wallPolyPatch(pp, bm),
135     directMappedPatchBase(*this, pp)
139 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
141     const directMappedWallPolyPatch& pp,
142     const polyBoundaryMesh& bm,
143     const label index,
144     const label newSize,
145     const label newStart
148     wallPolyPatch(pp, bm, index, newSize, newStart),
149     directMappedPatchBase(*this, pp)
153 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
155 Foam::directMappedWallPolyPatch::~directMappedWallPolyPatch()
157     directMappedPatchBase::clearOut();
161 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
163 //- Initialise the calculation of the patch geometry
164 void Foam::directMappedWallPolyPatch::initGeometry()
166     wallPolyPatch::initGeometry();
167     directMappedPatchBase::clearOut();
170 //- Calculate the patch geometry
171 void Foam::directMappedWallPolyPatch::calcGeometry()
173     wallPolyPatch::calcGeometry();
174     directMappedPatchBase::clearOut();
177 //- Initialise the patches for moving points
178 void Foam::directMappedWallPolyPatch::initMovePoints(const pointField& p)
180     wallPolyPatch::initMovePoints(p);
181     directMappedPatchBase::clearOut();
184 //- Correct patches after moving points
185 void Foam::directMappedWallPolyPatch::movePoints(const pointField& p)
187     wallPolyPatch::movePoints(p);
188     directMappedPatchBase::clearOut();
191 //- Initialise the update of the patch topology
192 void Foam::directMappedWallPolyPatch::initUpdateMesh()
194     wallPolyPatch::initUpdateMesh();
195     directMappedPatchBase::clearOut();
198 //- Update of the patch topology
199 void Foam::directMappedWallPolyPatch::updateMesh()
201     wallPolyPatch::updateMesh();
202     directMappedPatchBase::clearOut();
206 void Foam::directMappedWallPolyPatch::write(Ostream& os) const
208     wallPolyPatch::write(os);
209     directMappedPatchBase::write(os);
213 // ************************************************************************* //