freestreamVelocity: changed to use mean of patchInternalField and patch value

for valueFraction calculation
This commit is contained in:
Chris Greenshields
2020-04-17 18:46:47 +01:00
parent 2bbe47cc75
commit f7bcc19ad2

View File

@ -106,7 +106,7 @@ void Foam::freestreamVelocityFvPatchVectorField::updateCoeffs()
return;
}
const Field<vector> Up(patchInternalField());
const Field<vector> Up(0.5*(patchInternalField() + *this));
const Field<scalar> magUp(mag(Up));
const Field<vector> nf(patch().nf());