1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 defineTypeNameAndDebug(directMappedWallPolyPatch, 0);
36 addToRunTimeSelectionTable(polyPatch, directMappedWallPolyPatch, word);
37 addToRunTimeSelectionTable
40 directMappedWallPolyPatch,
46 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
49 // * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
51 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
57 const polyBoundaryMesh& bm
60 wallPolyPatch(name, size, start, index, bm),
61 directMappedPatchBase(static_cast<const polyPatch&>(*this))
65 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
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),
81 static_cast<const polyPatch&>(*this),
90 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
96 const word& sampleRegion,
97 const directMappedPatchBase::sampleMode mode,
98 const word& samplePatch,
100 const polyBoundaryMesh& bm
103 wallPolyPatch(name, size, start, index, bm),
104 directMappedPatchBase
106 static_cast<const polyPatch&>(*this),
115 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
118 const dictionary& dict,
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,
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 // ************************************************************************* //