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.

elpric<br />

Purpose<br />

elpric<br />

Define variables which evaluate principal values and vector components.<br />

Syntax<br />

Description<br />

el.elem = 'elpric'<br />

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

el.basename = bname<br />

el.postname = pname<br />

el.sdim{idim} = dimname<br />

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

el.geomdim{ig}{edim}.tensor{eldomgrp} = matexpr<br />

The elpric element evaluates eigenvalues and eigenvectors of a 3-by-3 real<br />

symmetric matrix. The tensor field always has six components specifying the upper<br />

triangle of the source matrix as a cell array of expressions in column order. The<br />

basename field is compulsory and specifies a single name from which all output<br />

variable names are derived. The output variables are defined wherever the tensor<br />

field is non-empty.<br />

Eigenvalue variable names are created by appending numbers 1 to 3 to bname and,<br />

if postname is present, append '_pname'. Eigenvector component names are then<br />

created by inserting the space variable names given in sdim directly after the<br />

component number. Eigenvalues are sorted in decreasing order.<br />

Cautionary<br />

Examples<br />

No Jacobian contribution is calculated even if the tensor expressions contain<br />

dependent variables. The reason is the condition that the eigenvalues are sorted,<br />

which makes the eigenvector components discontinuous functions of the input<br />

matrix components.<br />

Define postprocessing variables for principal strains and directions, given strain<br />

components [ex,ey,ez,exy,exz,eyz].<br />

el.elem = 'elpric';<br />

el.g = {'1'};<br />

el.basename = 'e';<br />

el.sdim = {'x','y','z'};<br />

gd.ind = {{'1'}};<br />

gd.tensor = {{'ex','exy','ey','exz','eyz','ez'}};<br />

el.geomdim{1} = {{},{},{},gd};<br />

fem.elem = [fem.elem {el}];<br />

See Also<br />

elempty, elinv<br />

103

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

Saved successfully!

Ooh no, something went wrong!