Physics Interface
The Physics node contains the settings of the physics interfaces, including the domain and the boundary settings. Settings are grouped together according to the physics interface they belong to. To model the electrothermal interaction of this example, add the ConductiveMedia and HeatTransfer interfaces to the model. Apply a fixed electric potential to the upper bolt and ground the two lower bolts. In addition, assume that the device is cooled by convection, approximated by a heat flux with a defined heat transfer coefficient on all outer faces, except where the bolts are connected.
1
Create the HeatTransfer interface on the geom1 geometry:
ht = comp1.physics.create('ht', 'HeatTransfer', 'geom1');
2
hf1 = ht.feature.create('hf1', 'HeatFluxBoundary', 2);
hf1.set('HeatFluxType', 'InwardHeatFlux');
Note: The third argument of the create method, the space dimension sdim, indicates which geometry level (domain, boundary, edge, or point) the feature should be applied to. In the above commands, the 'HeatFluxBoundary' feature applies to boundaries, which have the space dimension 2.
3
Now apply cooling to all exterior boundaries 1–43, except the bolt connection boundaries 8, 15, and 43. An InwardHeatFlux boundary condition requires a heat transfer coefficient. Set its value to the previously defined parameter htc:
hf1.selection.set([1:7 9:14 16:42]);
hf1.set('h', 'htc');
4
mphgeom(model,'geom1','facemode','off','facelabels','on')
You can use the controls in the window to zoom and pan to read off the indices.
Note: Alternative methods for obtaining entity indices are described in the LiveLink for MATLAB® User’s Guide. These include the use of point coordinates, selection boxes, or adjacency information.
5
Create the ConductiveMedia interface on the geom1 geometry:
ec = comp1.physics.create('ec', 'ConductiveMedia', 'geom1');
6
pot1 = ec.feature.create('pot1', 'ElectricPotential', 2);
pot1.selection.set(43);
pot1.set('V0', 'Vtot');
7
gnd1 = ec.feature.create('gnd1', 'Ground', 2);
gnd1.selection.set([8 15]);
The model object includes default properties so you do not need to set properties for all boundaries. For example, the Conductive Media interface uses a current insulation as a default boundary condition for the current balance.