bug fix for abs veocities

This commit is contained in:
andy
2008-06-20 10:00:15 +01:00
parent faecc138de
commit 8a9d032020
2 changed files with 3 additions and 3 deletions

View File

@ -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()))
)
);
}

View File

@ -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