CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

confused about components of totForce in forces function object

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2013, 23:00
Unhappy confused about components of totForce in forces function object
  #1
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
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_);
shash is offline   Reply With Quote

Old   July 7, 2013, 03:23
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
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
fumiya is offline   Reply With Quote

Old   July 7, 2013, 03:52
Default
  #3
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
thanks Fumiya, I get it now.
shash is offline   Reply With Quote

Reply

Tags
drag coefficient, force coefficients, lift and drag


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 06:58.