21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

meshrefine<br />

Purpose<br />

meshrefine<br />

Refine a mesh.<br />

Syntax<br />

Description<br />

fem.mesh = meshrefine(fem,...);<br />

fem = meshrefine(fem,'Out',{'fem'},...);<br />

fem.mesh = meshrefine(fem,...) returns a refined version of the triangular<br />

mesh specified by the geometry, fem.geom, and the mesh, fem.mesh.<br />

fem = meshrefine(fem,'Out',{'fem'},...) modifies the FEM structure to<br />

include the refined mesh in fem.mesh.<br />

meshrefine is supported for meshes containing simplex elements only, that is, lines,<br />

triangles, and tetrahedrons.<br />

The function meshrefine accepts the following property/values:<br />

TABLE 1-13: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

mcase integer 0 Mesh case number<br />

out fem | mesh mesh Output variables<br />

rmethod longest | see below Refinement method<br />

regular<br />

subdomain integer vector | all<br />

| none<br />

all<br />

Specifies the subdomains<br />

that are refined<br />

tri<br />

one row vector or<br />

two row matrix<br />

all elements<br />

once<br />

List of elements to refine<br />

(second row is number<br />

of refinements)<br />

The default refinement method in 2D is regular refinement, where all of the<br />

specified triangles are divided into four triangles of the same shape. Longest edge<br />

refinement, where the longest edge of each specified triangle is bisected, can be<br />

demanded by giving longest as Rmethod. Using regular as Rmethod results in<br />

regular refinement. Some triangles outside of the specified set may also be refined,<br />

in order to preserve the triangulation and its quality.<br />

In 3D, the default refinement method is longest. The regular refinement method<br />

is only implemented for uniform refinements.<br />

In 1D, regular refinement, where each element is divided into two elements of the<br />

same shape, is always used.<br />

Examples<br />

Refine the mesh of the L-shaped membrane several times and plot the mesh for the<br />

geometry of the L-shaped membrane:<br />

291

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

Saved successfully!

Ooh no, something went wrong!