[Gmsh] Batch plotting: On selecting the "TimeStep" in a med result file.
cgeuzaine at ulg.ac.be
Tue Jul 17 15:52:35 CEST 2012
On 14 Jul 2012, at 21:11, Eiser, Sebastian wrote:
> Dear all,
> Thanks Christophe et al for providing and continuously improving `gmsh`.
> I'm currently trying to batch plot a series of results obtained by code_aster. The format is 'med' and it contains three time steps. I saved the options for plotting from the GUI (File -> Save Options -> For current file).
> I want to look at the last time step and this is correctly put into the .opt file:
> View.NbTimeStep = 3;
> View.TimeStep = 2;
> Then, I add
> Merge "result.rmed";
> to the beginning of the .opt file. To my surprise, the first time step (TimeStep = 0) is selected and plotted when running `gmsh plot.opt`. I found a workaround (without the "Merge" line in the .opt file) and by running the following command:
> $> gmsh result.rmed plot.opt
> This gives the desired result. I don't know if I misunderstood something, but this may help other to avoid wasting some time.
Using View.Option will only affect the 0-index view if it exists, i.e., you have to set the option after the view is merged.
If you want to apply an option by default before a view is merged, you can use View.Option (without the "").
> gmsh mailing list
> gmsh at geuz.org
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
More information about the gmsh