⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ptsource.m

📁 computation of conformal maps to polygonally bounded regions
💻 M
字号:
function ptsource(w,beta,z,c,ws,R,theta,options)
%PTSOURCE Field due to point source in a polygon.
%   PTSOURCE plots evenly spaced equipotential and force lines for a
%   point source located in a polygonal region.  This is equivalent to
%   the disk map with conformal center at the source.  With no arguments
%   the user draws the polygon and clicks the mouse at the source.
%
%   PTSOURCE(W,BETA) uses the polygon described by W and BETA.
%
%   PTSOURCE(W,BETA,Z,C) assmues that Z and C comprise the solution to
%   the disk mapping parameter problem, as returned by DPARAM.
%      
%   PTSOURCE(W,BETA,Z,C,WS) uses WS as the source location.
%
%   PTSOURCE(W,BETA,Z,C,WS,R,THETA,OPTIONS) uses the R, THETA, and
%   OPTIONS parameter as described in SCPLOTOPT.
%   
%   See also DFIXWC.

%   Copyright 1998 by Toby Driscoll.
%   $Id: ptsource.m 9 1998-05-10 04:55:10Z tad $

if nargin < 2
  [w,beta] = drawpoly;
end 
n = length(w);
if nargin < 8
  options = [];
  if nargin < 7
    theta = [];
    if nargin < 6
      R = [];
      if nargin < 5
	ws = [];
	if nargin < 4
	  z = [];
	end
      end
    end
  end
end

if isempty(z)
  [z,c] = dparam(w,beta);
end

if isempty(ws)
  plotpoly(w,beta)
  disp('Click mouse at source location.')
  [xc,yc] = ginput(1);
  ws = xc+i*yc;
end

[z,c] = dfixwc(w,beta,z,c,ws);
dplot(w,beta,z,c,R,theta,options);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -