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

Solving a non linear equation using finite difference

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2016, 10:42
Default Solving a non linear equation using finite difference
  #1
NCS
New Member
 
Niranjan
Join Date: Sep 2016
Posts: 1
Rep Power: 0
NCS is on a distinguished road
Consider a non linear differential equation,
y' + y^(2) = 0

where y' = dy/dx
Boundary condition: @x=0, y=1

We could solve this equation through analytical means and get a solution of the form,
y= 1/(x+1)

But I wanted to build a numerical technique to solve this equation, like a finite difference approach. Is there a way out?
NCS is offline   Reply With Quote

Old   September 28, 2016, 11:04
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
It is a simple exercise you can find in any texbook about numerical solution of the ODE.
FMDenaro is offline   Reply With Quote

Reply

Tags
finite difference method, nonlinear equation


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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 18:36
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 10:48
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
twoPhaseEulerFoam fvOptions for alpha lavdwall OpenFOAM Running, Solving & CFD 8 October 19, 2015 10:57
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


All times are GMT -4. The time now is 04:58.