Where 'ANSYS_WORK_DIR' and 'JOBNAME' are names chosen by yourself. This will create the file 'model.txt' located in the ANSYS working folder:Ĭ:\.\ANSYS_WORK_DIR\JOBNAME_files\dp0\SYS\MECH\model.txt In Classic, run macro by clicking 'File>Read input from.' and selecting the 'export.mac' file. In Workbench, add a 'Commands (APDL)' block under 'Solution' and paste in the macro contents. Use the supplied 'export.mac' to do this. The function is intended for further postprocessing FE results in Matlab.īefore using the function, the ANSYS model must be exported to a text file. All data is returned in the 'model' struct as explained below. Both displacement- and stress results are imported. This function reads the mesh data for all structural elements listed below, but includes corner nodes only (i.e.