FUNCTION REFERENCE
refinemesh
Uniformly refine a 2-D triangular [p,e,t] mesh by splitting each triangle into four.
Uniformly refine a 2-D triangular [p,e,t] mesh by splitting each triangle into four.
Syntax
[p1,e1,t1] = refinemesh(g, p, e, t); [p1,e1,t1,u1] = refinemesh(g, p, e, t, u)Splits every edge of the mesh at its midpoint and divides each triangle into four counter-clockwise sub-triangles, multiplying the triangle count by 4. Midpoints on circular and elliptical boundary edges in e are placed on the analytic curve of the corresponding column of the decomposed geometry matrix g. When a nodal solution matrix u (np-by-k) is supplied, it is linearly interpolated at the new midpoint nodes and returned as u1.
Example
R1=[3;4;0;1;1;0;0;0;1;1]; g=decsg(R1); [p,e,t]=initmesh(g,'Hmax',0.5); [p1,e1,t1]=refinemesh(g,p,e,t); size(t1,2)==4*size(t,2)Differences from MATLAB: uniform regular refinement only; selective triangle list refinement (it), 'longest' refinement, and function-handle geometry descriptions are not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.