From f7bcc19ad2b64fc8a88c94594832c7abdf6fdb16 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Fri, 17 Apr 2020 18:46:47 +0100 Subject: [PATCH] freestreamVelocity: changed to use mean of patchInternalField and patch value for valueFraction calculation --- .../freestreamVelocity/freestreamVelocityFvPatchVectorField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C index dc9d5d835b..8d3602be2e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C @@ -106,7 +106,7 @@ void Foam::freestreamVelocityFvPatchVectorField::updateCoeffs() return; } - const Field Up(patchInternalField()); + const Field Up(0.5*(patchInternalField() + *this)); const Field magUp(mag(Up)); const Field nf(patch().nf());