|
1
|
|
2
|
In your COMSOL Multiphysics installation directory, find the folder models/LiveLink_for_Excel/Tutorials.
|
|
3
|
|
4
|
Go to the Excel File menu and select COMSOL. In the COMSOL backstage view click Open button
|
|
6
|
|
8
|
|
9
|
In the Excel Options window, select Customize Ribbon and on the right side of the window under Main Tabs select Developer.
![]() |
|
10
|
Click OK.
|
|
11
|
|
12
|
|
13
|
In the Assign Macro window that just pops-up, under the Macro name list select busbarUpdate. Click OK.
|
|
The worksheet including the full example code is available at XLSM-format in the LiveLink™ for Excel® Application Library LiveLink_for_Excel/Tutorials/busbar_llexcel.xlsm
|
|
19
|
|
30
|
You can now close the Microsoft Visual Basic for Applications window and test to run the subroutine by editing the model parameter L, cell B6, or the sweep parameters wbb and Vtot, cell B9 to F9 and B10 to F10, respectively. Click the Update button to update the workbook with the current solution.
|