1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 A centralized porousZone collection.
31 Container class for a set of porousZones with the porousZone member
32 functions implemented to loop over the functions for each porousZone.
34 The input file @c constant/porousZone is implemented as
35 IOPtrList\<porousZone\> and contains the following type of data:
42 coordinateSystem system_10;
46 d d [0 -2 0 0 0] (-1000 -1000 0.50753e+08);
47 f f [0 -1 0 0 0] (-1000 -1000 12.83);
56 \*---------------------------------------------------------------------------*/
61 #include "porousZone.H"
62 #include "IOPtrList.H"
64 #include "volFieldsFwd.H"
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 /*---------------------------------------------------------------------------*\
75 Class porousZones Declaration
76 \*---------------------------------------------------------------------------*/
80 public IOPtrList<porousZone>
84 //- Reference to the finite volume mesh this zone is part of
87 // Private Member Functions
89 //- Disallow default bitwise copy construct
90 porousZones(const porousZones&);
92 //- Disallow default bitwise assignment
93 void operator=(const porousZones&);
96 //- modify time derivative elements
98 void modifyDdt(fvMatrix<Type>&) const;
104 //- Construct from fvMesh
105 // with automatically constructed coordinate systems list
106 porousZones(const fvMesh&);
111 //- mirror fvm::ddt with porosity
113 tmp<fvMatrix<Type> > ddt
115 GeometricField<Type, fvPatchField, volMesh>&
118 //- mirror fvm::ddt with porosity
120 tmp<fvMatrix<Type> > ddt
123 GeometricField<Type, fvPatchField, volMesh>&
126 //- mirror fvm::ddt with porosity
128 tmp<fvMatrix<Type> > ddt
130 const dimensionedScalar&,
131 GeometricField<Type, fvPatchField, volMesh>&
134 //- mirror fvm::ddt with porosity
136 tmp<fvMatrix<Type> > ddt
138 const volScalarField&,
139 GeometricField<Type, fvPatchField, volMesh>&
142 //- Add the viscous and inertial resistance force contribution
143 // to the momentum equation
144 void addResistance(fvVectorMatrix& UEqn) const;
146 //- Add the viscous and inertial resistance force contribution
147 // to the tensorial diagonal
150 const fvVectorMatrix& UEqn,
154 //- read modified data
155 virtual bool readData(Istream&);
158 bool writeData(Ostream&, bool subDict = true) const;
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace Foam
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 # include "porousZonesTemplates.C"
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //