Group Abstract Group Abstract

Message Boards Message Boards

0
|
28.2K Views
|
10 Replies
|
4 Total Likes
View groups...
Share
Share this post:

My program has been running for two days. Is this normal?

Posted 11 years ago
POSTED BY: Hui Sun
10 Replies
POSTED BY: Daniel Lichtblau
Posted 11 years ago

You may try NDSolve instead of DSolve..

POSTED BY: Okkes Dulgerci

Thanks for your advice. I am now trying to use NDSolve. It's indeed much faster than using DSolve. But I've encountered another problem. For 6 second-order ODEs with 12 boundary conditions, I can obtain the exact symbolic solutions in relatively less time by using DSolve. Then I plotted the first derivative of the symbolic solutions, from which I got the right graph. But when I used NDSolve to solve the same problem, I got nothing after I plotted the first derivative of the numerical solutions. Why so? Besides, the graph of the symbolic solutions is the same as the graph of the numerical solutions. Then why the graphs of the first derivative of the two solutions are totally different? Looking forward to your reply. Many thanks!!

POSTED BY: Hui Sun
Posted 11 years ago

Can you upload your code.. Never mind, I guess you asked your question with another name and is solved..

POSTED BY: Okkes Dulgerci

Yes. Sorry, my fault. Now I know how to ask questions. The most efficient way of asking for help is uploading the problematic code, rather than describe the problem with empty words. Anyway, many thanks for your help and patience! :-)

POSTED BY: Hui Sun

It's hard to help you without seeing the actual problem. It could be that you have a simple typo or syntax error. You say that MM7 can find all general solution in a snap. So why not find the general solution first and then solve for the unknown coefficients by substituting the boundary conditions? This probably can be done step by step.

POSTED BY: Kay Herbert

I would never jump into a complicated problem without first trying out smaller similar problems. Ask yourself how long does it take to solve for a fifth, fourth, third, and half of that many conditions and estimate the time necessary to solve the whole number of conditions. The estimate won't be exact, but it should tell you if your talking hours, days, or weeks.

You can also time out other approaches as you make the problem grow and see how much time you could save on the big problem by using them.

Thanks for the advice. I am already trying to solve a smaller unit cell with less ODEs and less boundary conditions.

POSTED BY: Hui Sun
POSTED BY: Frank Kampas

Thanks for the advice, but I kind of want symbolic solutions.

POSTED BY: Hui Sun
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard