unv2abaqus issue
- Massimo De Marchi
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
18 years 1 month ago #1147
by Massimo De Marchi
unv2abaqus issue was created by Massimo De Marchi
Hi, I was trying to convert a Salome mesh to Calculix, with unv2abaqus.
Salome and Calculix have a different node order, so with the node-to-node translator the elements get twisted.
Obviously this will not happen with a linear tet element, but with higher order elements it gets messy.
I guess the procedure would be to create a map between the 2 node order options, and reorder the nodes.
Maybe using a case types[typ] it would be possible to enter an ad hoc function for every element type.
I would gladly help, but my understanding of python is really poor, so before start coding I would like to understand if it is a feasible road.
Moreover there is a lst.pop(0). In my case I would have to access arbitrary nodes. It it possible to use a lst[index] to get the elements?
Thanks,
Massimo
Salome and Calculix have a different node order, so with the node-to-node translator the elements get twisted.
Obviously this will not happen with a linear tet element, but with higher order elements it gets messy.
I guess the procedure would be to create a map between the 2 node order options, and reorder the nodes.
Maybe using a case types[typ] it would be possible to enter an ad hoc function for every element type.
I would gladly help, but my understanding of python is really poor, so before start coding I would like to understand if it is a feasible road.
Moreover there is a lst.pop(0). In my case I would have to access arbitrary nodes. It it possible to use a lst[index] to get the elements?
Thanks,
Massimo
- Massimo De Marchi
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
18 years 1 month ago #1150
by Massimo De Marchi
Replied by Massimo De Marchi on topic Re:unv2abaqus issue
Hi,
I was able to correctly convert the 10 nodes tet. I guess it will be rather easy to solve the same way the 20 nodes brick or any other element.
The problem is I started converting between the MED node order and the calculix one.
unfortunately the I-Deas unv file describes the elements in a third way, and I wasn't able to find the documentation about it.
Massimo
I was able to correctly convert the 10 nodes tet. I guess it will be rather easy to solve the same way the 20 nodes brick or any other element.
The problem is I started converting between the MED node order and the calculix one.
unfortunately the I-Deas unv file describes the elements in a third way, and I wasn't able to find the documentation about it.
Massimo
- Joël Cugnoni
-
- Offline
- Moderator
-
18 years 1 month ago #1151
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:unv2abaqus issue
Hello,
sorry for the problem, I did not discover it before as I have not really tested this piece of code in detail (it was intended as a simple example for UNV2X module).
But if you can give me the corresponding node numbering table for quadratic solids (tets and hexa) & shells, it will be very simple to implement for me. In fact I already did this for another converter (unv2impact by JMB).
I am also very interested in having a goo translator between UNV and Calculix. I can code rather quickly but I have unfortunatelly not enough time to test all the possible scenarios.. so your feedback is very usefull.
Best regards,
J.Cugnoni
PS:
Do you have the UNV format description?
If not I can send you a copy by email.
sorry for the problem, I did not discover it before as I have not really tested this piece of code in detail (it was intended as a simple example for UNV2X module).
But if you can give me the corresponding node numbering table for quadratic solids (tets and hexa) & shells, it will be very simple to implement for me. In fact I already did this for another converter (unv2impact by JMB).
I am also very interested in having a goo translator between UNV and Calculix. I can code rather quickly but I have unfortunatelly not enough time to test all the possible scenarios.. so your feedback is very usefull.
Best regards,
J.Cugnoni
PS:
Do you have the UNV format description?
If not I can send you a copy by email.
Joël Cugnoni - a.k.a admin
www.caelinux.com
- Massimo De Marchi
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
18 years 1 month ago #1152
by Massimo De Marchi
Replied by Massimo De Marchi on topic Re:unv2abaqus issue
Hi,
I was able to insert in the translator a mapping function, and I was able to correctly map the 10 nodes tet elements.
I created a single element and estrapolated the map.
I have the unv documentation, but I wasn't able to find the node order convention.
Am I missing something? If it is present in the documentation it will be a rather easy task...
Massimo
I was able to insert in the translator a mapping function, and I was able to correctly map the 10 nodes tet elements.
I created a single element and estrapolated the map.
I have the unv documentation, but I wasn't able to find the node order convention.
Am I missing something? If it is present in the documentation it will be a rather easy task...
Massimo
- paco_espinola
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
18 years 1 month ago #1153
by paco_espinola
Replied by paco_espinola on topic Re:unv2abaqus issue
I have similar problem using nastran to salome.
I cannot traslate the thikness materilas rigid links ant integrated points.
I only can see the model inside salome but I am no sure how to add at less material and thikness.
Maybe Is a better to traslate directly to code aster.
But I do not have the keywords for aster.
With this script at less is possible to se nastran models.
I cannot traslate the thikness materilas rigid links ant integrated points.
I only can see the model inside salome but I am no sure how to add at less material and thikness.
Maybe Is a better to traslate directly to code aster.
But I do not have the keywords for aster.
With this script at less is possible to se nastran models.
- paco_espinola
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
18 years 1 month ago #1159
by paco_espinola
Replied by paco_espinola on topic nastran to salome
this script works for shells and solids
Attachment nastran_to_univ.gz not found
Moderators: catux
Time to create page: 0.140 seconds