Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Write the parameter value to a text file › Reply To: Write the parameter value to a text file
May 15, 2024 at 1:35 pm
dlooman
Ansys Employee
In your commands TIME isn't a parameter, it's a command. The commands should be something like below:
TIMINT, ON
DDELE,ALL,TEMP
time_val=0
*DO,i,1,20,1Â Â !simulation time for 20 seconds
time_val=time_val+0.1
TIME,time_val
*CFOPEN,timeout,txt,,APPENDÂ Â Â Â Â !!! need to APPEND output to file
*VWRITE,time_val
(F9.5)
*CFCLOSE
*ENDDO