Hi,
i am working on the power flow of DC microgrid. i am using a behavioral model of power converter, with the code source as follows:
equations
assert(Droop>=0)
if Fault < 0.5
v1 == p1.v - n1.v;
v2 == p2.v - n2.v;
v2 == vref + Droop * i2;
i2 == -(v1*i1)/v2;
else
v1 == p1.v - n1.v;
v2 == p2.v - n2.v;
v2 == 0;
i1 == 0;
end
end
i have a voltage source connected in parallel with other sources, the bus voltage is 350V, the want to limit the power of one source in 1kW. could you please help to solve the problem. i have joined a screenshot of the converter with the voltage source