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

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