|
|
|
MeshWave.CGo 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 Description 00026 00027 \*---------------------------------------------------------------------------*/ 00028 00029 #include "MeshWave.H" 00030 #include "polyMesh.H" 00031 #include "processorPolyPatch.H" 00032 #include "cyclicPolyPatch.H" 00033 #include "OPstream.H" 00034 #include "IPstream.H" 00035 #include "PstreamReduceOps.H" 00036 #include "debug.H" 00037 #include "typeInfo.H" 00038 00039 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // 00040 00041 00042 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // 00043 00044 // Iterate, propagating changedFacesInfo across mesh, until no change (or 00045 // maxIter reached). 00046 template <class Type> 00047 Foam::MeshWave<Type>::MeshWave 00048 ( 00049 const polyMesh& mesh, 00050 const labelList& changedFaces, 00051 const List<Type>& changedFacesInfo, 00052 const label maxIter 00053 ) 00054 : 00055 allFaceInfo_(mesh.nFaces()), 00056 allCellInfo_(mesh.nCells()), 00057 calc_ 00058 ( 00059 mesh, 00060 changedFaces, 00061 changedFacesInfo, 00062 allFaceInfo_, 00063 allCellInfo_, 00064 maxIter 00065 ) 00066 {} 00067 00068 00069 // Iterate, propagating changedFacesInfo across mesh, until no change (or 00070 // maxIter reached). Initial cell values specified. 00071 template <class Type> 00072 Foam::MeshWave<Type>::MeshWave 00073 ( 00074 const polyMesh& mesh, 00075 const labelList& changedFaces, 00076 const List<Type>& changedFacesInfo, 00077 const List<Type>& allCellInfo, 00078 const label maxIter 00079 ) 00080 : 00081 allFaceInfo_(mesh.nFaces()), 00082 allCellInfo_(allCellInfo), 00083 calc_ 00084 ( 00085 mesh, 00086 changedFaces, 00087 changedFacesInfo, 00088 allFaceInfo_, 00089 allCellInfo_, 00090 maxIter 00091 ) 00092 {} 00093 00094 00095 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // 00096 00097 00098 // ************************************************************************* // |