21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

meshenrich<br />

7 Missing edge elements are added. Edge elements are required at the boundaries<br />

of the faces. Domain and parameter information (dom and param fields) for the<br />

edge elements is also added.<br />

8 Missing vertex elements are added. Vertex elements are required on the<br />

boundaries of the edges.<br />

The 1D and 2D algorithms work in a similar way.<br />

Example<br />

Create an initial mesh object from mesh point coordinates and tetrahedral element<br />

information.<br />

load coord.txt;<br />

load tet.txt;<br />

el = cell(1,0);<br />

tet = tet+1; % Lowest mesh point index is zero in tet.txt<br />

el{1} = struct('type','tet','elem',tet');<br />

m = femmesh(coord',el);<br />

Use meshenrich to create a complete mesh object, that is, a mesh object with<br />

boundary elements, edge elements and vertex elements with necessary geometry<br />

information.<br />

m = meshenrich(m);<br />

meshplot(m)<br />

See Also<br />

geominfo, meshinit, femmesh<br />

258 | CHAPTER 1: COMMAND REFERENCE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!