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.

elshape<br />

Purpose<br />

elshape<br />

Define dependent variables and select shape functions.<br />

Syntax<br />

el.elem = 'elshape'<br />

el.g{ig} = geomnum<br />

el.tvars = 'on' | 'off'<br />

el.geomdim{ig}{edim}.ind{eldomgrp} = domainlist<br />

el.geomdim{ig}{edim}.shelem = meshcases | shapelist<br />

meshcases.default = shapelist;<br />

meshcases.case{elmcase} = shapelist;<br />

meshcases.mind{elmcase} = caselist;<br />

shapelist{eldomgrp}{3*ishape-2} = bmtypename<br />

shapelist{eldomgrp}{3*ishape-1} = shapename<br />

shapelist{eldomgrp}{3*ishape} = shapeparams<br />

Description<br />

The elshape element is responsible for allocating degrees of freedom and defining<br />

dependent variables. For the syntax of the ind field, see elempty. The tvars field<br />

turns the generation of time derivative variables on or off (default on).<br />

The shelem field has a rather complicated syntax. If no alternate mesh cases are<br />

defined, it is a cell array which for each domain group contains a cell array of triplets<br />

bmtypename—shapename—shapeparams. The string bmtypename is a unique<br />

identifier for a basic mesh element shape with certain additional properties, see the<br />

table below.<br />

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

NAME<br />

DESCRIPTION<br />

ls(0) 0D simplex (all elements are equivalent in 0D)<br />

s(1)<br />

ls(1)<br />

s(2)<br />

ls(2)<br />

b(2)<br />

lb(2)<br />

s(3)<br />

1D simplex, higher-order shape generated on boundaries in<br />

2D and 3D<br />

1D simplex, linear shape generated in 1D<br />

2D simplex (triangle), higher-order shape generated on<br />

boundaries in 3D and in a layer closest to boundaries in 2D<br />

2D simplex (triangle), linear shape generated in the inner of<br />

2D domains<br />

2D brick (quadrilateral, quad), higher-order shape generated<br />

on boundaries in 3D and in a layer closest to boundaries in<br />

2D<br />

2D brick (quadrilateral, quad), bilinear shape generated in the<br />

inner of 2D domains<br />

3D simplex (tetrahedron), higher-order shape generated in a<br />

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

106 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!