Hello all,
This is probably a really stupid question, but how would I connect the electrical lines the modelica building library. I tried dragging my 3 electrical sources first to the line and then to the load, but it does not let me connect them. I tried doing with code as well, but it did not work. Here is my model for reference. Thank you for the help.
I tried to attach my .mo file, but I do not have 10 points yet, so I will just post the code below:
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;