Ansys Learning Forum Forums Discuss Simulation Platform Download MATLAB toolbox AnsysAAS Reply To: Download MATLAB toolbox AnsysAAS

vganore
Ansys Employee
Here is the information you need:
 
A small example has been posted last year on one AAS blog at http://www.ansys-blog.com/how-to-make-matlab-apps-for-ansys/.
 
Step by step details are provided in the KB2043289 (link also provided in the public blog) at https://support.ansys.com/AnsysCustomerPortal/en_us/Knowledge%20Resources/Solutions/FLUENT/2042389.
 


  1. The user has to start WB in aaS mode (details provided in the pdf in the solution)

  2. Initialize AAS in Matlab


    • orb=initialize_orb();

    • load_ansys_aas();


  3. Connect to WB from Matlab


    • actwbserver(‘aaS_WbId.txt’)


  4. Create a variable in WB from Matlab (this is a structure that includes all the info in the Schematic)


    • execwbcommand(‘systems=GetAllSystems()’)


  5. Retrieve the content of the WB variable in Matlab


    • querywbvariable(‘systems’)




 
The particular example in the blog shows how to retrieve information about the content of WB schematic. Any WB variable though will be retrieved in the same way:


  1. create the variable (either from WB or from Matalab)

  2. from Matlab query the content of the variable using its name