Cannot output results from ANSYS 18.2 when run from MATLAB in batch mode
I have problems outputting the results from ANSYS 18.2 when run from MATLAB R2018a in batch mode on a 64-bit Windows 7 machine. I am using the following procedure:
I have created an APDL file for ANSYS called geom_sol_out.txt which contains geometry commands, boundary conditions, loads, solve commands and output command to write results into a text file. I run it from MATLAB by running batch file run_ansys.bat which contains:
"C:\Program Files\ANSYS Inc\v182\ansys\bin\winx64\ANSYS182" -b -i ansysinputreader.txt -o out.dat
with ansysinputreader.txt containing /INPUT,'geom_sol_out','txt','H:\test\',, 0
This works nicely until the SOLVE command in geom_sol_out.txt is reached. After the solution is done, ANSYS simply ignores all the commands following the SOLVE command, so I cannot output the nodal results. I am using /OUTPUT command to output the results into text file. (note: /OUTPUT command works fine for e.g. nodal coordinates when it is called before the SOLVE command, but not when it it is called afterwards)
Can anyone help me with this?
Thank you in advance.