Display wulff diagram
This script visualizes the Wulff diagram from a gcrack simulation and saves them as a series of images.
Usage
To generate the Wulff diagram from a gcrack simulation (with export_wulff_diagram=True), 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
Vectorial Images (SVG, EPS)
The generated images can be used to create a video animation of the simulation.
Here’s an example using magick:
Raster Images (PNG, JPG)
The generated images can be used to create a video animation of the simulation.
Here’s an example using ffmpeg:
export_wulff_diagram(csv_file, extension)
Export the Wulff diagram for the given csv file.
Attributes:
| Name | Type | Description |
|---|---|---|
csv_file |
Path
|
Path to the csv file containing the Wullf diagram data. |
extension |
str
|
Extension of the image file (e.g., |
Source code in src/gcrack/tools/display_wulff_diagram.py
main()
Entry point of gcrack_wulff_plotter.