Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Variables flow

Variables flow

Hi,
I have a problem with the varible flow during the programing in Modelica, the software always takes me this varible flow = 0 (voulumique or mass flow);
Please could you give me a small example so that I can analyze things.
In advance thank you very much.

class Boucle.Flow
  parameter Real q(quantity = "VolumeFlowRate", unit = "m3/s", start = 10.0);
  Real T(quantity = "ThermodynamicTemperature", unit = "K", displayUnit = "degC", min = 0.0);
  Real p(quantity = "Pressure", unit = "Pa", displayUnit = "bar");
equation
  q = 0.0;
end Boucle.Flow;
Hamza;

Re: Variables flow

Hi,
In the case of a program, that there is a trick to metter in place to define the parameters (data) in a single folder (program) and the results to calculate (production) to another folder (program).
(file parameter or give) up (system program) followed (file résulatats).
In advance thank you very much.

There are 0 guests and 0 other users also viewing this topic