modelQuadraticCoreAirgap

Educational example: iron core with airgap

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Educational example of a magnetic circuit containing an iron core and an airgap:

Magnetic circuit with iron core and airgap

A current ramp is applied in positive electric direction through the exciting coil, causing a rising magnetomotive force (mmf) in positive magnetic direction of the electromagnetic converter. The mmf in turn causes a magnetic flux through the circuit in the direction indicated by the flux sensor. From that magnetic flux, flux density can be calculated in every element of the magnetic circuit. Flux density is used to derive magnetic field strength. Magnetic field strength times length of the flux line gives magnetic potential difference of each element. The sum of all magnetic potential differences is covered by the mmf of the exciting coil.

Using the parameter values, the results can be validated by analytic calculations:

element cross sectionlength rel. permeability B H mmf
left leg a*a l - a μr flux / cross sectionB/(μr0)H*length
upper yokea*a l - a μr flux / cross sectionB/(μr0)H*length
right leg a*a l - a - deltaμr flux / cross sectionB/(μr0)H*length
airgap a*a delta 1 useful flux / cross sectionB/μ0 H*length
lower yokea*a l - a μr flux / cross sectionB/(μr0)H*length
total Σ mmf = N*I

Note that there is a leakage flux path present. Therefore the total magnetic flux of in core splits into

  • the useful flux through the airgap and
  • the leakage flux through the leakage element.

However, the magnetic voltage across the airgap and the leakage model are equal. The ratio of the useful flux over the flux in the core is equal to 1 - σ. In the core the magnetic flux is the same in every element as they are connected in series. For the calculation of the length of flux lines inside the core, a medium flux line (dashed line) is used

Additionally, a measuring coil is placed in the airgap. Due to Faraday's law, the time derivative of flux causes an induced voltage both in the exciting coil (in positive direction) and in the measuring coil (in negative direction). Since the quasi static current and therefore flux follow a time dependent ramp, the quasi static induced voltages follow a ramp as well.

Note the proper usage of electric and magnetic grounds to define zero potential.

Parameters

TypeNameDefaultDescription
SI.Lengthl0.1Outer length of iron core
SI.Lengtha0.01Side length of square cross section
Realmu_r1000Relative permeability of core
SI.Lengthdelta0.001Length of airgap
Realsigma0.1Leakage coefficient
IntegerN500Number of turns of exciting coil
SI.CurrentI1.5Maximum exciting current

Components

TypeNameDefaultDescription
Modelica.Magnetic.QuasiStatic.FluxTubes.Basic.ElectroMagneticConverterexcitingCoil
Modelica.Magnetic.QuasiStatic.FluxTubes.Shapes.FixedShape.CuboidleftLeg
Modelica.Magnetic.QuasiStatic.FluxTubes.Shapes.FixedShape.CuboidupperYoke
Modelica.Magnetic.QuasiStatic.FluxTubes.Shapes.FixedShape.CuboidrightLeg
Modelica.Magnetic.QuasiStatic.FluxTubes.Shapes.FixedShape.CuboidairGap
Modelica.Magnetic.QuasiStatic.FluxTubes.Basic.ElectroMagneticConvertermeasuringCoil
Modelica.Magnetic.QuasiStatic.FluxTubes.Shapes.FixedShape.CuboidlowerYoke
Modelica.Magnetic.QuasiStatic.FluxTubes.Basic.GroundmagneticGround
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundelectricGround1
Modelica.Electrical.QuasiStatic.SinglePhase.Sources.VariableCurrentSourcecurrentSource
Modelica.Magnetic.QuasiStatic.FluxTubes.Sensors.MagneticFluxSensormagFluxSensor
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundelectricGround2
Modelica.Electrical.QuasiStatic.SinglePhase.Sensors.VoltageSensorvoltageSensor
Modelica.Magnetic.QuasiStatic.FluxTubes.Basic.LeakageWithCoefficientleakage
Modelica.Blocks.Sources.RealExpressionusefulReluctance
Modelica.Blocks.Sources.Constantconst
Modelica.ComplexBlocks.Sources.ComplexRampPhasorcomplexRamp