mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
bug fix for abs veocities
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user