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.

elshape<br />

TABLE 1-20: BASIC MESH ELEMENT TYPE IDENTIFIERS FOR ELEMENT TYPES GENERATED IN MESHES<br />

NAME<br />

ls(3)<br />

b(3)<br />

lb(3)<br />

prism<br />

lprism<br />

DESCRIPTION<br />

3D simplex (tetrahedron), linear shape generated away from<br />

boundaries and edges in 3D<br />

3D brick (hexahedron, hex), higher-order shape generated in<br />

a layer closest to boundary surfaces and free edges<br />

3D brick (hexahedron, hex), trilinear shape generated away<br />

from boundaries and edges in 3D<br />

3D prism (pentahedron, wedge), higher-order shape<br />

generated in a layer closest to boundary surfaces and free<br />

edges<br />

3D prism (pentahedron, wedge), bilinear shape generated<br />

away from boundaries and edges in 3D<br />

The shapename identifier selects a shape function for the base mesh type, and the<br />

format of the shapeparams parameter in turn depends on the particular shape<br />

function. Typically, the shape function expects a struct with fields specifying<br />

dependent variable name and order.<br />

If there are multiple mesh cases present in the model, the shelem field is a struct<br />

with fields default, case and mind. The default field has the same syntax as<br />

described above for the shelem field itself. Multiple alternate cases which use the<br />

same shape functions can be grouped together using the mind field. This field is a<br />

cell array containing groups of mesh case numbers, each group, caselist, given as<br />

a cell array. For each element mesh case group, elmcase, an alternate shape list is<br />

given in the case field.<br />

Cautionary<br />

Multiple shape functions can be specified by the same elshape element simply by<br />

repeating a basic mesh type name with different shape function and/or parameters<br />

in the shelem field. This means that there also has to be some conflict resolution.<br />

When multiple shape functions specify the same dependent variable name, the one<br />

with the highest interpolation order for the basic field prevails.<br />

The field variables defined on a given domain are the union of the variables defined<br />

in the default case by shape functions on all basic mesh element types on that<br />

domain. This means that variables can at times be missing on certain mesh element<br />

types or for certain mesh cases.<br />

Examples<br />

Add a dependent variable lm on the boundary that can be used as a Lagrange<br />

multiplier in a weak constraint.<br />

clear fem;<br />

107

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

Saved successfully!

Ooh no, something went wrong!