CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   confused about components of totForce in forces function object (http://www.cfd-online.com/Forums/openfoam-solving/120424-confused-about-components-totforce-forces-function-object.html)

shash July 6, 2013 22:00

confused about components of totForce in forces function object
 
Hi all,
I am using libforces.so to calculate the darg and lift,
can someone please tell me what are these forces_[],

OpenFOAM-2.2.x /src /postProcessing /functionObjects /forces /forceCoeffs /forceCoeffs.C
Quote:

Field<vector> totForce(force_[0] + force_[1] + force_[2]);
Field<vector> totMoment(moment_[0] + moment_[1] + moment_[2]);

List<Field<scalar> > coeffs(3);
coeffs[0].setSize(nBin_);
coeffs[1].setSize(nBin_);
coeffs[2].setSize(nBin_);

fumiya July 7, 2013 02:23

Hi,

These are the pressure force, viscosity force, and porous force, respectively.
You might want to take a look at the forces.H and forces.C:
Hope this helps,
Fumiya

shash July 7, 2013 02:52

thanks Fumiya, I get it now. :)


All times are GMT -4. The time now is 11:40.