|
[Sponsors] |
January 31, 2022, 17:24 |
Plotting forces with pyFoamPlotRunner.py
|
#1 |
New Member
Alfonso Giancola
Join Date: Nov 2021
Posts: 4
Rep Power: 4 |
Hi guys, I am facing troubles plotting the forces with pyFoamPlotRunner.py. I don't know what to write in the customRegexp to extrapolate the values that I need. Here is the output from the log:
forces forces write: sum of forces: pressure : (676.417 0 5.76293e-14) viscous : (0.0234939 0 5.45593e-18) porous : (0 0 0) The best would be to plot the sum of x pressure and x viscous and so on. Thank you in advance! |
|
February 1, 2022, 17:53 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Simply built a small bash script that executes gnuplot (or a gnuplot script) which uses the data given in postProcessing/<youFOName>/... Here you have the output already as you want and the script will re-read, e.g., each second or if the file was modified.
5 - 10 Min work.
__________________
Keep foaming, Tobias Holzmann |
|
February 6, 2022, 08:12 |
|
#3 | |
New Member
Alfonso Giancola
Join Date: Nov 2021
Posts: 4
Rep Power: 4 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" | ds4719 | Main CFD Forum | 14 | February 18, 2022 18:05 |
Convergence problem of OF | WUYing | OpenFOAM Running, Solving & CFD | 2 | September 20, 2021 10:09 |
Plotting final residuals instead of initial ones through pyFoamPlotRunner.py | eliocpereira | OpenFOAM Running, Solving & CFD | 0 | February 17, 2019 15:16 |
Residuals and forces spiraling out of control before failing | edomalley1 | OpenFOAM Running, Solving & CFD | 3 | September 7, 2018 10:42 |
problem with plotting both forces and coeff | giammy92 | OpenFOAM Post-Processing | 2 | March 23, 2016 04:25 |