Hi Everyone,
I have developed a Python script to automate the modeling of 205 tests in 3DEC. However, I am encountering an error related to mesh generation, which suggests that I need to adjust the size of the BBM. To handle this issue, I want the program to skip the current test and proceed to the next one whenever this error occurs.
As I understand it, this error needs to be handled within the FISH, or in Python (if I am correct). I know that “system.error” can be used in FISH to handle errors, but I am unsure how to apply it in this case. I’ve tried AI assistant with not success.
Would “try, except, and else” in Python be used as a possible solution?
Could you please guide me on how to handle this error so that when the program detects it, the current test is skipped, and it moves on to the next one?
Here is the error:
3dec>block zone generate edgelength [max_zone_length]
— 35107 blocks changed to deformable
35106 blocks were zoned
mesh generation failed for the following blocks :
block centroid volume
32535 1.977E+01 4.454E+00 7.187E+00 3.752E-02
1 blocks were not zoned
— Assigning DFN fracture IDs to subcontacts
*** Python error: 'mesh generation error\n change specified edge length or split blocks\n While processing line 49 of source …
Thanks,
Mahdi