
Nonlinear Finite Difference Method 1.0 File ID: 80864 


 Nonlinear Finite Difference Method 1.0 License: Shareware File Size: 10.0 KB Downloads: 14
Submit Rating: 



Nonlinear Finite Difference Method 1.0 Description 

Description: The function nonlinearBVP_FDM .m is an implementation of the nonlinear finite difference method for the general nonlinear boundaryvalue problem  y''=f(x,y,y'), for a<x<b where y(a)=alpha and y(b)=beta.  The interval [a,b] is divided into (N+1) equal subintervals with endpoints at x(i)=a+i*h for i=0,1,2,...,N+1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Remarks: The function f should be defined as an mfile. There is NO need for partial derivatives of f See given example %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Example Solve the nonlinear boundary value problem y''=(1/8)*(32+2x^3yy'), for 1<x<3, where y(1)=17 and y(3)=43/3 Step 1... Create the function f as a separate mfile and save it in the current working directory. function f = f(x,y,yp) f = (1/8)*(32+2*x^3y*yp); %Note that yp=y' Step 2... In the command window type >> Y = nonlinearBVP_FDM(1,3,17,43/3); Note that Y(:,1) represents x and Y(:,2) is vector y(x) The solution is then plotted in a new figure If the exact solution is given, plot it for comparison >> yexact = (Y(:,1)).^2+16./Y(:,1); plot(Y(:,1),yexact,'c')
License: Shareware Related: separate, Create, current, Working, fxyyp, Directory, y33d433, y13d17, solve O/S:BSD, Linux, Solaris, Mac OS X File Size: 10.0 KB Downloads: 14


More Similar Code 

Calculate the electromagnetic eigenmodes and propagation constants of optical waveguides using the finite difference method. Features:
1. Includes vector, semivector, and scalar versions.
2. Can solve for all components of E and H.
3. Allows for perfectlymatched boundary layers.
4. Can model transverse anisotropic materials.
5. Several examples included
Also available at:
Like the finite difference method, the Taylor Series Least Squares method can be used to estimate derivatives. The TLS technique can be used to estimate derivatives from scattered or unstructured data. The Hermite Taylor Series Least Squares...
http://simulations.narod.ru/ Solve 2d wave equation with Finite Difference Method. Theory described in description.docx. Droplet put on the water surface to start waves. There is a decay in wave equation. conv2 function used for faster...
Study of heat transfer and temperature of a 1x1 metal plate heat is dissipated through the left right and bottom sides and emp at infinity is t n(n1) points in consideration, Temperature at top end is 500*sin(((i1)*pi)/(n1)
The tool box provides the procedure to calculate all band edge energies and corresponding wavefunctions in single quantum square well using Finite Element Method.
This program timesteps the Shallow Water Equations in a curved basin of variable depth. The central timestep finite difference method is used to linearly approximate the differentials.
*I'm a student, so ideas for improvement and...
As a coursework, we are required to price a double barriers knockin binary put option. We used finite difference method in 24 ways and multinomial lattice in 12 ways. We also implemented analytic and Markov chain method. At the end, we compared...
FDTD(Finite Difference Time Domain) is the most easiest method of EM Solver.In this code i just demonstrate that how can we launch multiple sources in a single time,and how they can combine effect with in single time domain. The Sources are...
FDTD is Finite Difference Time Domain method,but due to truncated it it will cause the reflectional on its boundary that will cause unnecessary noise to our simulation domain. So minimizing this unwanted signal we use PML(Perfectly Matched...
A fortran sample code which in Finite Difference Time Domain Method for Electromagnetics.  Kunz K.S., Luebbers R.J. book was translated to matlab code. For movie, a little bit code must be added into it. Especially it needs to vectorize for... 
User Review for Nonlinear Finite Difference Method 
