Some scripts that is usable when running CalculiX and salome
-
Mesh in salome. I have only tried the Netgen-1-2-3 mesher...
-
Export the mesh as unv.
-
Convert to inp-file
unv2ccx Mesh.unv
-
Strip of all non 3d meshes (if preferred)
only3d Mesh.inp mesh3d.inp
-
If surfaces is needed, for contact or CFD
surfSet Mesh.inp
-
make jobfile.inp
-
run simulation
-
extract the nodes, nodesets and results into csv-files
nodExtract mesh3d.inp resultExtract jobfile.frd
Now you easily can import into python (or other) for easy processing and plotting
A fantastic tool written by Ihor Mirzov. Thanks Ihor!
Note! unv2ccx is a GPL-v3 licensed code. The source code can be found at:
https://github.com/imirzov/unv2ccx.git
unv2ccx converts unv-files to inp-files for calculix.
Removes 1D and 2D elements from the input file. Netgen uses these when constructing the solid mesh.
Extracts the results in the frd-file to csv-files. Convenient when post-processing in python.
Writes the node info and nodsets to csv-files
Creates a file with the surfaces defind. The element sets from salome are used. Only TET-mesh is accepted.
surfSet filename.inp
gives a file filenameS.inp
A simple installer. Just copies the files to ~/bin and maes them executable. Run from this directory.