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

Obtaining forces/moments during runtime

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 31, 2022, 08:22
Post Obtaining forces/moments during runtime
  #1
New Member
 
Adrian del Ser
Join Date: Oct 2021
Posts: 15
Rep Power: 4
adrian.delser is on a distinguished road
Hi,


Is there a way to obtain forces and moments on an object in a simulation directly in the solver (eg myCustomSolver.C). I know I can generate them using ForceCoeffs and output them in a .dat file or a log file, but I would like to obtain the most recent moment/force as a variable in myCustomSolver.C during runtime directly (instead of trying to read it from the log/dat files, which might be slower. Is this possible?


Thanks.
adrian.delser is offline   Reply With Quote

 

Tags
forcecoeffs, moment coefficient, processing


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
Duplicate entry alphaContactAngle in runtime selection table fvPatchField Roesch OpenFOAM Programming & Development 2 January 12, 2021 03:35
Probes/Sensors in runtime gabitinho OpenFOAM Post-Processing 9 August 14, 2015 12:55
wallGradU at runtime kkpal OpenFOAM Post-Processing 6 June 12, 2015 19:56
Problem in3D model processing mebinitap OpenFOAM 2 December 12, 2014 04:40
runTime out of scope in functionObject Sune OpenFOAM Programming & Development 2 September 26, 2012 02:11


All times are GMT -4. The time now is 13:44.