freestreamVelocity: changed to use mean of patchInternalField and patch value
for valueFraction calculation
This commit is contained in:
@ -106,7 +106,7 @@ void Foam::freestreamVelocityFvPatchVectorField::updateCoeffs()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Field<vector> Up(patchInternalField());
|
const Field<vector> Up(0.5*(patchInternalField() + *this));
|
||||||
const Field<scalar> magUp(mag(Up));
|
const Field<scalar> magUp(mag(Up));
|
||||||
|
|
||||||
const Field<vector> nf(patch().nf());
|
const Field<vector> nf(patch().nf());
|
||||||
|
|||||||
Reference in New Issue
Block a user