www.gusucode.com > pde 案例源码 matlab代码程序 > pde/MinimalSurfaceUsingCommandLineFunctionsExample.m

    %% Minimal Surface Using Command-Line Functions
% This example shows how to solve the minimal surface problem using
% command-line functions. The files |circleg| and |circleb2| contain
% the geometry specification and boundary condition functions, respectively.

% Copyright 2015 The MathWorks, Inc.

g = 'circleg';
b = 'circleb2'; 
c = '1./sqrt(1+ux.^2+uy.^2)'; 
rtol = 1e-3; 

[p,e,t] = initmesh(g); 
[p,e,t] = refinemesh(g,p,e,t); 

u = pdenonlin(b,p,e,t,c,0,0,'Tol',rtol); 

pdesurf(p,t,u)

%%
% You can also run this example by typing |pdedemo3|.