Cuboid

model Cuboid "Flux tube with rectangular cross-section; fixed shape; linear or non-linear material characteristics"
    extends FluxTubes.Interfaces.PartialFixedShape;

    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>\n<p>\nPlease 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.\n</p>\n</html>"));
end Cuboid;