CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Differential equation solving

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2003, 03:00
Default Differential equation solving
  #1
cfd-user
Guest
 
Posts: n/a
Hi I am new to cfd and just apreciate. If somebody tell me how to solve this differential equation anlytically. dy/dx=ax+y y=0 at x=0 Thanks cfd-user
  Reply With Quote

Old   November 12, 2003, 03:42
Default Re: Differential equation solving
  #2
Rami
Guest
 
Posts: n/a
Assuming a is constant, the solution is

y = a * (e^x - x - 1)

It is obtained as follows:

1. Find the homogenous solution, Yh, to the homogenous equation, i.e., dy/dx - y = 0. This is readily solved to yield Yh = e^x.

2. Guess a private solution, Yp, that satistfy the original equation. Since the inhomogenious term is a 1st degree polynomial, it is reasonable to guess Yp has also such a form, Yp=Ax+B. Substitution reveals A=B=-a.

3. The solution, y, is made of the linear combination y = C*Yh + Yp, where the constant C is found by satisfying the BC y(x=0)=0. Substitution and solving yields C=a.

You now have the above solution that satisfies the ODE and its BC (verify!). This is a general method for solving linear ODEs. It works for simple inhomogenous terms and BC. For other cases and better explanation on ODE solution refer to any basic calculus textbook.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 12:16
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 23:57.