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.

femdiff<br />

Use the field fem.rules to specify additional differentiation rules. The derivative of<br />

the inverse hyperbolic tangent function atanh can, for example, be specified as<br />

{'atanh(x)','1/(1-x^2)'}.<br />

It can also be stored as a field in the FEM structure.<br />

Assume a user-defined function foo(a,b) has been written, implementing the<br />

analytical expression a^2+a*sin(b^3). The derivatives of this function are specified<br />

as:<br />

'rules', {'foo(a,b)', '2*a+sin(b^3),3*a*b^2*cos(b^3)'}<br />

femdiff does not support functions with string arguments.<br />

Cautionary<br />

The relational and Boolean operators have been included for convenience only, and<br />

must be used with extreme caution. Their symbolic derivative is considered to be<br />

identically 0.<br />

Coefficient M-files are not allowed in the input.<br />

Compatibility<br />

The function flgetrules for converting FEMLAB 1.0/1.1 differentiation rules is<br />

no longer available.<br />

The properties bdl, out, rules, and sdl are obsolete in FEMLAB 3.0.<br />

The fields fem.equ.varu and fem.bnd.varu, etc. are no longer generated in<br />

FEMLAB 3.0.<br />

The precedence rules for the operators | and & have been changed to comply with<br />

MATLAB 6.0 precedence.<br />

The differentiation algorithm is new in FEMLAB 1.2. The @fldiffobj class is<br />

obsolete.<br />

See Also<br />

femnlin<br />

120 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!