Display displacement
This script visualizes displacement fields from a gcrack simulation and saves them as a series of images.
Description
The script reads displacement data, applies potential transformations (warping), and saves the resulting image at each load step.
Usage
To visualize the displacement fields, run the following command in the results_<name> directory:
This command generates one image file per load step.
Arguments
You can pass different arguments to the script. For detailed information on available options, use:
Creating a Video Animation
The generated images can be used to create a video animation of the simulation. Here's an example using ffmpeg:
export_displacement_figures(factor, extension)
Export the displacement fields into image files.
Attributes:
| Name | Type | Description |
|---|---|---|
factor |
float
|
Amplitude of the displacement warping. |
extension |
str
|
Extension of the image file (e.g., |
Source code in src/gcrack/tools/display_displacement.py
main()
Entry point of gcrack_displacement_plotter.