Awesome
Call ANSYS in MATLAB
This code try to use MATLAB to call the ANSYS software to do FEM anlysis, which can save you a lot of times when you want to do multiple design computations using ANSYS, especially for tasks like approximation and optimization.
It works as following:
- MATLAB writes the design parameters X into input file (e.g. para_in.txt);
- MATLAB calls ANSYS software to execute the APDL file (e.g. apdl.txt).
- The APDL file reads the parameters from the input file and writes the analysis result to the output file (e.g. para_out.txt).
- MATLAB reads the results from the output file.