GenericFluxTube

model GenericFluxTube "Flux tube with fixed cross-section and length; 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/GenericFluxTube.png"));
    parameter SI.CrossSection area = 1e-4 "Area of cross section"
        annotation (Dialog(group = "Fixed geometry"));
equation
    A = area;
    G_m = mu_0 * mu_r * A / l;

    annotation (
        defaultComponentName = "generic",
        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>",
            revisions = "<html>\n<h5>Version 3.2.2, 2014-01-15 (Christian&nbsp;Kral)</h5>\n<ul>\n<li>Added GenericFluxTube</li>\n</ul>\n\n</html>"));
end GenericFluxTube;