TAGGED: apdl-commands, scripting, workbench
-
-
October 20, 2023 at 10:06 pm
Luiza Oltean
SubscriberHello everyone!
I'm working in workbench mechanical (2022r2) in a coupled field module. I want to insert apdl commands in the tree to read a table and interpolate to get some results.
I have a file (txt with values separated by comma)with element ids and for each element i have temperature and two parameters defined. Separately i have a 3D table with a result(val) based on temperature and the two parameters. !
So in the table the value is defined as val1(param1,param2,temp).
How can i read my file and interpolate on the table with apdl commands inserted in the tree? I am new to apdl.
Is there a way to do this with mechanical scripting?/INQUIRE,numlines,LINES,'test_complete','txt'
*DEL,mytable,,NOPR
*DIM,mytable,TABLE,numlines,4 ! table array to hold data
*TREAD,mytable,'test_complete','txt','',,this is what i used. i know it's not defined properly but i can't figure out how to define it.
Any help is much appreciated! -
October 23, 2023 at 5:43 pm
Ashish Khemka
Forum ModeratorHi,
Please see if the following links help:
How to access the ANSYS Online Help
Â
Also, search internet for topics titled:
The *TREAD Command and Comma-Separated Values (CSV)
Using External Data in ANSYS Mechanical to Tabular Loads with Multiple Variables
Â
Please see if these help.
Regards,
Ashish Khemka
-
- The topic ‘Read data from txt with apdl commands inserted in tree’ is closed to new replies.
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Real Life Example of a non-symmetric eigenvalue problem
- Nonlinear load cases combinations
- How can the results of Pressures and Motions for all elements be obtained?
-
4167
-
1487
-
1338
-
1171
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.