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

create forces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2016, 05:02
Default create forces
  #1
New Member
 
Jose
Join Date: Nov 2015
Posts: 3
Rep Power: 10
hoseinr59 is on a distinguished road
Hi all
I need to access the force coefficients in my solver. I am trying to move some controller device on an airfoil based on the feedback from the forces. Does any one know how it is possible to create forceCoeffs in my code ?

Last edited by hoseinr59; September 3, 2016 at 06:44.
hoseinr59 is offline   Reply With Quote

Old   September 3, 2016, 06:37
Default
  #2
New Member
 
Jose
Join Date: Nov 2015
Posts: 3
Rep Power: 10
hoseinr59 is on a distinguished road
label id = runTime.functionObjects().findObjectID("forces");
runTime.functionObjects()[id].execute(true);


This triggers the OpenFOAM::forceCoeffs.write() which is a virtual boolean type function and writes the forces in to a file only.
The type can not be changed to return the forceCoeffs value also.

Is there any way I can make it return the values ?

Last edited by hoseinr59; September 4, 2016 at 04:45.
hoseinr59 is offline   Reply With Quote

Reply


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
Wrong forces coming from forces function object in controlDict Jason_Duguay OpenFOAM Post-Processing 0 April 13, 2016 10:07
[ICEM] how to create a 2d tri mesh with quad mesh in the boundary layer seal2013 ANSYS Meshing & Geometry 3 October 6, 2013 17:09
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07
Problems With Journal When Writing Forces To File Andrew FLUENT 2 September 23, 2005 03:12


All times are GMT -4. The time now is 08:45.