|
[Sponsors] |
[PyFoam] plotting residuals with different line types or points and fewer variables |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2013, 17:18 |
plotting residuals with different line types or points and fewer variables
|
#1 |
New Member
Gustavo Nicknich
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
Hi everyone,
I'm using pyFoamPlotWatcher and pyFoamPlotRunner to plot the residuals. Problem is I need to use those graphs in a paper, so I can't use colors to differentiate between variables. Rather I would like to use different line or point types available in gnuplot. Also I would like to plot fewer variables. For example, I'm using viscoelasticFluidFoam that solvers for three components in U and six components in tau. Plus p, it makes ten, resulting in a very messy plot. Best regards. |
|
March 23, 2013, 18:56 |
|
#2 |
New Member
Abdulhaq
Join Date: Oct 2012
Posts: 27
Rep Power: 14 |
I can see from the options for pyFoamPlotWatcher that there is one for custom regular expressions, maybe that can be used.
What I would do is use the option: --write-files Code:
pyFoamPlotWatcher.py --silent --write-files --hardcopy --solver-not-running-anymore log |
|
March 23, 2013, 19:59 |
|
#3 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I see your problem with the styles, but that is not so easy to fix (especially for the predefined plots=
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 24, 2013, 14:42 |
|
#4 |
New Member
Gustavo Nicknich
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
I've used aljazari's option with gnuplot and it worked just fine, thanks!
Luckily I was able to avoid regular expressions, since I'm not familiar with it. Best regards. |
|
March 24, 2013, 18:00 |
|
#5 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
They're not that complicated. And very useful (not only in PyFoam, but also in regular OpenFOAM for flexible specifications of boundary conditions)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
March 24, 2013, 19:46 |
|
#6 |
New Member
Gustavo Nicknich
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
Benhard, could you please indicate some material about using regular expressions in OpenFOAM?
|
|
March 25, 2013, 06:20 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 25, 2013, 07:46 |
|
#8 |
New Member
Gustavo Nicknich
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
Thanks, I'll take a look at that.
|
|
Tags |
gnuplot, pyfoam |
|
|