CuboidOrthogonalFlux

model CuboidOrthogonalFlux "Cuboid with flux orthogonal to direction of motion; constant permeability"
    extends FluxTubes.Interfaces.PartialForce;

    SI.Length l = s "Length in direction of motion (orthogonal to flux)"
        annotation (Dialog(
            group = "Variable geometry",
            groupImage = "modelica://Modelica/Resources/Images/Magnetic/FluxTubes/Shapes/CuboidOrthogonalFlux.png"));
    parameter SI.Length a = 0.01 "Width of rectangular cross-section";
    parameter SI.Length b = 0.01 "Height of rectangular cross-section (in flux direction)";
    SI.MagneticFluxDensity B "Homogeneous flux density";
protected
    SI.Area A "Cross-sectional area orthogonal to direction of flux";
equation
    A = a * l;
    B = Phi / A;
    G_m = mu_0 * mu_r * A / b;
    dGmBydx = mu_0 * mu_r * a / b * dlBydx;

    annotation (
        defaultComponentName = "force",
        Documentation(info = "<html>\n<p>\nPlease refer to the enclosing sub-package <a href=\"modelica://Modelica.Magnetic.FluxTubes.Shapes.Force\">Force</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 CuboidOrthogonalFlux;