Commit dcfaeef0 authored by sergio's avatar sergio
Browse files

ENH: Droping tangential U on the master for the swirling fan BC.

parent c8d585b1
...@@ -79,7 +79,7 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump() ...@@ -79,7 +79,7 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump()
deltaP deltaP
/rMag[i] /rMag[i]
/fanEff_ /fanEff_
/rpm_*constant::mathematical::pi/30.0; /(rpm_*constant::mathematical::pi/30.0);
} }
} }
} }
...@@ -93,22 +93,12 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump() ...@@ -93,22 +93,12 @@ void Foam::swirlFanVelocityFvPatchField::calcFanJump()
<< exit(FatalError); << exit(FatalError);
} }
magTangU = magTangU =
deltaP/rEff_/fanEff_/rpm_*constant::mathematical::pi/30.0; deltaP/rEff_/fanEff_/(rpm_*constant::mathematical::pi/30.0);
} }
// U upstream from fan
const vectorField Uup(this->patchInternalField());
// U normal to fan
const vectorField Un((Uup & patch().nf())*patch().nf());
// U tangential into fan
const vectorField UtanIn(Uup - Un);
// Calculate the tangential velocity // Calculate the tangential velocity
const vectorField tangentialVelocity(magTangU*tanDir); const vectorField tangentialVelocity(magTangU*tanDir);
this->jump_ = tangentialVelocity + UtanIn; this->jump_ = tangentialVelocity;
} }
} }
......
...@@ -33,7 +33,7 @@ Description ...@@ -33,7 +33,7 @@ Description
The U-jump is specified with a swirl component as follows: The U-jump is specified with a swirl component as follows:
Utan = deltaP/rEff/fanEff/rpm/pi/30.0; Utan = deltaP/rEff/fanEff/(rpm*pi/30.0);
where: where:
...@@ -45,7 +45,7 @@ Description ...@@ -45,7 +45,7 @@ Description
Alternatively an inner and outer radii can be used instead of rEff. The Alternatively an inner and outer radii can be used instead of rEff. The
Utan is as follow for r > rInner and r < rOuter Utan is as follow for r > rInner and r < rOuter
Utan = deltaP/r/fanEff/rpm/pi/30.0; Utan = deltaP/r/fanEff/(rpm/pi/30.0);
where: where:
......
Markdown is supported
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