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
68 const dictionary& dict,
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,
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 // ************************************************************************* //