Skip to content

Bug: LinearTransformer model in PowerElectronics seems to have an incorrect residual #375

@alexander-novo

Description

@alexander-novo

Description how to reproduce the bug

In LinearTransformer::evaluateResidual, there is no residual evaluated for f[3] and f[2] is evaluated twice:

f_[2] = y_[0] - R0_ * y_[2] - L0_ * yp_[2] - M_ * yp_[3];
f_[2] = y_[1] - R1_ * y_[3] - M_ * yp_[2] - L1_ * yp_[3];

This is almost certainly a bug

GridKit™ version

75b2355

System and environment details

N/A

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions