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

📄 getmesh.html

📁 五点差分型多重网格方法:各种插值算子的比较)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"                "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head>  <title>Description of getmesh</title>  <meta name="keywords" content="getmesh">  <meta name="description" content="GETMESH generates initial mesh data structure.">  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">  <meta name="robots" content="index, follow">  <link type="text/css" rel="stylesheet" href="../../m2html.css"></head><body><a name="_top"></a><!-- # AFEM@matlab --><!-- menu.html 5_Mesh --><h1>getmesh</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2><div class="box"><strong>GETMESH generates initial mesh data structure.</strong></div><h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2><div class="box"><strong>function mesh = getmesh(node,elem,Dirichlet,Neumann,type,solu) </strong></div><h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2><div class="fragment"><pre class="comment"> GETMESH generates initial mesh data structure.  USAGE    mesh = getmesh(node,elem,Dirichlet,Neumann,type,solu) INPUT        node:  array of nodes (required)       elem:  array of element indices (required)  Dirichlet:  Dirichlet boundary edges (required)    Neumann:  Neumann boundary edges (required)       type:  node in use (optional)       solu:  initial solution (optional) OUTPUT    mesh:  current mesh</pre></div><!-- crossreference --><h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>This function calls:<ul style="list-style-image:url(../../matlabicon.gif)"><li><a href="../../AFEM@matlab/4_Refine/label.html" class="code" title="function elem = label(node,elem)">label</a>	LABEL label the longest edge of each triangle as the base</li></ul>This function is called by:<ul style="list-style-image:url(../../matlabicon.gif)"><li><a href="../../AFEM@matlab/1_Example/Lbig.html" class="code" title="function Lbig">Lbig</a>	LBIG solves Poisson equation in a L-shaped domain with FEM with</li><li><a href="../../AFEM@matlab/1_Example/Lshape.html" class="code" title="function Lshape">Lshape</a>	LSHAPE solves Poisson equation in a L-shaped domain with FEM with</li><li><a href="../../AFEM@matlab/1_Example/circle.html" class="code" title="function circle">circle</a>	CIRCLE simulates adaptive grids for a problem with moving circlular</li><li><a href="../../AFEM@matlab/1_Example/crack.html" class="code" title="function crack">crack</a>	CRACK solves Poisson equation in a crack domain with AFEM.</li><li><a href="../../AFEM@matlab/1_Example/simple.html" class="code" title="function simple">simple</a>	SIMPLE solves Poisson equation with Dirichlet boundaray condition in a</li></ul><!-- crossreference --><h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2><div class="fragment"><pre><a name="_sub0" href="#_subfunctions" class="code">function mesh = getmesh(node,elem,Dirichlet,Neumann,type,solu)</a><span class="comment">% GETMESH generates initial mesh data structure.</span><span class="comment">%</span><span class="comment">% USAGE</span><span class="comment">%    mesh = getmesh(node,elem,Dirichlet,Neumann,type,solu)</span><span class="comment">%</span><span class="comment">% INPUT</span><span class="comment">%       node:  array of nodes (required)</span><span class="comment">%       elem:  array of element indices (required)</span><span class="comment">%  Dirichlet:  Dirichlet boundary edges (required)</span><span class="comment">%    Neumann:  Neumann boundary edges (required)</span><span class="comment">%       type:  node in use (optional)</span><span class="comment">%       solu:  initial solution (optional)</span><span class="comment">%</span><span class="comment">% OUTPUT</span><span class="comment">%    mesh:  current mesh</span><span class="comment">%</span><span class="comment">% L. Chen &amp; C. Zhang 10-15-2006</span><span class="comment">%--------------------------------------------------------------------------</span><span class="comment">% Generate opitional data</span><span class="comment">%--------------------------------------------------------------------------</span><span class="keyword">if</span> nargin &lt;= 5, solu = zeros(size(node,1),1); <span class="keyword">end</span><span class="keyword">if</span> nargin &lt;= 4, type = uint8(ones(size(node,1),1)); <span class="keyword">end</span><span class="comment">%--------------------------------------------------------------------------</span><span class="comment">% Label the mesh by the longest edge rule</span><span class="comment">%--------------------------------------------------------------------------</span>elem = <a href="../../AFEM@matlab/4_Refine/label.html" class="code" title="function elem = label(node,elem)">label</a>(node,elem);<span class="comment">%--------------------------------------------------------------------------</span><span class="comment">% Generate mesh data structure</span><span class="comment">%--------------------------------------------------------------------------</span>mesh = struct(<span class="string">'node'</span>,node, <span class="string">'elem'</span>,elem, <span class="string">'type'</span>,type, <span class="string">'solu'</span>,solu, <span class="keyword">...</span>              <span class="string">'Dirichlet'</span>,Dirichlet, <span class="string">'Neumann'</span>,Neumann);      <span class="comment">%--------------------------------------------------------------------------</span><span class="comment">% End of function GETMESH</span><span class="comment">%--------------------------------------------------------------------------</span></pre></div><hr><address>Generated on Fri 17-Nov-2006 11:02:53 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address></body></html>

⌨️ 快捷键说明

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