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

Solving differential equation in Matcad Prime 2

ptc-4501676
1-Visitor

Solving differential equation in Matcad Prime 2

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

ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

14 REPLIES 14

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

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

Thanks a lot Valery 🙂

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.

Thanks again Valery. It is really helpful.

Kikis

I am glad to help you!

Send please the final solution - with more remarks.

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.

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.

Wow this perferct Valery. Thanks ..

Valery, how did you make the marker callout in the graphic ver-5 have variable and unit separate by a line? I tried to input variable and then unit but it didn't work. Thanks

MCR-ver-5.png

thanks Valery. I understand now, we have to put division operator after variable and then put the unit.

Krisnandito Hardjoko wrote:

thanks Valery. I understand now, we have to put division operator after variable and then put the unit.

...and then put the unit of the axes.

I can forgive much to Mathcad Prime for the fact that it can work with units by the ODE solving.

I agree 🙂

Announcements

Top Tags