OpenRadioss / OpenRadioss

OpenRadioss is a powerful, industry-proven finite element solver for dynamic event analysis
https://www.openradioss.org
GNU Affero General Public License v3.0
590 stars 272 forks source link

th_to_csv converter tool #583

Closed dr0n1st closed 1 year ago

dr0n1st commented 2 years ago

The Problem The th_to_csv tool does not work properly.

  1. For global variables and parts: it does not convert the velocities.
  2. For interfaces: it does not convert the name of the variables, it indicates "var XX"

Expected behavior I expect to

  1. have the possibility to get the velocities for the whole studied system (global variables) and for the sub-systems (parts).
  2. identify the outputs by their names, not by guessing.

Desktop (please complete the following information):

sebastienVilleneuve commented 2 years ago

Hi,

Velocity is not a global variable. Concerning Part , you can output XCG , YCG, ZCG if needed , as far as i know, no velocity is available for th variable per part . ( Please check Radioss doc)

Concerning the second point , I let you check README.md : To have full variable names in .csv file, add /TH/TITLE in 1.rad file when running engine : /TH/TITLE write some _TITLES file that contains additional information allowing to have full titles in writen .csv file Reason , is that T01 does not contain this information

Regards, Sébastien

dr0n1st commented 2 years ago

Hi,

Thank you for your quick answer.

I am a Radioss user. I have run the same simulation on both Radios 2022 and OpenRadioss. I would like to post-process my results with python (which is more convenient for my usage than HyperGraph). For that, I need to have access to the information that I usually use (cf. attached documents).

I have a .thy file, not a .t01. I have added /TH/TITLE in the 01.rad file before running OpenRadioss and this is what I get:

time,"INTERNAL ENERGY","KINETIC ENERGY","X-MOMENTUM","Y-MOMENTUM","Z-MOMENTUM","MASS","TIME STEP","ROTATION ENERGY","EXTERNAL WORK","SPRING ENERGY","CONTACT ENERGY","HOURGLASS ENERGY","ELASTIC CONTACT ENERGY","FRICTIONAL CONTACT ENERGY","DAMPING CONTACT ENERGY ","C IE ","C KE ","C XMOM ","C YMOM ","C ZMOM ","C MASS ","C HE ","C HEAT ","D IE ","D KE ","D XMOM ","D YMOM ","D ZMOM ","D MASS ","D HE ","D HEAT "," Contact 1 Contact var 32"," Contact 1 Contact var 33"," Contact 1 Contact var 34"," Contact 1 Contact var 35"," Contact 1 Contact var 36"," Contact 1 Contact var 37"," Contact 1 Contact var 38"," Contact 1 Contact var 39"

global_var

part_var

contact_var

Please, let me know if it is not clear enough.

Best regards,

sebastienVilleneuve commented 2 years ago

Hi,

the outputed file contains what necessary to write some names that are used to identify output ( in place of varxxx ) , If question is : why X-NORMAL FORCE ( for example) is not there , it is because this is not embeded in Radioss itself , it is certainly in the post you're using.

Sébastien

dr0n1st commented 2 years ago

Hello,

Sorry but I do not understand. What do you mean by "this is not embeded in Radioss itself , it is certainly in the post you're using".

The .thy file should contain all the outputs that I requested in HyperMesh, right ?

About the variables names, the conversion tool should name what are those "var 32" to "var 39".

Best regards,

sebastienVilleneuve commented 2 years ago

Hi,

Names are not stored in the T01 file , this file store some indexes that are used by the post to fill the name ( names are stored in the post)

Sébastien