calculix / CalculiX-Examples

CalculiX examples by Prof. Martin Kraska from Brandenburg University of Applied Sciences. Excellent starting point to master parametric modelling with CGX and CCX.
MIT License
299 stars 92 forks source link

CalculiX model files extensions #42

Closed imirzov closed 4 years ago

imirzov commented 4 years ago

Dear Prof. Kraska,

In your wonderful Examples you use too wide variety of file extensions for the same file type - INP. Files with extensions msh, nam, dlo, sur, con, bou, inc, equ, frc, dfl are of the same type and could have the same extension - INP extension.

mkraska commented 4 years ago

This is a design decision made by Klaus Wittig. The files mentioned are generated by CGX with automatic file names based on the command parameters. One might ask Klaus to add an option to append .inp to whatever input snippet is generated for ccx, but I wouldn't really vote for it, as I don't see substantial benefit.

It would be possible to issue renaming commands after each write operation from CGX. However, this would bloat the scripts and reduce the signal to noise ratio (readability).

I think it is quite sensible to restrict the INP extension to files executable by ccx, i.e. top level input files. If you aim at syntax highlighting support in editors, then it should be possible to register additional extensions for abaqus/ccx mode.