Run Ansys from Matlab
Windows 7 (x64)
ANSYS 13.0
To launch an Ansys file (.mac) from Matlab :
- Run Ansys “Mechanical APDL Product Launcher”
- In the section “Simulation environment”, select “Ansys batch”
- In the File Management tab, select you working directory (where the file .mac is located)
- In the File Management tab, select you input file (this is you file .mac)
- Go to Tools > Display command line
- Copy the command line #cmd
- Open Matlab and run:
dos(‘#cmd’)
- Matlab should return Ans = 0
- If Matlab returns Ans = 100, make sure you can run the file directly in Ansys.
leave a comment