www.gusucode.com > pde 案例源码 matlab代码程序 > pde/MinimalSurfaceProblemExample.m
%% Minimal Surface Problem % Solve a minimal surface problem. Because this problem has a nonlinear |c| % coefficient, use |pdenonlin| to solve it. %% % Create a model and include circular geometry using the built-in |circleg| % function. model = createpde; geometryFromEdges(model,@circleg); %% % Set the coefficients. a = 0; f = 0; c = '1./sqrt(1+ux.^2+uy.^2)'; %% % Set a Dirichlet boundary condition with value $x^2$. boundaryfun = @(region,state)region.x.^2; applyBoundaryCondition(model,'edge',1:model.Geometry.NumEdges,... 'u',boundaryfun,'Vectorized','on'); %% % Generate a mesh and solve the problem. generateMesh(model,'Hmax',0.1); u = pdenonlin(model,c,a,f); pdeplot(model,'XYData',u,'ZData',u)