Skip to content

Commit

Permalink
Add electrical quantities per length
Browse files Browse the repository at this point in the history
resistance, reactance, impedance, conductance, susceptance, admittance
  • Loading branch information
christiankral committed Sep 23, 2021
1 parent 364a7f3 commit 7d2e3c1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Modelica/Units.mo
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ end UsersGuide;
final quantity="Capacitance",
final unit="F",
min=0);
type CapacitancePerLength = Real (
final quantity="CapacitancePerLength",
final unit="F/m");
type CapacitancePerArea =
Real (final quantity="CapacitancePerArea", final unit="F/m2")
"Capacitance per area";
Expand Down Expand Up @@ -541,6 +544,9 @@ end UsersGuide;
final unit="H");
type SelfInductance = Inductance(min=0);
type MutualInductance = Inductance;
type InductancePerLength = Real (
final quantity="InductancePerLength",
final unit="H/m");
type CouplingCoefficient = Real (final quantity="CouplingCoefficient", final unit=
"1");
type LeakageCoefficient = Real (final quantity="LeakageCoefficient", final unit=
Expand All @@ -565,6 +571,9 @@ end UsersGuide;
type Resistance = Real (
final quantity="Resistance",
final unit="Ohm");
type ResistancePerLength = Real (
final quantity="ResistancePerLength",
final unit="Ohm/m");
type Resistivity = Real (final quantity="Resistivity", final unit="Ohm.m");
type Conductivity = Real (final quantity="Conductivity", final unit="S/m");
type Reluctance = Real (final quantity="Reluctance", final unit="H-1");
Expand All @@ -574,8 +583,10 @@ end UsersGuide;
final unit="rad",
displayUnit="deg");
type Impedance = Resistance;
type ImpedancePerLength = ResistancePerLength;
type ModulusOfImpedance = Resistance;
type Reactance = Resistance;
type ReactancePerLength = ResistancePerLength;
type QualityFactor = Real (final quantity="QualityFactor", final unit="1");
type LossAngle = Real (
final quantity="Angle",
Expand All @@ -584,9 +595,14 @@ end UsersGuide;
type Conductance = Real (
final quantity="Conductance",
final unit="S");
type ConductancePerLength = Real (
final quantity="ConductancePerLength",
final unit="S/m");
type Admittance = Conductance;
type AdmittancePerLength = ConductancePerLength;
type ModulusOfAdmittance = Conductance;
type Susceptance = Conductance;
type SusceptancePerLength = ConductancePerLength;
type InstantaneousPower = Real (final quantity="Power", final unit="W");
type ActivePower = Real (final quantity="Power", final unit="W");
type ApparentPower = Real (final quantity="Power", final unit="V.A");
Expand Down Expand Up @@ -1148,10 +1164,18 @@ which is only valid in the rotor-fixed coordinate system.
Complex(redeclare Resistance re "Real part of complex impedance (resistance)",
redeclare Reactance im "Imaginary part of complex impedance (reactance)")
"Complex impedance";
operator record ComplexImpedancePerLength =
Complex(redeclare ResistancePerLength re "Real part of complex impedance (resistance) per length",
redeclare ReactancePerLength im "Imaginary part of complex impedance (reactance) per length")
"Complex impedance per length";
operator record ComplexAdmittance =
Complex(redeclare Conductance re "Real part of complex admittance (conductance)",
redeclare Susceptance im "Imaginary part of complex admittance (susceptance)")
"Complex admittance";
operator record ComplexAdmittancePerLength =
Complex(redeclare ConductancePerLength re "Real part of complex admittance (conductance) per length",
redeclare SusceptancePerLength im "Imaginary part of complex admittance (susceptance) per length")
"Complex admittance per length";
operator record ComplexPower =
Complex(redeclare ActivePower re "Real part of complex apparent power (active power)",
redeclare ReactivePower im "Imaginary part of complex apparent power (reactive power)")
Expand Down

0 comments on commit 7d2e3c1

Please sign in to comment.