From 603b23f48798fe6c9d4c181c69e5bebf7fb79c25 Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 18 May 2014 21:17:49 +0100 Subject: [PATCH] flowRateInletVelocity: removed unused function --- .../flowRateInletVelocityFvPatchVectorField.C | 34 +------------------ .../flowRateInletVelocityFvPatchVectorField.H | 8 ++--- 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index e05c34aa20..b5948bed4a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -145,38 +145,6 @@ flowRateInletVelocityFvPatchVectorField // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs -( - const scalar uniformRho -) -{ - if (updated()) - { - return; - } - - const scalar t = db().time().timeOutputValue(); - - // a simpler way of doing this would be nice - const scalar avgU = -flowRate_->value(t)/gSum(patch().magSf()); - - tmp n = patch().nf(); - - if (volumetric_ || rhoName_ == "none") - { - // volumetric flow-rate - operator==(n*avgU); - } - else - { - // mass flow-rate - operator==(n*avgU/uniformRho); - } - - fixedValueFvPatchVectorField::updateCoeffs(); -} - - void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs() { if (updated()) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H index 8051261154..f8e8f491a7 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,7 +71,7 @@ Description rhoInlet 1.0; } \endverbatim - + The \c flowRate entry is a \c DataEntry type, meaning that it can be specified as constant, a polynomial fuction of time, and ... @@ -195,10 +195,6 @@ public: // Member functions - //- Update the coefficients associated with the patch field given - // uniform density field - void updateCoeffs(const scalar uniformRho); - //- Update the coefficients associated with the patch field virtual void updateCoeffs();