
On 21.4.2017 01:47, fatune@gmail.com wrote:
Thank you for your answer Robert. It works now. It works even when I set --step=2. But now I have two following questions:
- What is the purpose of step and time sliders in mayavi2 window? The
resulting image of my meshes (including color map and absolute values) doesn't change no matter what value do I set via those sliders. But when I set --step option while running postproc I see different results for different steps.
The sliders should have the same effect as --step - if not, there is a bug somewhere. What are your sfepy and mayavi versions?
BTW. if you change the
'output_format' : 'h5'
in options to
'output_format' : 'vtk'
the example will create a sequence of VTK files, that you can view in another viewer, like paraview, or the mayavi application.
- While I see that stress changes when I increase total time of the
modulation, I don't see that mesh deforms. Is it ever possible to do in sfepy to deform mess over time. Or I should deform the mesh each step by myself via displacment vectors.
Do you mean that for the visualization purposes? If yes, see examples/linear_elasticity/linear_elastic.py - namely the -d option to postproc.py in the docstring - you may want to increase the relative scaling parameter there. Or use the appropriate filter in paraview/mayavi manualy.
r.