I am new to modelica and I am having difficulty dealing with two pins/ports. For example I am using the class PowerSystems.AC3ph.Inverters.Inverter
, and I am not sure how to connect the inverter.DC
and inverter.vPhasor
pins/ports.
Currently I am connecting pin/port like so:
connect(pVArray.p, inverter.DC) annotation(...);
connect(constant1.y, inverter.vPhasor) annotation(...);
The current problem is that PVSystems.Electrical.PVArray
has two outputs: the positive electric pin, and the negative electric pin, while the inverter only has a single Two_Pin_P DC. I am not sure how to connect both.
inverter.vPhasor
needs two inputs :
Modelica.Blocks.Interfaces.RealInput[2] vPhasor_in if use_vPhasor_in "{abs(v), phase(v)}"
How could I send two real inputs to a single pin? Right now I can only send one as seen above.
I am currently getting an error because of the inverter.vPhasor
because of that
[1] 13:31:47 Translation Error [cert_mg: 65:3-66:62]: The type of variables constant1.y and inverter.vPhasor are inconsistent in connect equations.
Thank you all for the help