mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
SRFVelocityFvPatchVectorField: Updated the definition of "relative" so that it refers to relative to the absolute frame.
This commit is contained in:
@ -129,8 +129,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs()
|
||||
return;
|
||||
}
|
||||
|
||||
// If relative, include the effect of the SRF
|
||||
if (relative_)
|
||||
// If not relative to the SRF include the effect of the SRF
|
||||
if (!relative_)
|
||||
{
|
||||
// Get reference to the SRF model
|
||||
const SRF::SRFModel& srf =
|
||||
@ -141,7 +141,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs()
|
||||
|
||||
operator==(-SRFVelocity + inletValue_);
|
||||
}
|
||||
// If absolute, simply supply the inlet value as a fixed value
|
||||
// If already relative to the SRF simply supply the inlet value as a fixed
|
||||
// value
|
||||
else
|
||||
{
|
||||
operator==(inletValue_);
|
||||
|
||||
@ -25,7 +25,7 @@ boundaryField
|
||||
{
|
||||
type SRFVelocity;
|
||||
inletValue uniform ( 0 0 -10 );
|
||||
relative yes;
|
||||
relative no;
|
||||
value uniform ( 0 0 0 );
|
||||
}
|
||||
outlet
|
||||
@ -41,7 +41,7 @@ boundaryField
|
||||
{
|
||||
type SRFVelocity;
|
||||
inletValue uniform ( 0 0 0 );
|
||||
relative yes;
|
||||
relative no;
|
||||
value uniform ( 0 0 0 );
|
||||
}
|
||||
cyclic_half0
|
||||
|
||||
Reference in New Issue
Block a user