FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

directMappedWallPolyPatch.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 #include "directMappedWallPolyPatch.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033     defineTypeNameAndDebug(directMappedWallPolyPatch, 0);
00034 
00035     addToRunTimeSelectionTable(polyPatch, directMappedWallPolyPatch, word);
00036     addToRunTimeSelectionTable
00037     (
00038         polyPatch,
00039         directMappedWallPolyPatch,
00040         dictionary
00041     );
00042 }
00043 
00044 
00045 // * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
00046 
00047 
00048 // * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * * * * * //
00049 
00050 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00051 (
00052     const word& name,
00053     const label size,
00054     const label start,
00055     const label index,
00056     const polyBoundaryMesh& bm
00057 )
00058 :
00059     wallPolyPatch(name, size, start, index, bm),
00060     directMappedPatchBase(static_cast<const polyPatch&>(*this))
00061 {}
00062 
00063 
00064 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00065 (
00066     const word& name,
00067     const label size,
00068     const label start,
00069     const label index,
00070     const word& sampleRegion,
00071     const directMappedPatchBase::sampleMode mode,
00072     const word& samplePatch,
00073     const vectorField& offset,
00074     const polyBoundaryMesh& bm
00075 )
00076 :
00077     wallPolyPatch(name, size, start, index, bm),
00078     directMappedPatchBase
00079     (
00080         static_cast<const polyPatch&>(*this),
00081         sampleRegion,
00082         mode,
00083         samplePatch,
00084         offset
00085     )
00086 {}
00087 
00088 
00089 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00090 (
00091     const word& name,
00092     const label size,
00093     const label start,
00094     const label index,
00095     const word& sampleRegion,
00096     const directMappedPatchBase::sampleMode mode,
00097     const word& samplePatch,
00098     const vector& offset,
00099     const polyBoundaryMesh& bm
00100 )
00101 :
00102     wallPolyPatch(name, size, start, index, bm),
00103     directMappedPatchBase
00104     (
00105         static_cast<const polyPatch&>(*this),
00106         sampleRegion,
00107         mode,
00108         samplePatch,
00109         offset
00110     )
00111 {}
00112 
00113 
00114 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00115 (
00116     const word& name,
00117     const dictionary& dict,
00118     const label index,
00119     const polyBoundaryMesh& bm
00120 )
00121 :
00122     wallPolyPatch(name, dict, index, bm),
00123     directMappedPatchBase(*this, dict)
00124 {}
00125 
00126 
00127 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00128 (
00129     const directMappedWallPolyPatch& pp,
00130     const polyBoundaryMesh& bm
00131 )
00132 :
00133     wallPolyPatch(pp, bm),
00134     directMappedPatchBase(*this, pp)
00135 {}
00136 
00137 
00138 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00139 (
00140     const directMappedWallPolyPatch& pp,
00141     const polyBoundaryMesh& bm,
00142     const label index,
00143     const label newSize,
00144     const label newStart
00145 )
00146 :
00147     wallPolyPatch(pp, bm, index, newSize, newStart),
00148     directMappedPatchBase(*this, pp)
00149 {}
00150 
00151 
00152 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00153 
00154 Foam::directMappedWallPolyPatch::~directMappedWallPolyPatch()
00155 {
00156     directMappedPatchBase::clearOut();
00157 }
00158 
00159 
00160 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00161 
00162 //- Initialise the calculation of the patch geometry
00163 void Foam::directMappedWallPolyPatch::initGeometry()
00164 {
00165     wallPolyPatch::initGeometry();
00166     directMappedPatchBase::clearOut();
00167 }
00168 
00169 //- Calculate the patch geometry
00170 void Foam::directMappedWallPolyPatch::calcGeometry()
00171 {
00172     wallPolyPatch::calcGeometry();
00173     directMappedPatchBase::clearOut();
00174 }
00175 
00176 //- Initialise the patches for moving points
00177 void Foam::directMappedWallPolyPatch::initMovePoints(const pointField& p)
00178 {
00179     wallPolyPatch::initMovePoints(p);
00180     directMappedPatchBase::clearOut();
00181 }
00182 
00183 //- Correct patches after moving points
00184 void Foam::directMappedWallPolyPatch::movePoints(const pointField& p)
00185 {
00186     wallPolyPatch::movePoints(p);
00187     directMappedPatchBase::clearOut();
00188 }
00189 
00190 //- Initialise the update of the patch topology
00191 void Foam::directMappedWallPolyPatch::initUpdateMesh()
00192 {
00193     wallPolyPatch::initUpdateMesh();
00194     directMappedPatchBase::clearOut();
00195 }
00196 
00197 //- Update of the patch topology
00198 void Foam::directMappedWallPolyPatch::updateMesh()
00199 {
00200     wallPolyPatch::updateMesh();
00201     directMappedPatchBase::clearOut();
00202 }
00203 
00204 
00205 void Foam::directMappedWallPolyPatch::write(Ostream& os) const
00206 {
00207     wallPolyPatch::write(os);
00208     directMappedPatchBase::write(os);
00209 }
00210 
00211 
00212 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines