I couldn't find anything appropriate, although that doesn't mean there is nothing there.
The attached MACRO was written to animate mode shapes generated by CalculiX running within FREECAD.
Preliminary step is to download the 2 attachments, keeping the same names, "animate.py" and "animate.ui".
These are the steps used to generate the data to be animated, these are the usual steps:
- click on "CalculiXccxTools"
- select "Frequency"
- select "Write .inp file"
- select "Run CalculiX"
These are the steps to prepare for and perform the animation:
- open "Macro" in the ToolBar(?).
- select "Macros..." and choose "animate.py" and "execute". A widget "Animate" will be generated in a separate window.
- click on a set of results "CalculiX_frequency_mode_7", for example. This panel must be visible for the animation to work, Note (1).
- select "Abs displacement", for example.
- click the radio button "Displacement/Show"
- click on "Start Animation" in the widget.
- "scale" - scale for the displacements, 1 to 999, this may be a problem if the displacements are very large/small before scaling.
- "factor" - enter the value for the scale, this is linked to "scale"
- "number of steps..." - the number of steps in 1 vibratory cycle, if this value is increased the apparent speed of the animation will slow down.
- "steps/second" - the number of steps displayed per second, if this value is increased the animation will speed up.
- "number of cycles" - the number of cycles in the animation.
- "Start Animation" - starts the animation, this changes to "Stop Animation" during the animation.
Note(2) - you can run this from the python console by entering:
from animate import mac
b = mac()
the last line will cause the window to be displayed. (Note that mac is not "Modal Assurance Criterion").
This set of steps is the only testing of the MACRO I have made.
By following these steps you should be able to animate the results from a static analysis, if you wish.
If this is the wrong place for this, will you move it to the correct one?
system:
ubuntu 18.04 LTS -- 64 bit
freecad: 0.18.3
Feel free to improve this code.
mac