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.

shlag<br />

Purpose<br />

shlag<br />

Create a Lagrange shape function object.<br />

Syntax<br />

Description<br />

obj = shlag(order, basename)<br />

obj = shlag(order, basename) The Lagrange shape function object is used to<br />

implement finite elements of Lagrange type of any order on any type of mesh<br />

element. order is a positive integer and basename is a string. The variable<br />

basename is represented as a polynomial of degree (at most) order in the local<br />

coordinates.<br />

For more information, see “The Lagrange Element” on page 625 in the <strong>COMSOL</strong><br />

Multiphysics User’s Guide.<br />

Examples<br />

The following three sequences set up shape functions for the variables u and v of<br />

order 1 and 2, respectively, using the standard syntax:<br />

fem.dim={'u' 'v'};<br />

fem.shape=[1 2];<br />

fem.dim={'u' 'v'};<br />

fem.shape={shlag(1,'v') shlag(2,'v'}};<br />

fem.dim={'u' 'v'};<br />

fem.shape={'shlag(''basename'',''u'',''order'',1)' ...<br />

'shlag(''basename'',''v'',''order'',2)'}<br />

See Also<br />

sharg_2_5, shbub, shcurl, shdens, shdisc, shdiv, shgp, shgp<br />

389

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

Saved successfully!

Ooh no, something went wrong!