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.

posteval<br />

Solnum is provided, the solution indicated by the indices provided with the Solnum<br />

property are used. It T is provided, solutions are interpolated The property T can<br />

only be used for time dependent solutions. If nether Solnum nor T is provided, a<br />

single solution is evaluated. For parametric and time-dependent solutions, the final<br />

solution is used. For eigenvalue solution the first solution is used.<br />

For time-dependent problems, the variable t can be used in the expressions ei. The<br />

value of t is the interpolation time when the property T is provided, and the time<br />

for the solution, when Solnum is used. Similarly, lambda and the parameter are<br />

available as eigenvalues for eigenvalue problems and as parameter value for<br />

parametric problems, respectively.<br />

When the property Phase is used, the solution vector is multiplied with<br />

exp(i*phase) before evaluating the expression.<br />

Example<br />

Solve Poisson’s equation on two rectangles and evaluate the solution on one of<br />

them and the negative solution on the other.<br />

clear fem<br />

fem.geom = square2(1,'pos',[0 -1])+square2;<br />

fem.mesh = meshinit(fem);<br />

fem.equ.c = 1; fem.equ.f = 1;<br />

fem.bnd.h = 1;<br />

fem.equ.expr = {'uu' {'u','-u'}};<br />

fem.xmesh = meshextend(fem);<br />

fem.sol = femstatic(fem);<br />

pd = posteval(fem,'uu');<br />

Compatibility<br />

The properties Spoint and Bpoint was re-introduced and Prpoint was introduced<br />

in <strong>COMSOL</strong> Multiphysics 3.2a.<br />

The FEMLAB 3.0 output type has been changed to a structure containing data<br />

suitable for further postprocessing. The new output format is incompatible with<br />

FEMLAB 2.3 and earlier versions.<br />

The properties Context, Contorder, Posttype, and Spoint are obsolete from<br />

FEMLAB 3.0.<br />

The property Variables has been renamed to Const in FEMLAB 2.3.<br />

The properties Bdl, Epoint, Sdl, and Tpoint, are obsolete from FEMLAB 2.2.<br />

Use the Dl property to specify domain lists. The post data format has changed in<br />

FEMLAB 2.2 and later versions.<br />

335

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

Saved successfully!

Ooh no, something went wrong!