Skip to main content
1-Visitor
June 8, 2020
Question

Adding constraint to ODE block

  • June 8, 2020
  • 2 replies
  • 1260 views

I have a set of 3 differential equations which I solve with ODE. However I would like to add a constaint to c.MOAQ, which value needs to be below 0.001. How can I implement this into the ODE block?

 

 

2 replies

21-Topaz II
June 8, 2020

please, attach the file. Thanks.

23-Emerald IV
June 8, 2020

You definitely need to attach your worksheet!

Apart from that, it should be simple to find c.MOX, by integration of the rhs of the first equation. I assume that r.MO, r.EX and c.x are known functions.

Then you fill c.MOX into the second equation and solve that differential equation. Again, D must be a known function of t. This gives you c.MOAQ.

Finally c.MODD is found after filling c.MOAQ in the rhs of the third equation and integrating that.

 

Success!
Luc