We are now ready to export the results to our finite element analysis program where we can analyze our model.
Before we run our analysis, we will open the coupon_ame.cdb file we just exported and add post-processing commands. These post-processing commands will automatically write the load-displacement results to a text file after the analysis has completed.
/POST26
*CFOPEN, coupon_ame_output, txt
*VWRITE, 'Time', 'U2Top', 'U2Bottom', 'RF2'
(A4, 5X, 6(A10,7X))
NUMVAR,100
NSOL, 2, 284, U, Y, U2
NSOL, 3, 192, U, Y, U2
RFORCE, 4, 21, F, Y, RF2
STORE, MERGE
*GET, size, ACTIVE, 0, SOLU, NCMSS
*DIM, STS, ARRAY, 100, 4
VGET, STS(1,1), 1
VGET, STS(1,2), 2
VGET, STS(1,3), 3
VGET, STS(1,4), 4
*VWRITE, STS(1,1), STS(1,2), STS(1,3), STS(1,4)
(F4.2, 10(',',3X, E12.6))
*CFCLOSE
FINISH
Now we are ready to run our analysis.
>>ansys-helius 180 coupon_ame.cdb