/salome2ccx

Salome to CalculiX mesh exporter: outputs Salome mesh to the CalculiX INP file.

Primary LanguageCGNU General Public License v3.0GPL-3.0

© Lucio Gomez, April 2016
© Ihor Mirzov, August 2019
Distributed under GNU General Public License v3.0




How to use | Screenshots | Videos | Your help | TODO | For developers




Salome to CalculiX mesh exporter

Outputs a Salome mesh to CalculiX .inp file. Generates temporary UNV file and converts it to INP format. For now two converters are available:

  • unical3, Otto-Ernst Bernhardi, August 2011
  • unv2ccx, Ihor Mirzov, August 2019

Now script supports multiple mesh processing.



How to use

List of needed files:

How to use:

  • Prior running the script update variables cgx_bin and script_dir in the code.
  • In Salome select the mesh you wish to export.
  • Run script salome2ccx.py from the Mesh module (Ctrl+T or File->Load Script...)

To be able to open conversion result in CalculiX CGX, configure path to executable in the script. Default path is /usr/local/bin/cgx (Linux).

See folder tests for list of successfully converted models.



Screenshots

INP mesh successfully exported from Salome to CalculiX Advanced Environment:

Screenshot



Videos

Old version Youtube video:

Salome Mesh to Calculix tests



Your help

Please, you may:

  • Star this project.
  • Simply use this software and ask questions.
  • Share your models and screenshots.
  • Report problems by posting issues.
  • Do something from the TODO-list.



TODO

  • Add logging output to the Salome python console.

  • Debug 'Delete edges and faces' feature.



For developers

Here could be found sources and binaries for the unv2ccx converter.

To compile unical converter in Windows you'll need gcc from Cygwin. File cygwin1.dll is used by unical3.exe. In linux use command:

gcc unical3.c -o unical3

GUI uses PyQt library. The script shouldn't be mixed with Python 3, because Salome API uses Python 2.