Commit 41161387 authored by Andrew Heather's avatar Andrew Heather Committed by graham
Browse files

bug fix for abs veocities

parent 06f1ec0c
......@@ -167,7 +167,7 @@ Foam::vectorField Foam::SRF::SRFModel::velocity
const vectorField& positions
) const
{
return -omega_.value() ^ (positions - axis_*(axis_ & positions));
return omega_.value() ^ (positions - axis_*(axis_ & positions));
}
......@@ -185,7 +185,7 @@ Foam::tmp<Foam::volVectorField> Foam::SRF::SRFModel::U() const
IOobject::NO_READ,
IOobject::NO_WRITE
),
-omega_ ^ (mesh_.C() - axis_*(axis_ & mesh_.C()))
omega_ ^ (mesh_.C() - axis_*(axis_ & mesh_.C()))
)
);
}
......
......@@ -145,7 +145,7 @@ void SRFVelocityFvPatchVectorField::updateCoeffs()
// Determine patch velocity due to SRF
const vectorField SRFVelocity = srf.velocity(patch().Cf());
operator==(SRFVelocity + inletValue_);
operator==(-SRFVelocity + inletValue_);
}
// If absolute, simply supply the inlet value as a fixed value
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment