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
- :
- Problem solving second order ODE because of too ma...

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

Highlighted

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

01-16-2019
01:16 PM

01-16-2019
01:16 PM

I am having issues solving a second order ODE because i need to force 3 boundary conditions, 2 for the starting point and one for the last one. I am forced to do this because otherwise the solution is incorrect so i can just obtain a solution with the correct derivative in 0 or the function with the correct value in 0. Of course if i enable all the three conditions mathcad says to me i have too many initial conditions but the problem is they are equally fundamental to obtain the correct solution. I will attach a picture also. Do you know how can i force a third condition solving a second order ODE? Or in general how to force much more conditions than the ODE order? thanks in advance.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

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

01-21-2019
06:40 AM

01-21-2019
06:40 AM

I solved the problem by myself.

I got the correct solution changing how large the interval is.

So basically changing it you obtain the only solution that is both balanced and with correct slips (it is a static problem). Basically i am changing the embedment length of the bar till i have the correct solution. You can do the same also changing the axial load at the beginning while length is fixed.

So basically if you have issues like these in future just try to change the boundary value or the length of the interval and look what it happens, you will see that odesolve solution change and you can find the one tha satisfy you. I would love to find a way to automatize this process using programming but seems like i am not able to put given and odesolve inside it. I will try maybe in future. Thanks everyone.

8 REPLIES 8

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

01-16-2019
01:46 PM

01-16-2019
01:46 PM

Re: Problem solving second order ODE because of too many initial conditions

Please attach the worksheet, not just a picture.

(For my convenience, save it as Mathcad 11 .mcd format; don't mind the warnings.)

Luc

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

01-16-2019
01:57 PM

01-16-2019
01:57 PM

Re: Problem solving second order ODE because of too many initial conditions

here you are

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

01-16-2019
06:13 PM

01-16-2019
06:13 PM

Re: Problem solving second order ODE because of too many initial conditions

I got this far:

Success!

Luc

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

01-17-2019
05:10 AM

01-17-2019
05:10 AM

Re: Problem solving second order ODE because of too many initial conditions

So basically i will never be able to get the solution i want right? I mean that one that had both 0 value for derivative and funtion in zero plus the defined value at the end of the border. Because as i said i am forced in giving 3 conditions for this kind of problem otherwise the solution i got from ODE solve is not correct.

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

01-17-2019
10:06 AM

01-17-2019
10:06 AM

Re: Problem solving second order ODE because of too many initial conditions

@Sdruman wrote:

So basically i will never be able to get the solution i want right?

I guess it means that the solution you are looking for simply does not exist!

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

01-21-2019
06:40 AM

01-21-2019
06:40 AM

I solved the problem by myself.

I got the correct solution changing how large the interval is.

So basically changing it you obtain the only solution that is both balanced and with correct slips (it is a static problem). Basically i am changing the embedment length of the bar till i have the correct solution. You can do the same also changing the axial load at the beginning while length is fixed.

So basically if you have issues like these in future just try to change the boundary value or the length of the interval and look what it happens, you will see that odesolve solution change and you can find the one tha satisfy you. I would love to find a way to automatize this process using programming but seems like i am not able to put given and odesolve inside it. I will try maybe in future. Thanks everyone.

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

01-21-2019
07:32 AM

01-21-2019
07:32 AM

Re: Problem solving second order ODE because of too many initial conditions

Being able to change the interval length of course changes the rules of the game and gives you one additional degree of freedom and so a solution exists.

Here is a way to let Mathcad find the optimal value for L.an. You have to turn the odesolve-block into a function of L.an and later use a normal solve block to find the value of L so, that sl(0)=0 (the condition not considered by odesolve.

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

01-21-2019
08:42 AM

01-21-2019
08:42 AM

Re: Problem solving second order ODE because of too many initial conditions

Thanks my friend you saved my life

Top Tags