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