Lines in Buildings Library do not seem to connect [closed]

asked 2023-03-24 13:15:29 -0600

grid_designer's avatar

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;
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Aaron Boranian
close date 2023-03-28 10:06:57.889040

Comments

Duplicate of this post.

Aaron Boranian's avatar Aaron Boranian  ( 2023-03-28 10:07:02 -0600 )edit