ansys/pydpf-core

Add deformation to the mode shape animation

Opened this issue · 1 comments

Description of the feature

The actual mode shape animation looks like this example presented in the documentation. Even though the method animate_mode allows the deform_scale_factor parameter, only the colors changes in the animation. I expected that the node coordinates changes too (acording to the mode shape).

If some of you could please implement that feature I would apreciate it so much.

Steps for implementing the feature

No response

Useful links and references

No response

I've driven into the code and found a way (not necessarily the better) to show the mode shape deformation. Below I describe the solution:

Here:

wf.set_output_name("field", scaling_op.outputs.field)
I added an addtional workflow output for deform_by as follows:
wf.set_output_name("deform_by", scaling_op.outputs.field)

Finally, in method

I passed the parameter scale_factor with the following value: scale_factor[frame]