|
|
|
porousZones.HGo 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-2007 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 Class 00026 porousZones 00027 00028 Description 00029 Container class for a set of porousZones with the porousZone member 00030 functions implemented to loop over the functions for each porousZone. 00031 00032 SourceFiles 00033 porousZones.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef porousZones_H 00038 #define porousZones_H 00039 00040 #include "porousZone.H" 00041 #include "IOPtrList.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class porousZones Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class porousZones 00053 : 00054 public IOPtrList<porousZone> 00055 { 00056 // Private data 00057 00058 //- Reference to the finite volume mesh this zone is part of 00059 const fvMesh& mesh_; 00060 00061 00062 // Private Member Functions 00063 00064 //- Disallow default bitwise copy construct 00065 porousZones(const porousZones&); 00066 00067 //- Disallow default bitwise assignment 00068 void operator=(const porousZones&); 00069 00070 00071 public: 00072 00073 // Constructors 00074 00075 //- Construct from fvMesh 00076 porousZones(const fvMesh& mesh); 00077 00078 00079 // Member Functions 00080 00081 //- Add the viscous and inertial resistance force contribution 00082 // to the momentum equation 00083 void addResistance(fvVectorMatrix& UEqn) const; 00084 00085 //- Add the viscous and inertial resistance force contribution 00086 // to the tensorial diagonal 00087 void addResistance 00088 ( 00089 const fvVectorMatrix& UEqn, 00090 volTensorField& AU 00091 ) const; 00092 00093 //- read modified data 00094 virtual bool readData(Istream&); 00095 }; 00096 00097 00098 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00099 00100 } // End namespace Foam 00101 00102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00103 00104 #endif 00105 00106 // ************************************************************************* // |