makemeshdata2nd.m

来自「MATLAB二维电阻抗断层成像算法!用于医学成像,里面包括有限元剖分正问题,及反」· M 代码 · 共 26 行

M
26
字号
% MakeMeshData2nd is a script that builds two circular  
% meshes for 2D EIT Package. Denser mesh (mesh 2) is for forward computations and
% a coarse mesh (mesh 1) for inverse computations. See also
% meshgen_eit2d.m, MakeElement2nd and MakeNode. 




S=2.5; % Length of the electrode.
N=16;  % Number of the electrodes.
r=14;  % Radius of the circle.
style='s'; % 's' for the structured mesh and 'u' for the unstructured mesh

[H1,g1,H2,g2,E1,E2,Ind2,Indb1,Indb2] = meshgen_eit2d(S,N,r,style);
g=g1;H=H1;                                  %Old data for plotting etc.
[Element,Nodelist]=MakeElement(H1,Indb1,E1); %-----------"------------
[Node]=MakeNode(Element,Nodelist,g);        %-----------"----------  

[g1,H1,Indb1]=addnodes(g1,H1,Indb1);
[Element1,Nodelist1]=MakeElement2nd(H1,Indb1,E1);
[Node1]=MakeNode2nd(Element1,Nodelist1,g1);




⌨️ 快捷键说明

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