diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C index 8d4f93ad1a..d78bfc41a5 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C @@ -113,15 +113,13 @@ void Foam::SRFFreestreamVelocityFvPatchVectorField::updateCoeffs() scalar theta = time*mag(srf.omega().value()); refValue() = - //cos(theta)*UInf_ + sin(theta)*(srf.axis() ^ UInf_) - UInf_ + cos(theta)*UInf_ + sin(theta)*(srf.axis() ^ UInf_) - srf.velocity(patch().Cf()); // Set the inlet-outlet choice based on the direction of the freestream - //valueFraction() = 1.0 - pos(refValue() & patch().Sf()); + valueFraction() = 1.0 - pos(refValue() & patch().Sf()); - //mixedFvPatchField::updateCoeffs(); - inletOutletFvPatchVectorField::updateCoeffs(); + mixedFvPatchField::updateCoeffs(); }