SRFVelocityFvPatchVectorField: Updated the definition of "relative" so that it refers to relative to the absolute frame.

This commit is contained in:
Henry
2011-08-26 14:30:27 +01:00
parent 53ff66996e
commit b1feecf7c3
2 changed files with 6 additions and 5 deletions

View File

@ -129,8 +129,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs()
return; return;
} }
// If relative, include the effect of the SRF // If not relative to the SRF include the effect of the SRF
if (relative_) if (!relative_)
{ {
// Get reference to the SRF model // Get reference to the SRF model
const SRF::SRFModel& srf = const SRF::SRFModel& srf =
@ -141,7 +141,8 @@ void Foam::SRFVelocityFvPatchVectorField::updateCoeffs()
operator==(-SRFVelocity + inletValue_); 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 else
{ {
operator==(inletValue_); operator==(inletValue_);

View File

@ -25,7 +25,7 @@ boundaryField
{ {
type SRFVelocity; type SRFVelocity;
inletValue uniform ( 0 0 -10 ); inletValue uniform ( 0 0 -10 );
relative yes; relative no;
value uniform ( 0 0 0 ); value uniform ( 0 0 0 );
} }
outlet outlet
@ -41,7 +41,7 @@ boundaryField
{ {
type SRFVelocity; type SRFVelocity;
inletValue uniform ( 0 0 0 ); inletValue uniform ( 0 0 0 );
relative yes; relative no;
value uniform ( 0 0 0 ); value uniform ( 0 0 0 );
} }
cyclic_half0 cyclic_half0