CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Correcting CofR after a simulation (https://www.cfd-online.com/Forums/openfoam-post-processing/144755-correcting-cofr-after-simulation.html)

alirezab November 20, 2014 14:36

Correcting CofR after a simulation
 
Dear all,

I have made a terrible mistake and I really would appreciate your help. I have run around 80 (long) simulations, extracting forces that are exerted on the body of a cylinder. Most of them have been run with CofR set to (0 -1 0) in the force function and the results were fine, but then for some weird reason at some point I changed this to (0 0 0). Now all my results are messed up. Is there anyway I could still match the CofR of the different simulation together (in matlab or anything) so that I wouldn't have to spend another week running my simulations?? Or any other way to fix this? I would really appreciate any help asap.

Thank you in advance
A

Phicau November 21, 2014 02:47

Hi Alireza,

the force function is a funtion object (i.e. located in controlDict and evaluated at runtime), right?

You just have to change the CofR and run execFlowFunctionObjects. Of course, you only obtain an output for the time steps that are saved.

Best,

Pablo

alirezab November 26, 2014 07:04

Great! That did the trick. Thanks a lot!


All times are GMT -4. The time now is 22:25.