Skip to main content
1-Visitor
July 31, 2018
Solved

How to solve these ODEs

  • July 31, 2018
  • 5 replies
  • 3201 views

I need to solve these ODEs using MathCAD Prime 2.0. Image of the ODEs is attached.

With initial and end boundary conditions:

v(0)= 0.2

xf (0)= 0.011

Pf (0.34 @ end/exit) = 1.01*10^5

Tf (0) = 80

 

Thanks!

Best answer by LucMeekes

As Fred wrote, you have a few things to clear up, before this can be solved. With Mathcad (Prime) your best way is to try a solve block.

One other observation:

If I interpret right (in Mathcad, as well as in mathematics, x is different from X), your first two equations only deal with x.f(z) and v.f(z) and their derivatives, and you have boundary conditions for x.f(0) and v.f(0). That should allow you to solve x.f(z) and v.f(z) independently of the rest.

The fourth equation gives you P.f(z) once v.f(z) is known.

That leaves the third equation...

 

I suggest you start entering the equations into Prime and reply back here in case you get stuck. Then be sure to attach the Prime sheet, not just a picture.

 

Success!
Luc

5 replies

23-Emerald I
July 31, 2018

You have quite a few undefined terms (constants?)

These might be solvable numerically but all constants would need to be defined.   A symbolic solution is beyond Mathcad. 

 

And how many of the terms on the left hand side of your third equation are functions (or is that three constants times the derivative of temperature?)

Asad1-VisitorAuthor
1-Visitor
August 2, 2018

Thank you for replying. I discussed it with a professor I know, and he proposed a solution which I will try. And yes you are correct I did not add the details of all the constants, my apologies but as for now I would close this question.

And also, the third equation is confusing about whether all the variables are inside the derivative. I would have to derive another one in its place.

LucMeekes23-Emerald IVAnswer
23-Emerald IV
August 1, 2018

As Fred wrote, you have a few things to clear up, before this can be solved. With Mathcad (Prime) your best way is to try a solve block.

One other observation:

If I interpret right (in Mathcad, as well as in mathematics, x is different from X), your first two equations only deal with x.f(z) and v.f(z) and their derivatives, and you have boundary conditions for x.f(0) and v.f(0). That should allow you to solve x.f(z) and v.f(z) independently of the rest.

The fourth equation gives you P.f(z) once v.f(z) is known.

That leaves the third equation...

 

I suggest you start entering the equations into Prime and reply back here in case you get stuck. Then be sure to attach the Prime sheet, not just a picture.

 

Success!
Luc

Asad1-VisitorAuthor
1-Visitor
August 2, 2018

Thank you for replying. I discussed it with a professor I know, and he proposed a solution which I will try. And yes you are correct I did not add the details of all the constants, my apologies but as for now I would close this question.

And also, the third equation is confusing about whether all the variables are inside the derivative. I would have to derive another one in its place

23-Emerald IV
August 2, 2018

Thank you for this personal reply.

But it was not necessary, there's no need to copy responses in the same thread. Your reply to Fred is sufficient information.

If you want to close this discussion, please do so (close it), possibly by marking it answered.

If you ever want to discuss this topic again, you could make a refernce to this discussion, if that helps.

 

Success!

Luc