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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Adding constraint to ODE block

MKovacs1
2-Explorer

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

Announcements

Top Tags