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.

elinv<br />

Purpose<br />

elinv<br />

Define matrix inverse component variables.<br />

Syntax<br />

Description<br />

el.elem = 'elinv'<br />

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

el.matrixdim = mdim<br />

el.format = 'symmetric' | 'hermitian' | 'unsymmetric'<br />

el.basename = bname<br />

el.postname = pname<br />

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

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

The elinv element defines components of the inverse of an mdim-by-mdim matrix<br />

field. The matexpr is a cell array of expressions which specify the source matrix in<br />

column order. If the format is 'symmetric' or 'hermitian', only the upper<br />

triangle has to be given.<br />

Matrix inverse component names, that is, the variable names defined by the element,<br />

are created by appending row and column indices to the bname parameter and, if<br />

the postname field is present, append '_pname'. If the format is specified as<br />

'symmetric', variables are generated only for the upper triangular part of the<br />

inverse, otherwise for all components.<br />

Examples<br />

Define variables to evaluate the Jacobian inverse components for an explicit variable<br />

transformation [X(x,y,z), Y(x,y,z), Z(x,y,z)].<br />

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

el.var = {'X','2*x','Y','y+z','Z','z'};<br />

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

clear el;<br />

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

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

el.matrixdim = '3';<br />

el.format = 'unsymmetric';<br />

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

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

gd.matrix = {{'diff(X,x)','diff(X,y)','diff(X,z)',...<br />

'diff(Y,x)','diff(Y,y)','diff(Y,z)',...<br />

'diff(Z,x)','diff(Z,y)','diff(Z,z)'}};<br />

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

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

See Also<br />

elempty, elpric<br />

86 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!