-
-
February 16, 2020 at 12:30 am
reebaln
SubscriberAnsys Maxwell can run a python script from the Tools Menu. The scripts export *.fld files from the field calculator. I need to run a huge number of those scripts (generated in Matlab) at once, but Ansys can't do that. Is there a way of overcoming that?
From there, is there a way to run those scripts from Matlab?
What are the scripting capabilities of Ansys Maxwell when it comes to Matlab?
Does anyone have a way of linking Ansys Maxwell to Matlab?
-
February 17, 2020 at 9:22 am
mbeliaev
Ansys EmployeeHello,
there are multiple ways to do it.
Why do not you use just one Py script where you loop through all quantities needed and export them to different .fld files?
After that you can read them in Matlab for postprocessing
-
February 17, 2020 at 4:24 pm
reebaln
SubscriberThe python script is too long to handle the export of field files for a parametric setup. Also, a single script does not give me the flexibility in selecting and extracting the data.
I found a way around that problem. However, is there an Ansys-Matlab (template/ guide/ or source) to run Ansys from Matlab?
Thank you!
-
November 17, 2020 at 2:58 pm
AissamRiad
Subscriberhave you find a solution for you probleme?n -
November 18, 2020 at 10:42 am
rtk
Ansys EmployeeHello,nMatlab have many external interfaces from which you can call scripts in other formats like .vbs, .py etc.. and even DLLs.nYou can use 'loadlibrary' function in Matlab, if you want to call from DLLs.nAnother way is to call other COM objects from MATLAB (check here).... or use COM API within MATLAB.nSo, for your case, initialize Ansys tool's COM object first and then proceed using MATLAB like I mentioned above.nAlso, you can call MATLAB function from VB . Check herennHope this addressed your concern!nBest Regards,n
-
- The topic ‘Ansys Maxwell Scripting’ is closed to new replies.
-
3472
-
1057
-
1051
-
934
-
902
© 2025 Copyright ANSYS, Inc. All rights reserved.