Opened 7 years ago
Closed 7 years ago
#4964 closed defect (fixed)
Issue with Real*Complex product in NF
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Please check Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor. The following error is reported:
Error: Cannot resolve type of expression aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.effectiveTurns * Modelica.ComplexMath.exp(Complex.'constructor'.fromReal(0.0, aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.orientation)). The operands have types Real, Complex in component <NO_COMPONENT>.
This issue affects all Modelica.Magnetics
models. If I am not mistaken, it also prevents the PowerGrids
library to compile, as I have a similar issue involving sqrt(3)*Complex(v_re,v_im)
.
Change History (3)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
What is strange is that models such as
model Test Complex z,w; Real x; equation z = Complex(1,time); w = sqrt(3)*z; end Test;
work fine.
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 0095bb1. The model now fails due to what superficially looks like a constant evaluation issue, but the actual issue is because array bindings coming from an outside scope isn't handled correctly.
Note:
See TracTickets
for help on using tickets.
@perost, unfortunately this issue is still unsolved, as it is for the PowerGrid library, where I still get