CoreParameters

record CoreParameters "Parameter record for core losses"
    extends Modelica.Icons.Record;

    parameter Integer m "Number of phases (1 for DC, 3 for induction machines)";
    parameter Modelica.SIunits.Power PRef(min = 0) = 0 "Reference core losses at reference inner voltage VRef";
    parameter Modelica.SIunits.Voltage VRef(min = Modelica.Constants.small) "Reference inner RMS voltage that reference core losses PRef refer to";
    parameter Modelica.SIunits.AngularVelocity wRef(min = Modelica.Constants.small) "Reference angular velocity that reference core losses PRef refer to";
    final parameter Real ratioHysteresis(min = 0, max = 1, start = 0.775) = 0 "Ratio of hysteresis losses with respect to the total core losses at VRef and fRef";
    final parameter Modelica.SIunits.Conductance GcRef = if PRef <= 0 then 0 else PRef / VRef ^ 2 / m "Reference conductance at reference frequency and voltage";
    final parameter Modelica.SIunits.AngularVelocity wMin = 1e-6 * wRef;

    annotation (
        defaultComponentPrefixes = "parameter ",
        Documentation(info = "<html>\n<p>\nParameter record for <a href=\"modelica://Modelica.Electrical.Machines.Losses.InductionMachines.Core\">core losses of induction machines</a>\nand <a href=\"modelica://Modelica.Electrical.Machines.Losses.DCMachines.Core\">core losses of DC machines</a>.\n</p>\n</html>"));
end CoreParameters;