Insert & Grow a Crack — ABAQUS
Automates insertion and growth of a single crack in a cube using ABAQUS as the FEA code.
python.exe cube_crack_insert_grow.py
Python, APDL, and shell scripts are provided below as examples; they will need to be edited or modified for your site. If you need assistance with the FRANC3D Python interface, send us email.
The command line and Python interface are described in the FRANC3D V9.2 Command Language & Python Extensions manual.
Tutorials 9 and 15 both use Python scripts. Appendix B of the FRANC3D/ANSYS Tutorial shows how to use Python to edit the output file from FRANC3D prior to FE analysis. Section 15 of the Users Guide shows how to use Python to extend FRANC3D capabilities.
Automating crack insertion, crack growth, and FRANC3D data operations.
Automates insertion and growth of a single crack in a cube using ABAQUS as the FEA code.
python.exe cube_crack_insert_grow.py
Automates insertion and growth of a family of single cracks in a cube using ANSYS as the FEA code.
python.exe insert_grow_loop.py
Python class for 3D vectors used in various Python scripts. Vec3D.pyd, bundled with FRANC3D, can also be used.
Vec3D.py
Extracts SIFs from a .fcg file at the nearest next point to create a SIF history.
python.exe path.py -nearest_path 0.5 manu_s10.fcg
Reverses the first six crack fronts in a .fcg file.
python.exe reverse_first6.py
Utilities for preparing and extracting data from finite-element models.
Extracts ABAQUS contact results for fretting analysis. A .dtp file is created using the ABAQUS Python interface.
ABAQUS Python interface → .dtp
Extracts ANSYS contact results for fretting. A .dtp file is created using the ANSYS APDL interface; run in the ANSYS GUI.
ANSYS APDL → .dtp
Edits an ABAQUS .inp file before analysis.
python.exe editAbaqusInp.py file_name.inp
Edits an ANSYS .cdb file before analysis.
python.exe editAnsysCdb.py file_name.cdb
Extracts template node displacements using .fdb and .pch files.
python.exe NastranPchToDtp.py -fdb fn.fdb -pch fn.pch -dtp fn.dtp
Extracts stress from an ABAQUS odb file to a .dtp file. This script is generated by FRANC3D when using an odb file for crack face tractions.
ABAQUS .odb → .dtp
Scripts for moving FRANC3D and SIF data into other formats.
Converts a FRANC3D .crk file to an .stl file.
python.exe f3d_crk_to_stl.py < crack.crk > crack.stl
Writes .sif file data into an Excel file. Uses a surface crack in a cube with 5 load steps and 6 crack growth steps; uses save_sifs.py and sifs_excel.py.
save_sifs.py + sifs_excel.py
Shell-script templates for running FEA codes from FRANC3D and on clusters.
Template for a bash shell script to submit to an SGE cluster. Replace the ANSYS executable command in FRANC3D with the shell script name.
FRANC3D → shell script → SGE
Bash shell script to execute ABAQUS from FRANC3D. Replace the ABAQUS executable command in FRANC3D with the shell script name.
FRANC3D → shell script → ABAQUS