
Educators: Earn a free Gold upgrade by joining the PBwiki Back To School Challenge.
Here is some code I have written to solve the evolution equation:
film_evol_3.m % this function solves the problem with boundary conditions h=h_b, h_xxx+alpha =0 at x=0, and h_x=0, h_xx=delta at x=1
soln_plot.m % plots the film profile at a given snapshot in time
soln_movie.m % creates a movie of the evolution of the film over a given time range
Here is a typical call to these functions:
N=50;
H=.08*ones(1,N);
H(1)=.09; H(50)=.09;
alpha=-50; % magnetic force stronger than gravity
h_b=.1; % fixed boundary condition at the top
delta=2; % the fixed value of the curvature at the bottom
[t,h,X]=film_evol_3(alpha, h_b, delta, N, 15, H);
M=soln_movie(X,h,2,length(t));
A few notes:
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |