Skip to main content
1-Visitor
June 17, 2012
Solved

Solving differential equation in Matcad Prime 2

  • June 17, 2012
  • 2 replies
  • 5995 views

Hi,

I am a newbie with mathcad.

I am trying to solve differential equations for water flood height calculation.

I followed an example written in previous Matcad and tried to modify it to fit with Mathcad Prime 2.

I don't have the original matcad code, only the print out.

Somehow I couldn't define the equation for dH0/dt and dH1/dt correctly in Mathcad Prime 2. Have tried to see the tutorial example but didn't suceed in define the differential equation.

MCR part.bmp

Thanks for your help

Krisnandito

Best answer by ValeryOchkov

H must be a vector - H[0 and H[1.

0 and 1 are not a subscript - see the attach.

2 replies

24-Ruby IV
June 18, 2012

H must be a vector - H[0 and H[1.

0 and 1 are not a subscript - see the attach.

1-Visitor
June 18, 2012

Thanks a lot Valery 🙂

24-Ruby IV
June 18, 2012

Krisnandito Hardjoko wrote:

Thanks a lot Valery 🙂

You welcome!

More correct solution (with units) in attach.

You can use the odesolve function too (see attach).

In this case you have the solutions as not sets of values but as functions.

1-Visitor
June 18, 2012

Here is the final solution. I added more remark, revised the differential equation and initial condition, and used ODEsolve to find the time when the MCR (H1) reach 4". Thanks to Valery.

24-Ruby IV
June 19, 2012

Krisnandito Hardjoko wrote:

Here is the final solution. I added,,, and used ODEsolve to find the time when the MCR (H1) reach 4".

Sorry, you can find "MCR (H1) reach 4" by using a root function - see the attach.

1-Visitor
June 19, 2012

Wow this perferct Valery. Thanks ..