OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "directMappedWallPolyPatch.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(directMappedWallPolyPatch, 0);
00035 
00036     addToRunTimeSelectionTable(polyPatch, directMappedWallPolyPatch, word);
00037     addToRunTimeSelectionTable
00038     (
00039         polyPatch,
00040         directMappedWallPolyPatch,
00041         dictionary
00042     );
00043 }
00044 
00045 
00046 // * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
00047 
00048 
00049 // * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * * * * * //
00050 
00051 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00052 (
00053     const word& name,
00054     const label size,
00055     const label start,
00056     const label index,
00057     const polyBoundaryMesh& bm
00058 )
00059 :
00060     wallPolyPatch(name, size, start, index, bm),
00061     directMappedPatchBase(static_cast<const polyPatch&>(*this))
00062 {}
00063 
00064 
00065 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00066 (
00067     const word& name,
00068     const dictionary& dict,
00069     const label index,
00070     const polyBoundaryMesh& bm
00071 )
00072 :
00073     wallPolyPatch(name, dict, index, bm),
00074     directMappedPatchBase(*this, dict)
00075 {}
00076 
00077 
00078 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00079 (
00080     const directMappedWallPolyPatch& pp,
00081     const polyBoundaryMesh& bm
00082 )
00083 :
00084     wallPolyPatch(pp, bm),
00085     directMappedPatchBase(*this, pp)
00086 {}
00087 
00088 
00089 Foam::directMappedWallPolyPatch::directMappedWallPolyPatch
00090 (
00091     const directMappedWallPolyPatch& pp,
00092     const polyBoundaryMesh& bm,
00093     const label index,
00094     const label newSize,
00095     const label newStart
00096 )
00097 :
00098     wallPolyPatch(pp, bm, index, newSize, newStart),
00099     directMappedPatchBase(*this, pp)
00100 {}
00101 
00102 
00103 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00104 
00105 Foam::directMappedWallPolyPatch::~directMappedWallPolyPatch()
00106 {
00107     directMappedPatchBase::clearOut();
00108 }
00109 
00110 
00111 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00112 
00113 //- Initialise the calculation of the patch geometry
00114 void Foam::directMappedWallPolyPatch::initGeometry()
00115 {
00116     wallPolyPatch::initGeometry();
00117     directMappedPatchBase::clearOut();
00118 }
00119 
00120 //- Calculate the patch geometry
00121 void Foam::directMappedWallPolyPatch::calcGeometry()
00122 {
00123     wallPolyPatch::calcGeometry();
00124     directMappedPatchBase::clearOut();
00125 }
00126 
00127 //- Initialise the patches for moving points
00128 void Foam::directMappedWallPolyPatch::initMovePoints(const pointField& p)
00129 {
00130     wallPolyPatch::initMovePoints(p);
00131     directMappedPatchBase::clearOut();
00132 }
00133 
00134 //- Correct patches after moving points
00135 void Foam::directMappedWallPolyPatch::movePoints(const pointField& p)
00136 {
00137     wallPolyPatch::movePoints(p);
00138     directMappedPatchBase::clearOut();
00139 }
00140 
00141 //- Initialise the update of the patch topology
00142 void Foam::directMappedWallPolyPatch::initUpdateMesh()
00143 {
00144     wallPolyPatch::initUpdateMesh();
00145     directMappedPatchBase::clearOut();
00146 }
00147 
00148 //- Update of the patch topology
00149 void Foam::directMappedWallPolyPatch::updateMesh()
00150 {
00151     wallPolyPatch::updateMesh();
00152     directMappedPatchBase::clearOut();
00153 }
00154 
00155 
00156 void Foam::directMappedWallPolyPatch::write(Ostream& os) const
00157 {
00158     wallPolyPatch::write(os);
00159     directMappedPatchBase::write(os);
00160 }
00161 
00162 
00163 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd