Skip to content
Snippets Groups Projects
Commit e5e5c9a8 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: forceCoeffs FO updated following update to use functionObjectState

Properties stored in state dictionary:
- Moment coefficient: Cm
- Drag coefficient: Cd
- Lift coefficient: Cl
- Front lift coefficient: Cl(f)
- Rear lift coefficient: Cl(r)
parent bd1d9ddf
Branches
Tags
1 merge request!5Feature function objects
......@@ -386,6 +386,15 @@ void Foam::forceCoeffs::execute()
}
}
// Write state/results information
{
setResult("Cm", CmTot);
setResult("Cd", CdTot);
setResult("Cl", ClTot);
setResult("Cl(f)", ClfTot);
setResult("Cl(r)", ClrTot);
}
if (writeFields_)
{
const volVectorField& force =
......
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