How to interface Matlab and Ansys Maxwell ?

37 views (last 30 days)
Nidhesh Dhamodaran
Nidhesh Dhamodaran on 17 Oct 2016
Edited: Hussein Ali on 1 Feb 2022
I am currently working with Ansys Maxwell for the electromagnetic simulations of electric motors. To automate the simulations with different dimensions of different parts of motor, I would like to write a Matlab script and use it as an interface to control Ansys Maxwell. The FEM results will be provided by Maxwell. Only the commands and instructions are sent from Matlab script to Maxwell. I would like to know if this is possible and if there any resources for the mentioned task. Thank you.
  1 Comment
Klaus Kreckler
Klaus Kreckler on 12 Sep 2019
Do you have a solution for your question?
At this time I´m looking for the same kind of code.
Best regards,
Klaus

Sign in to comment.

Answers (2)

Soma Ardhanareeswaran
Soma Ardhanareeswaran on 19 Oct 2016
There is no direct interface to communicate with Ansys Maxwell from MATLAB. However, you can use the 'system' command in MATLAB to invoke the Ansys Maxwell scripts and store the output in a file. Refer to https://www.mathworks.com/help/matlab/ref/system.html for more help on using the 'system' command.
You can then process the output files from the simulator in MATLAB to perform the required operations.
  1 Comment
Nidhesh Dhamodaran
Nidhesh Dhamodaran on 21 Oct 2016
Thank you for the response. I will have a look and get back to you when I have something. Regards, Nidhesh

Sign in to comment.


Hussein Ali
Hussein Ali on 1 Feb 2022
Edited: Hussein Ali on 1 Feb 2022
Can you explain how I can investigate from maxwell Ansys result in MATLAB step by step

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!