Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion measured boundary conditions with pde toolbox

Path: g2news2.google.com!news2.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed-00.mathworks.com!news.mathworks.com!not-for-mail
From: "Doug " <d...@umd.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: measured boundary conditions with pde toolbox
Date: Mon, 10 Aug 2009 19:36:19 +0000 (UTC)
Organization: University of Maryland
Lines: 7
Message-ID: <h5psrj$8g9$1@fred.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>
Reply-To: "Doug " <d...@umd.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249932979 8713 172.30.248.35 (10 Aug 2009 19:36:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Aug 2009 19:36:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 812644

OK, I've answered my own question, and the answer is a boundary M-file. 

Though wbound makes a boundary M-file that is based on a simple formula, in exactly the same format as a boundary condition matrix, it's possible to write your own boundary M-file *any way you like*. As long as it takes (p,e,u,time) as inputs and returns [q,g,h,r] as outputs, it works fine with assempde. You just pass the filename of the boundary M-file as the first argument to assempde. So I've written a boundary M-file that takes the necessary inputs (p,e,u,time) but ignores them, instead constructing [q,g,h,r] from my measurements. And it works. Reading the help file for pdebound over and over was the key! 

Bruno, I'm still not following your argument that Neumann boundary conditions can't work. I understand that they leave room for an arbitrary constant of integration, but that's OK for me, because in my application, the solution to Poisson's equation is a stream function. My real interest is its gradient, for which the constant of integration is irrelevant. You seem to be concerned about the fact that the nodes are discrete points, but so are my measurements, and so is every numerical grid; again I don't understand. In case we're still talking about two different things, here's what I mean by Neumann boundary conditions:
http://en.wikipedia.org/wiki/Neumann_boundary_condition
http://mathworld.wolfram.com/BoundaryConditions.html