initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / meshTools / directMapped / directMappedPolyPatch / directMappedWallPolyPatch.C
blobdaaee3bcb4adf2b275627ede0a7489de6ca1115a
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 dictionary& dict,
69     const label index,
70     const polyBoundaryMesh& bm
73     wallPolyPatch(name, dict, index, bm),
74     directMappedPatchBase(*this, dict)
78 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
80     const directMappedWallPolyPatch& pp,
81     const polyBoundaryMesh& bm
84     wallPolyPatch(pp, bm),
85     directMappedPatchBase(*this, pp)
89 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
91     const directMappedWallPolyPatch& pp,
92     const polyBoundaryMesh& bm,
93     const label index,
94     const label newSize,
95     const label newStart
98     wallPolyPatch(pp, bm, index, newSize, newStart),
99     directMappedPatchBase(*this, pp)
103 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
105 Foam::directMappedWallPolyPatch::~directMappedWallPolyPatch()
107     directMappedPatchBase::clearOut();
111 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
113 //- Initialise the calculation of the patch geometry
114 void Foam::directMappedWallPolyPatch::initGeometry()
116     wallPolyPatch::initGeometry();
117     directMappedPatchBase::clearOut();
120 //- Calculate the patch geometry
121 void Foam::directMappedWallPolyPatch::calcGeometry()
123     wallPolyPatch::calcGeometry();
124     directMappedPatchBase::clearOut();
127 //- Initialise the patches for moving points
128 void Foam::directMappedWallPolyPatch::initMovePoints(const pointField& p)
130     wallPolyPatch::initMovePoints(p);
131     directMappedPatchBase::clearOut();
134 //- Correct patches after moving points
135 void Foam::directMappedWallPolyPatch::movePoints(const pointField& p)
137     wallPolyPatch::movePoints(p);
138     directMappedPatchBase::clearOut();
141 //- Initialise the update of the patch topology
142 void Foam::directMappedWallPolyPatch::initUpdateMesh()
144     wallPolyPatch::initUpdateMesh();
145     directMappedPatchBase::clearOut();
148 //- Update of the patch topology
149 void Foam::directMappedWallPolyPatch::updateMesh()
151     wallPolyPatch::updateMesh();
152     directMappedPatchBase::clearOut();
156 void Foam::directMappedWallPolyPatch::write(Ostream& os) const
158     wallPolyPatch::write(os);
159     directMappedPatchBase::write(os);
163 // ************************************************************************* //