Opened 10 years ago

Closed 10 years ago

#2758 closed defect (worksforme)

Buildings library: ffd_miami branch not loading

Reported by: Léonard Favre Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: *unknown* Version: trunk
Keywords: Buildings, FFD, ffd_miami, CFDAirHeatMassBalance Cc:

Description

Disclaimer: I'm a true beginner and I'm probably doing a few things wrong with this ticket (Type, Milestone, Version, Components, etc.), sorry.


Wangda Zuo's and Yan Chen's group at CAE Miami are developing a version of the room model in the Buildings library that includes Fast Fluid Flow dynamics, which is a simplified version of CFD:
https://github.com/lbl-srg/modelica-buildings/tree/ffd_miami

Apparently, the file CFDAirHeatMassBalance.mo is problematic when using OMEdit. The problem prevents the whole library version from loading. I don't know where the problem lies. I opened a GitHub issue for that (you'll see the error message there): https://github.com/lbl-srg/modelica-buildings/issues/254

Does anyone know how to solve that?

Trick: Dymola's Demo version makes it possible to load the library version, which looks great!

Thanks for reading!

Change History (3)

comment:1 by Martin Sjölund, 10 years ago

The code in question is:

cat(1, C_start[i] for i in 1:Medium.nC)

Which should not parse (the error-message is correct). I guess the code could be expected to be:

cat(1, array(C_start[i] for i in 1:Medium.nC))

But considering the following three programs produce identical results, I think someone was just confused when writing the code...

model M
  constant Integer n = 3;
  Real c[n];
  Real b[:] = cat(1, array(c[i] for i in 1:n));
end M;
model M
  constant Integer n = 3;
  Real c[n];
  Real b[:] = cat(1, array(i for i in c));
end M;
model M
  constant Integer n = 3;
  Real c[n];
  Real b[:] = c;
end M;

comment:2 by Martin Sjölund, 10 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned

comment:3 by Martin Sjölund, 10 years ago

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.