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.

elsconstr<br />

Purpose<br />

elsconstr<br />

Define pointwise constraints controlled by shape functions.<br />

Syntax<br />

el.elem = 'elsconstr'<br />

el.g{ig} = geomnum<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}{ishape}{3*i-2} = bmtypename<br />

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

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

el.geomdim{ig}{edim}.constr{eldomgrp}{ic}{j} = constrexpr<br />

el.geomdim{ig}{edim}.cshape{eldomgrp}{ic} = ishape<br />

Description<br />

The elsconstr element defines pointwise constraints where the type of constraint<br />

is determined by a shape function object. The idea is that the constraint points are<br />

selected to be appropriate for variables having the corresponding shape function.<br />

For the syntax of the ind field, see elempty. For the syntax of the shelem field, see<br />

elshape. A difference to the syntax in elshape is that the cell array shapelist has<br />

three levels instead of two.<br />

The expressions that are used to formulate the constraint are given in the constr<br />

field, and the index of the corresponding shape function object is given in the<br />

cshape field. More precisely, in element geometry ig, dimension edim, and<br />

element domain group eldomgrp, constraint number ic is defined by the shape<br />

function object with index<br />

ishape=el.geomdim{ig}{edim}.cshape{eldomgrp}{ic}. The expressions<br />

needed to formulate this constraint is given by the cell array<br />

el.geomdim{ig}{edim}.constr{eldomgrp}{ic}. The number of expressions ne<br />

in this cell array depends on the shape function object.<br />

The elsconstr constraint element is only implemented for the shape functions<br />

shlag, shcurl, and shdiv. For shlag, the number of expressions ne=1, and this<br />

expression is constrained to be zero in the node points of the shlag object. For<br />

shcurl, the number of expressions ne=sdim, and these expressions are considered<br />

as components of a vector. The tangential component of this vector is constrained<br />

to be zero in the node points for the shcurl shape function. For shdiv, the number<br />

of expressions ne=sdim, and these expressions are considered as components of a<br />

104 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!