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.

postgp<br />

Purpose<br />

postgp<br />

Extract gauss points and gauss point weights.<br />

Syntax<br />

Description<br />

gp = postgp(type,order)<br />

[gp,gpw] = postgp(type,order)<br />

postgp(type,order) returns the gauss points of order order for element of type<br />

type.<br />

[gp,gpw] = postgp(type,order) additionally returns the gauss point weights.<br />

The gauss points and their weights are the ones used in postint when computing<br />

integrals.<br />

The input type must be one of the following: vtx, edg, tri, quad, tet, prism, hex<br />

corresponding to vertex element, edge element, triangular element, quadrilateral<br />

element, tetrahedral element, prism element, and hexahedral element, respectively.<br />

Examples<br />

% The second order gauss points for a triangular element<br />

gp = postgp('tri',2);<br />

% The third order gauss points and their weights for a hexahedral<br />

% element<br />

[gp,gpw] = postgp('hex',3);<br />

Compatibility<br />

See Also<br />

This function was introduced in <strong>COMSOL</strong> Multiphysics 3.2a.<br />

posteval, postint<br />

342 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!