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

source term for a chemical system

source term for a chemical system

I would like to define the inlet of a chemical unit but when I try to define an equation for the flow, there is an error saying that

"Too many equations, over-determined system. The model has 5 equation(s) and 4 variable(s)."

Here is the test :

package Test9

constant Integer nbr = 3 ;

connector Mixture
  Real C[nbr];
  flow Real q_aq ;
end Mixture;

 
class inlet
    parameter Real Q = 5.55;
    parameter Real C1 = 2.3;
    parameter Real C2 = 0.12;
    parameter Real C3 = 0.475;
    Mixture mixture;
  equation
    mixture.q_aq = Q*2.5 ;
    mixture.C[1] = C1;
    mixture.C[2] = C2 * 2.;
    mixture.C[3] = C3 * 3.1245;
  end inlet;
 
end Test9;

Thank for your help

There are 0 guests and 0 other users also viewing this topic
You are here: