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.

femsol<br />

Example<br />

Create a solution object:<br />

fem.geom=rect2;<br />

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

fem.shape = 2; fem.equ.c=1; fem.equ.f=1; fem.bnd.h=1;<br />

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

fem.sol=femtime(fem,'tlist',0:0.1:1)<br />

Fetch the solution vector and the list of time steps.<br />

u=fem.sol.u;<br />

tlist=fem.sol.tlist;<br />

Multiply the solution by 2 and recreate a solution object.<br />

fem.sol=femsol(2*u,'tlist',tlist);<br />

Postprocess the solution.<br />

postplot(fem,'tridata','u')<br />

Compatibility<br />

See also<br />

In FEMLAB 2.3 the solution was represented with a MATLAB structure. The<br />

solution object does not allow exactly the same type access as the structure. The<br />

solution object has been designed to be compatible with the MATLAB structure.<br />

asseminit, femeig, femlin, femnlin, femtime<br />

147

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

Saved successfully!

Ooh no, something went wrong!