Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Solving two simultaneous differential equations an...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2015
10:15 AM

06-03-2015
10:15 AM

Solving two simultaneous differential equations and need to plot them wrt to time .

Hello all,

I am currently trying to solve two simultaneous equations and they are dependent on multiple variables . I could not solve them and simultaneously and also have to use the output of them to make an input for other and try to iterate and optimise it . I have removed all the units as I was facing problem with a couple of them . so just I m working with plain numbers .

Can some one please help me ..

I am kind of on intermediate level in mathcad prime

Nitin

Labels:

11 REPLIES 11

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2015
01:26 PM

06-03-2015
01:26 PM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Sorry, that's a Prime 3.1 file, so I can't read it. If you post a pdf maybe I (or someone else that does not have Prime 3.1) can help.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2015
01:32 PM

06-03-2015
01:32 PM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Thanks a lot for the reply , please find the attached xps file for the same

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2015
06:26 PM

06-03-2015
06:26 PM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

I assume the two equations you want to solve are M(h) and U(h). You have two definitions of M(h). For the first, you define it as d/dt(h), but since h is a constant that's 0. Your definition of U(h) includes an undefined variable T, and d/dt(omega_rel), but you have defined omega_rel as a constant, not a function of t, so the derivative is 0. Even if you define the variable T and fix the definition of omega_rel the variable h will not appear on the rhs of the equation though, so the value returned by U(h) will be constant. Lastly, you are using odesolve in the solve block, but you do not have differential equations.

Please specify exactly the form of the two equations you wish to solve, and which two variables you wish to solve for.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2015
07:32 PM

06-03-2015
07:32 PM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Thanks Richard.

My two equations to be solved are dh/dt and the other is the total T = I d(omega)/dt and vairables are h and t.

I have taken a initial value of h to calculate all the parameters including T . I am actually trying to solve the differential equations for h and omega rel.

after solving then use the updated T to computer another function D till that function D converges .

Later I need to plot for T and t . Could you please help me in getting to complete the worksheet.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-04-2015
07:55 AM

06-04-2015
07:55 AM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

The document says it was created using Mathcad Express. Do you have Mathcad Express, or the full version of Mathcad Prime?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-04-2015
09:24 AM

06-04-2015
09:24 AM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

I have mathcad Prime 3.1 full version for 30 days . and also have access to mathcad- 15

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-04-2015
09:32 AM

06-04-2015
09:32 AM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Then you would be much better off doing this in Mathcad 15. More people on these forums would be able to read your worksheet, and you would still be able to use it after 30 days. You can of course still use Prime after 30 days, but only as the express version which does not support many things, one of which is solving systems of DEs.

Anyway, I can't figure out what you are trying to do. You say you want to solve for omega_rel, but you have a definition of omega_rel in terms of omega_0, t, and t_0, so what's to solve for?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-04-2015
09:53 AM

06-04-2015
09:53 AM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Yes, because for each value of h , there wil be different values of omega_rel, and it also changes with respect to time .

So omega_rel is dependent of multiple factors like h,t, Kp etc. i am actually trying to build a mathematical model based on a paper.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-04-2015
10:14 AM

06-04-2015
10:14 AM

Re: Solving two simultaneous differential equations and need to plot them wrt to time .

Sorry, but your document is way too confusing for me to get anywhere with it. It would be tough with a worksheet I could edit, but with a static document there is no chance. You have a definition of omega_rel that depends only on omega_0, t, and t_0. So how is that definition compatible with your assertion that it depends on h and Kp? Another example is your definitions of Th and Ta. You have theta as a variable of integration, but nothing in the kernel depends on theta. In fact, there is no indication anywhere in your worksheet of how theta is related to any of the other variables or functions. You have solve blocks with no constraints in them, so what are they supposed to solve for? I get the impression that you think Mathcad will just infer relationships between your various numerical definitions, but it won't. A numerical definition just creates a variable with an assigned value. Nothing more. So as you have it, h is a constant. dh/dt is therefore 0. If there are supposed to be relationships between variables and functions you have to explicitly define them. Mathcad can't do it for you, and I am not familiar enough with what you are trying to do to do it for you.