Skip to content

Faulty parameter propagation in IntersectivePWM #4089

Open

Description

@christiankral

In the model Modelica.Electrical.PowerConverters.DCAC.Control.IntersectivePWMIntersectivePWM there are issue with the propagation of three parameters:

1 Array size of trapezoid

Modelica.Blocks.Sources.Trapezoid trapezoid[3](...);

should be

Modelica.Blocks.Sources.Trapezoid trapezoid[m](...);

2 Start time porpagated to trapezoid

  Modelica.Blocks.Sources.Trapezoid trapezoid[3](
    each final amplitude=uMax,
    each final width=0,
    each final nperiod=-1,
    each final offset=-uMax/2,
    each final rising=0.5/f,
    each final falling=0.5/f,
    each final period=1/f,
    final startTime={startTime - 1.25 + (if refType == ReferenceType.Triangle1
         then 0 else k)/m for k in 0:m - 1}/f)
         if (refType==ReferenceType.Triangle1 or refType==ReferenceType.Triangle3);

The units of the expression final startTime=startTime - 1.25 + (if refType == ReferenceType.Triangle1 then 0 else k)/m for k in 0:m - 1}/f do not match as startTime is added 1.25 and other real expressions.

3 Start time porpagated to sawTooth

Similar issue as 2. The propagation reads final startTime={startTime - 1.5 + (if refType == ReferenceType.Sawtooth1 then 0 else k)/m for k in 0:m - 1}/f


I understand the different phase start times associated with Triangle1 and Triangle3 but I can only suspect that the term 1.5 shall ensure that

  • all the reference signals are fully up at time >= startTime
  • the first reference signal start with half the maximum value

So my understanding for a three phase saw tooth PWM is:

sawTooth3

Activity

  1. added
    bug
    on Mar 12, 2023
  2. added this to the maintenance milestone on Mar 12, 2023
  3. added
    L: Electrical.PowerConverters
    on Mar 12, 2023
  4. modified the milestones: maintenance, MSL4.1.0 on Apr 17, 2023
  5. modified the milestones: MSL4.1.0, MSL4.2.0 on Feb 11, 2025
  6. added a commit that references this issue on Sep 11, 2026
    1889f92
  7. AHaumer commented on Sep 11, 2026

    @AHaumer
    Contributor

    According to my investigations, the timing of the carrier signals is as shown here:

    Image
  8. linked a pull request that will close this issuePWM resolves #4089 and #4090 and #4839 #4812on Sep 11, 2026
  9. added a commit that references this issue on Oct 20, 2026
    26d9679
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

L: Electrical.PowerConvertersbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions