crack.py example - include crack dimension in script
The crack.py
example script may throw an error because the dimensionality of the crack is not explicitly specified in the script. You can recreate this problem in a Jupyter Notebook, by first running then crack3d.py
script, followed by the crack.py
script within the same session. It seems that the "Crack" plugin will use the dimension of the previous crack element, when nothing else is specified. Suggest updating the crack.py
script to include the line:
gmsh.plugin.setNumber("Crack", "Dimension", 1)