Modelica Buildings Electrical Problem [closed]
Hello all, I am trying to connect my 3 generation sources to the load, but I am having difficulty connecting the components. I tried drawing the connection and manually coding, but openmodelica seems to delete my connection every time. Thank you for the help.
model ce_cert_mg_building
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Grid grid_connection annotation(
Placement(visible = true, transformation(origin = {-82, 52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.PVSimpleOriented solar_array annotation(
Placement(visible = true, transformation(origin = {-82, 12}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Resistive building_load annotation(
Placement(visible = true, transformation(origin = {0, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Battery BESS(EMax = 1800000000, SOC_start = 20) annotation(
Placement(visible = true, transformation(origin = {-84, -34}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Line grid_line(terminal_n = grid_connection) annotation(
Placement(visible = true, transformation(origin = {-48, 52}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Line solar_line(terminal_n = soalr_array) annotation(
Placement(visible = true, transformation(origin = {-48, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Line BESS_line(terminal_n = BESS) annotation(
Placement(visible = true, transformation(origin = {-50, -34}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(BESS.terminal, BESS_line.terminal_n) annotation(
Line(points = {{-74, -34}, {-60, -34}}, color = {255, 255, 255}));
annotation(
uses(Buildings(version = "9.1.0")));
end ce_cert_mg_building;
Duplicate of this post.