Skip to content
Snippets Groups Projects
Commit 2086b7bf authored by Henry's avatar Henry
Browse files

SRFFreestreamVelocityFvPatchVectorField: Reinstated original functionality

parent 6e8bfb0a
Branches
Tags
No related merge requests found
......@@ -113,15 +113,13 @@ void Foam::SRFFreestreamVelocityFvPatchVectorField::updateCoeffs()
scalar theta = time*mag(srf.omega().value());
refValue() =
//cos(theta)*UInf_ + sin(theta)*(srf.axis() ^ UInf_)
UInf_
cos(theta)*UInf_ + sin(theta)*(srf.axis() ^ UInf_)
- srf.velocity(patch().Cf());
// Set the inlet-outlet choice based on the direction of the freestream
//valueFraction() = 1.0 - pos(refValue() & patch().Sf());
valueFraction() = 1.0 - pos(refValue() & patch().Sf());
//mixedFvPatchField<vector>::updateCoeffs();
inletOutletFvPatchVectorField::updateCoeffs();
mixedFvPatchField<vector>::updateCoeffs();
}
......
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