Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: measured boundary conditions with pde toolbox Date: Sat, 17 Nov 2012 06:14:09 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 27 Message-ID: <k879vh$k4n$1@newscl01ah.mathworks.com> References: <h5cmv4$lbc$1@fred.mathworks.com> <h5d0kd$419$1@fred.mathworks.com> <h5daso$lqr$1@fred.mathworks.com> <h5dpj7$atf$1@fred.mathworks.com> <h5psrj$8g9$1@fred.mathworks.com> <h5ptss$f88$1@fred.mathworks.com> <h5rf05$nb8$1@fred.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: www-00-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1353132849 20631 172.30.248.45 (17 Nov 2012 06:14:09 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sat, 17 Nov 2012 06:14:09 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2671557 Xref: news.mathworks.com comp.soft-sys.matlab:782958 "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <h5rf05$nb8$1@fred.mathworks.com>... > Doug, I have a hard time to explain why using pointwise Neumann condition is dangerous in a simple term. So I continue to provide indication, and hope one of them will speak to you. If you are familiarize with boundary single layer potential, you will see that the normal derivative have a jump relation related to the local value of the potential (see Colton & Kress book). This show that we can set pointwise Neumann bc at any values, though the Banach L^p norm (1<=p<infinity) of the "trace" can be anything else. There are an infinity harmonic functions that meet the *point-wise* Neumann condition. > > I might not fully understand where your Neumann data are from (I understand from measurement), but you have to be careful about how to plug them into the PDE, even if you think you can define it in the boundary.m. > > Bruno Hi, I think this is the correct place to ask my question that is about Sobolev. The codes are ; u=NeumannBoundCond(u); [u_x,u_y]=gradient(u); s=sqrt(u_x.^2 + u_y.^2); smallNumber=1e-10; Nx=u_x./(s+smallNumber); % add a small positive number to avoid division by zero Ny=u_y./(s+smallNumber); curvature=div(Nx,Ny); diracPhi=Dirac(u,epsilon); areaTerm=diracPhi.*g; % balloon/pressure force edgeTerm=diracPhi.*(vx.*Nx+vy.*Ny) + diracPhi.*g.*curvature; % u=u + timestep*(lambda*EdgeTerm + alfa*areaTerm); SobolevGradEdgeTerm = (1./(Img-gradient(u).^2)).*edgeTerm; u=u + timestep*(lambda*SobolevGradEdgeTerm + alfa*areaTerm); When I multiply the edgeTerm and lambda then I can see the evoluation of the active contour. But I want to use Sobolev gradient. (So, I have added the last two code lines.) In this case, when I multiply the lambda with SobolevGradEdgeTerm then the active contour disappears in the figure. What is the mistake ?