mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
pressureInletOutletVelocityFvPatchVectorField: Corrected initialisation of refValue
This commit is contained in:
@ -94,11 +94,8 @@ pressureInletOutletVelocityFvPatchVectorField
|
||||
vectorField("tangentialVelocity", dict, p.size())
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
}
|
||||
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
@ -138,6 +135,7 @@ pressureInletOutletVelocityFvPatchVectorField
|
||||
void Foam::pressureInletOutletVelocityFvPatchVectorField::
|
||||
setTangentialVelocity(const vectorField& tangentialVelocity)
|
||||
{
|
||||
applyTangentialVelocity_ = true;
|
||||
tangentialVelocity_ = tangentialVelocity;
|
||||
vectorField n(patch().nf());
|
||||
tangentialVelocity_ -= n*(n & tangentialVelocity_);
|
||||
|
||||
Reference in New Issue
Block a user