From b1feecf7c3375090e6495d1aed0aed12fe881737 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 26 Aug 2011 14:30:27 +0100 Subject: [PATCH] SRFVelocityFvPatchVectorField: Updated the definition of "relative" so that it refers to relative to the absolute frame. --- .../SRFVelocityFvPatchVectorField.C | 7 ++++--- tutorials/incompressible/SRFSimpleFoam/mixer/0/Urel | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C index feaece76ab..2a17513700 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C @@ -129,8 +129,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs() return; } - // If relative, include the effect of the SRF - if (relative_) + // If not relative to the SRF include the effect of the SRF + if (!relative_) { // Get reference to the SRF model const SRF::SRFModel& srf = @@ -141,7 +141,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs() operator==(-SRFVelocity + inletValue_); } - // If absolute, simply supply the inlet value as a fixed value + // If already relative to the SRF simply supply the inlet value as a fixed + // value else { operator==(inletValue_); diff --git a/tutorials/incompressible/SRFSimpleFoam/mixer/0/Urel b/tutorials/incompressible/SRFSimpleFoam/mixer/0/Urel index 79713c0547..0353535f09 100644 --- a/tutorials/incompressible/SRFSimpleFoam/mixer/0/Urel +++ b/tutorials/incompressible/SRFSimpleFoam/mixer/0/Urel @@ -25,7 +25,7 @@ boundaryField { type SRFVelocity; inletValue uniform ( 0 0 -10 ); - relative yes; + relative no; value uniform ( 0 0 0 ); } outlet @@ -41,7 +41,7 @@ boundaryField { type SRFVelocity; inletValue uniform ( 0 0 0 ); - relative yes; + relative no; value uniform ( 0 0 0 ); } cyclic_half0