Global Evaluation and Integration
To get the value of an expression defined with a global scope, use the function
mphglobal
.
1
Evaluate the total applied voltage, defined with the parameter Vtot:
Vtot = mphglobal(model,'Vtot')
Vtot =
0.0200
2
To calculate the total heat produced in the busbar, you can integrate the total heat source using the command
mphint2
. Enter:
Q = mphint2(model,'ec.Qh','volume','selection',1)
The total heat is:
Q =
0.2419
3
Evaluate the total current passing through boundary 43 and retrieve the unit of the integral:
[I,unit] = mphint2(model,'ec.normJ','surface','selection',43)
I =
161.5116
unit =
'A'
4
Evaluate the maximum of the temperature in domain 1:
maxT = mphmax(model,'T','volume','selection',1)
maxT =
323.0784
5
Evaluate the maximum of the temperature on boundary 43:
maxT = mphmax(model,'T','surface','selection',43)
maxT =
330.4062