Skip to content
Snippets Groups Projects
Commit 7a76df30 authored by Henry's avatar Henry
Browse files

pressureInletOutletVelocityFvPatchVectorField: Corrected initialisation of refValue

parent a62f28a9
No related branches found
No related tags found
No related merge requests found
...@@ -94,11 +94,8 @@ pressureInletOutletVelocityFvPatchVectorField ...@@ -94,11 +94,8 @@ pressureInletOutletVelocityFvPatchVectorField
vectorField("tangentialVelocity", dict, p.size()) vectorField("tangentialVelocity", dict, p.size())
); );
} }
else
{
refValue() = vector::zero;
}
refValue() = *this;
refGrad() = vector::zero; refGrad() = vector::zero;
valueFraction() = 0.0; valueFraction() = 0.0;
} }
...@@ -138,6 +135,7 @@ pressureInletOutletVelocityFvPatchVectorField ...@@ -138,6 +135,7 @@ pressureInletOutletVelocityFvPatchVectorField
void Foam::pressureInletOutletVelocityFvPatchVectorField:: void Foam::pressureInletOutletVelocityFvPatchVectorField::
setTangentialVelocity(const vectorField& tangentialVelocity) setTangentialVelocity(const vectorField& tangentialVelocity)
{ {
applyTangentialVelocity_ = true;
tangentialVelocity_ = tangentialVelocity; tangentialVelocity_ = tangentialVelocity;
vectorField n(patch().nf()); vectorField n(patch().nf());
tangentialVelocity_ -= n*(n & tangentialVelocity_); tangentialVelocity_ -= n*(n & tangentialVelocity_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment