Giter Site home page Giter Site logo

calculix / salome2ccx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from psicofil/salometocalculix

7.0 2.0 1.0 17.7 MB

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

License: GNU General Public License v3.0

Python 13.91% C 86.09%
salome calculix mesh export converter unical universal unv inp

salome2ccx's Introduction

© 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.