postproc.py script¶
This is a script for quick Mayavi-based visualizations of finite element computations results.
Examples¶
The examples assume that
python -c "import sfepy; sfepy.test('--output-dir=output-tests')"
has been run successfully and the resulting data files are present.
view data in output-tests/navier_stokes-navier_stokes.vtk
$ python postproc.py output-tests/navier_stokes-navier_stokes.vtk $ python postproc.py output-tests/navier_stokes-navier_stokes.vtk –3d
save a snapshot image and exit
$ python postproc.py output-tests/diffusion-poisson.vtk -o image.png -n
save a snapshot image without off-screen rendering and exit
$ python postproc.py output-tests/diffusion-poisson.vtk -o image.png -n –no-offscreen
create animation (forces offscreen rendering) from output-tests/diffusion-time_poisson.*.vtk
$ python postproc.py output-tests/diffusion-time_poisson.*.vtk -a mov
create animation (forces offscreen rendering) from output-tests/test_hyperelastic_TL.*.vtk
The range specification for the displacements ‘u’ is required, as output-tests/test_hyperelastic_TL.00.vtk contains only zero displacements which leads to invisible glyph size.
$ python postproc.py output-tests/test_hyperelastic_TL.*.vtk –ranges=u,0,0.02 -a mov
same as above, but slower frame rate
$ python postproc.py output-tests/test_hyperelastic_TL.*.vtk –ranges=u,0,0.02 -a mov –ffmpeg-options=”-framerate 2”
- class postproc.ParseDomainSpecific(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
- class postproc.ParseGroupNames(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
- class postproc.ParseOpacity(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
- class postproc.ParseRanges(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
- class postproc.ParseResolution(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
- class postproc.ParseSubdomains(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶