UNV2Calculix mesh conversion

More
10 years 10 months ago #3940 by Thorsten
Replied by Thorsten on topic Re:UNV2Calculix mesh conversion
Thorsten wrote:

Hello all together,

i've got a problem with using unv2abaqus under windwos.

I've downloaded Python, and the unv2abaqus.py
And i designed the Geometry by Salome, done meshing, exported the mesh as main.unv (e.g.). Now i'd like to calculate the eigenvalues (or something else) by Calculix.
Under windwos i opend a command line, changed directory to my main.unv.
Now i typed in: unv2abaqus.py mesh mesh N
But i got an errormessage (see atatched file error_commandli ne.png)

Can anybody help me with that problem, beacuse i don't understand the matter?

Post edited by: Thorsten, at: 2010/03/07 17:10<br /><br />Post edited by: Thorsten, at: 2010/03/07 17:11

Attachment error_commandline.zip not found

Attachments:

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

More
10 years 6 months ago #4393 by JMB
Replied by JMB on topic Re:UNV2Calculix mesh conversion
Thorsten wrote:

Hello all together,

i've got a problem with using unv2abaqus under windwos.

I've downloaded Python, and the unv2abaqus.py
And i designed the Geometry by Salome, done meshing, exported the mesh as main.unv (e.g.). Now i'd like to calculate the eigenvalues (or something else) by Calculix.
Under windows i opened a command line, changed directory to my main.unv.
Now i typed in: unv2abaqus.py mesh mesh N
But i got an error message (see atatched file error_commandline.png)

Can anybody help me with that problem, beacuse i don't understand the matter?

Post edited by: Thorsten, at: 2010/03/07 17:10<br /><br />Post edited by: Thorsten, at: 2010/03/07 17:11


Hello,

The error "inconsistent use of tabs and indentation" is an indication that the Python code (which uses indentation to decipher code blocks) is messed up. Are you sure you did not alter the source code's tab and indentations?

Regards,
JMB

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

More
10 years 6 months ago #4394 by Thorsten
Replied by Thorsten on topic Re:UNV2Calculix mesh conversion
Hi JMB,

thanks for your help.
It is the original file that i've downloaded. Nothing was changed at the file. The file doesn't work on my windows computer, but it works on my linux machine.

But i've solved the problem by using Netgen as meshtool and export the mesh to abaqus.inp.

Thanks again for your help.

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

More
9 years 7 months ago #5558 by dip28p
Replied by dip28p on topic Re:UNV2Calculix mesh conversion
Hello,

the file unv2abaqus.py in
www.caelinux.org/wiki/index.php/Proj:UNVConvert
Media:unv2xUpd2.zip
is a newest version?

I tried and I think line 112
fil.write('%8d' % (lst.pop(0)))
should be
fil.write(('%8d'+ls) % (lst.pop(0)))

because of *NSET section .

Regards,
dip28p

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

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