|
2
|
In the File menu, select Application Libraries.
|
|
3
|
In the Application Libraries, browse to LiveLink for Simulink > Tutorials, and select model_tutorial_llmatlab. Click Open.
|
|
1
|
|
2
|
|
1
|
In the Model Builder, select Heat Transfer in Solids > Initial Values 1 node. In the Settings window set the Temperature field to T0.
|
|
2
|
In the Model Builder, select Heat Transfer in Solids > Heat flux 1 node. In the Settings window enter Text in External temperature field.
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
1
|
|
2
|
|
3
|
In the Add Physics window, expand Mathematics > PDE Interfaces. Select General Form PDE (g) and click Add to Component 1.
|
|
4
|
In the Settings window for General Form PDE, under Units section click Select Dependent Variable Quantity.
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
In the Settings window for General Form PDE, under Source Term section in the da text field enter material.rho*material.Cp.
|
|
12
|
|
13
|
In the Settings window for Initial Values, under Initial Values section in the Initial value for u field enter T0.
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
In the Settings window for Flux/Source, in the Boundary Flux/Source field enter 10[W/(m^2*K)]*(Text-u).
|
|
20
|
|
21
|
|
22
|
In the Settings window for Flux/Source, in the Boundary Flux/Source field enter 1e6[W/(m^2*K)]*(Temp-u).
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
In the Settings window for Domain Point Probe, locate the Coordinates field and enter: 1e-2 1e-2 1e-2.
|
|
6
|
|
7
|
|
8
|
|
9
|
In the Settings window for Eigenvalue, select Search for eigenvalues around and leave it with the default value.
|
|
10
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
In the Settings window for Model Reduction, under Model Reduction Settings section enter the following settings:
|
|
8
|
Under the Outputs section, enter the table as defined below:
|
|
9
|
Now click Compute to generate the reduced-order model.
|
|
2
|
A call to mphreduction creates the state-space matrices needed to simulate the reduced-order system. Enter:
|
|
1
|
At the MATLAB prompt, enter simulink to start Simulink.
|
|
2
|
|
3
|
From the Simulink Library Browser drag the COMSOL Reduced Order SS block from the COMSOL 6.4 library into the empty Simulink diagram.
|
|
4
|
|
5
|
Continue editing the Simulink diagram by adding constant block, a MUX block and a scope so it looks like in the figure below:
![]() |
|
6
|