CIFASIS / modelicacc

Modelica C Compiler implemented in C++ to develop and test novel algorithms for large scale models.
GNU General Public License v3.0
11 stars 9 forks source link

Remove `flow` declaration from generated model in flatter. #38

Closed joaquinffernandez closed 3 years ago

joaquinffernandez commented 3 years ago

For instance:

model RLC
  constant Integer N=4;
  Real G_p_v;
  flow Real G_p_i;
  parameter Real R_R[N](each start=1);
  parameter Real R_T_ref[N]=fill(300.15,N);
  parameter Real R_alpha[N]=fill(0,N);
  Real R_v[N];
  Real R_i[N];
  Real R_p_v[N];
  flow Real R_p_i[N];
  Real R_n_v[N];
  flow Real R_n_i[N];
  Real R_R_actual[N];
  Real R_LossPower[N];
  Real R_T_heatPort[N];
  parameter Real C_C[N](each start=1);
  Real C_v[N];
  Real C_i[N];
  Real C_p_v[N];
  flow Real C_p_i[N];
  Real C_n_v[N];
  flow Real C_n_i[N];
  parameter Real S_V(start=1);
  Real S_v;
  Real S_i;
  Real S_p_v;
  flow Real S_p_i;
  Real S_n_v;
  flow Real S_n_i;

They must declared as Real variables.