UNV2Calculix mesh conversion
- Thorsten
- Offline
- New Member
- Posts: 4
- Thank you received: 0
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
- JMB
- Topic Author
- Offline
- Elite Member
- Posts: 166
- Thank you received: 0
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
- Thorsten
- Offline
- New Member
- Posts: 4
- Thank you received: 0
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.
- dip28p
- Offline
- New Member
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