# Differential equation solving

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 November 12, 2003, 03:00 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

 November 12, 2003, 03:42 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.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20 jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24 carsten OpenFOAM Bugs 11 September 12, 2008 11:16 msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58 liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07

All times are GMT -4. The time now is 11:37.

 Contact Us - CFD Online - Privacy Statement - Top