forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cuboid.mo
29 lines (25 loc) · 1.27 KB
/
Cuboid.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
within Modelica.Magnetic.FluxTubes.Shapes.FixedShape;
model Cuboid
"Flux tube with rectangular cross-section; fixed shape; linear or non-linear material characteristics"
extends BaseClasses.FixedShape;
extends Modelica.Magnetic.FluxTubes.Icons.Cuboid;
parameter SI.Length l=0.01 "Length in direction of flux" annotation (
Dialog(group="Fixed geometry", groupImage=
"modelica://Modelica/Resources/Images/Magnetic/FluxTubes/Shapes/CuboidParallelFlux.png"));
parameter SI.Length a=0.01 "Width of rectangular cross-section"
annotation (Dialog(group="Fixed geometry"));
parameter SI.Length b=0.01 "Height of rectangular cross-section"
annotation (Dialog(group="Fixed geometry"));
equation
A = a*b;
G_m = mu_0*mu_r*A/l;
annotation (Documentation(info="<html>
<p>
Please refer to the enclosing sub-package <a href=\"modelica://Modelica.Magnetic.FluxTubes.Shapes.FixedShape\">FixedShape</a> for a description of all elements of this package and to <a href=\"modelica://Modelica.Magnetic.FluxTubes.UsersGuide.Literature\">[Ro41]</a> for derivation and/or coefficients of the equation for permeance G_m.
</p>
</html>"), Icon(graphics={
Text(
extent={{-150,50},{150,90}},
textString="%name",
textColor={0,0,255})}));
end Cuboid;