allintime
Mechanical
- Oct 27, 2017
- 5
Question: How do you use the TREAD command to read a 3D table into APDL? I found help for 1D and 2D, but not 3D.
Background: In APDL, I use tabular boundary conditions in a non-linear, transient analysis. These boundary conditions vary in time and in two directions, X and Y and each has their own local CS. I use 12 tables that are large (50x200x10), so there is a lot of data to read in. I use the following commands to build the table:
*DIM,BULK_TEMPERATURE_1,TABLE,50,200,10,TIME,Y,X,LOCAL_CS_1
BULK_TEMPERATURE_1(0,0,1)=0
...
BULK_TEMPERATURE_1(50,200,10)= 100
I've automated the process of writing this code, but the resulting scripts are large and difficult to work with. I would rather have APDL read the data directly using the TREAD command. I've gotten this to work for a 2D table, but cannot figure it out for 3D. Basically, how do I get data from excel (or matlab) with multiple sheets to read into APDL?
The documentation on TREAD (APDL 17.0 command reference) says it is not applicable for 4 or 5-D tables, but none of the help I've seen online shows an example for 3D. The help just says it needs to be in a "tab-delimited, blank-delimited, or comma-delimited format" but doesn't give an option to read in individual sheets.
Background: In APDL, I use tabular boundary conditions in a non-linear, transient analysis. These boundary conditions vary in time and in two directions, X and Y and each has their own local CS. I use 12 tables that are large (50x200x10), so there is a lot of data to read in. I use the following commands to build the table:
*DIM,BULK_TEMPERATURE_1,TABLE,50,200,10,TIME,Y,X,LOCAL_CS_1
BULK_TEMPERATURE_1(0,0,1)=0
...
BULK_TEMPERATURE_1(50,200,10)= 100
I've automated the process of writing this code, but the resulting scripts are large and difficult to work with. I would rather have APDL read the data directly using the TREAD command. I've gotten this to work for a 2D table, but cannot figure it out for 3D. Basically, how do I get data from excel (or matlab) with multiple sheets to read into APDL?
The documentation on TREAD (APDL 17.0 command reference) says it is not applicable for 4 or 5-D tables, but none of the help I've seen online shows an example for 3D. The help just says it needs to be in a "tab-delimited, blank-delimited, or comma-delimited format" but doesn't give an option to read in individual sheets.