ConstantPermeance

model ConstantPermeance "Constant permeance"
    extends FluxTubes.Interfaces.PartialTwoPorts;

    parameter SI.Permeance G_m = 1 "Magnetic permeance";
equation
    G_m * V_m = Phi;

    annotation (
        defaultComponentName = "permeance",
        Icon(
            coordinateSystem(
                preserveAspectRatio = false,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {-70, 30}, 
                        {70, -30}},
                    lineColor = {255, 128, 0},
                    fillColor = {255, 255, 255},
                    fillPattern = FillPattern.Solid), 
                Line(
                    points = {
                        {-70, 0}, 
                        {-90, 0}},
                    color = {255, 128, 0}), 
                Line(
                    points = {
                        {70, 0}, 
                        {90, 0}},
                    color = {255, 128, 0}), 
                Text(
                    extent = {
                        {-150, 50}, 
                        {150, 90}},
                    lineColor = {0, 0, 255},
                    textString = "%name")}),
        Documentation(
            info = "<html>\n<p>\nThis constant permeance is provided for test purposes and simple magnetic network models. The permeance is not calculated from geometry and permeability of a flux tube, but is provided as parameter.\n</p>\n</html>",
            revisions = "<html>\n<h5>Version 3.2.2, 2014-01-15 (Christian Kral)</h5>\n<ul>\n<li>Added constant permeance model</li>\n</ul>\n\n</html>"));
end ConstantPermeance;