Export Salome Mesh to Calculix

More
7 years 11 months ago #8606 by Lucio
Export Salome Mesh to Calculix was created by Lucio
Hello everyone. I'm working on developing a script to export the meshes and groups from Salome to format Calculix (inp)

I have attained some degree of success using python a modified script unv2calculix.py and unv2xc.py.

Here I leave a video demonstration of achievements so far:


I have to clean a lot the code before uploading into my github account.

Does it make sense to incorporate the option of viewing the results in CGX after converting the mesh?

Regards
Excuse my bad English

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #8608 by Claus
Replied by Claus on topic Re: Export Salome Mesh to Calculix
Very cool!

I do think it would be valuable to be able to see the results in CGX after conversion. A lot of energy and time would be lost if the simulation was run on a bad mesh.

/C

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #8610 by Lucio
Replied by Lucio on topic Re: Export Salome Mesh to Calculix
Thanks claws!

The code can be found at the following github link : SalomeToCalculix

Regards

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #8672 by Fa-Gung Fan
Replied by Fa-Gung Fan on topic Re: Export Salome Mesh to Calculix
Hello,

I tried the script, but it said:
>>> execfile(r"/home/ffan/SalomeToCalculix/SalometoCalculix.py")
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/ffan/SalomeToCalculix/SalometoCalculix.py", line 38, in <module>
from salome.smesh import smeshBuilder
ImportError: cannot import name smeshBuilder
>>>

Where should smeshBuilder locate? Thanks.

- ffan

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.121 seconds
Powered by Kunena Forum