From 3b42a8f7434e32725b7aae293952eeb3cd89b751 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 1 Feb 2010 10:08:16 +0000 Subject: [PATCH] STYLE: Corrected comment in header Extraneous U in description of Darcy coefficient. (see http://www.cfd-online.com/Forums/openfoam-bugs/72236-bug-porouszone-h.html) --- .../cfdTools/general/porousMedia/porousZone.H | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/porousMedia/porousZone.H b/src/finiteVolume/cfdTools/general/porousMedia/porousZone.H index 5b4d16af..edfbad5e 100644 --- a/src/finiteVolume/cfdTools/general/porousMedia/porousZone.H +++ b/src/finiteVolume/cfdTools/general/porousMedia/porousZone.H @@ -42,7 +42,7 @@ Description Darcy-Forchheimer (@e d and @e f parameters) @f[ - S = - (\mu \, d \, U + \frac{\rho |U|}{2} \, f) U + S = - (\mu \, d + \frac{\rho |U|}{2} \, f) U @f] @@ -198,7 +198,6 @@ public: return autoPtr(NULL); } - //- Return pointer to new porousZone created on freestore from Istream class iNew { @@ -222,6 +221,11 @@ public: }; + //- Destructor + virtual ~porousZone() + {} + + // Member Functions // Access @@ -232,6 +236,12 @@ public: return name_; } + //- Return mesh + const fvMesh& mesh() const + { + return mesh_; + } + //- cellZone number label zoneId() const { @@ -263,7 +273,7 @@ public: } //- Return porosity - const scalar& porosity() const + scalar porosity() const { return porosity_; } @@ -275,7 +285,7 @@ public: } - //- modify time derivative elements according to porosity + //- Modify time derivative elements according to porosity template void modifyDdt(fvMatrix&) const; @@ -294,7 +304,7 @@ public: ) const; //- Write the porousZone dictionary - void writeDict(Ostream&, bool subDict = true) const; + virtual void writeDict(Ostream&, bool subDict = true) const; // Ostream Operator -- 2.11.4.GIT