cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Adding constraint to ODE block

MKovacs1
2-Guest

Adding constraint to ODE block

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 2
-MFra-
21-Topaz II
(To:MKovacs1)

please, attach the file. Thanks.

LucMeekes
23-Emerald III
(To:MKovacs1)

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

Top Tags