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 />

Purpose<br />

femsol<br />

Create a solution object.<br />

Syntax<br />

fem.sol = femsol(u)<br />

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

fem.sol = femsol({u ut},'tlist',tlist)<br />

fem.sol = femsol(u,'plist',plist,'pname',plist)<br />

fem.sol = femsol(u,'lambda',lambda)<br />

Description fem.sol = femsol(u) creates a stationary solution object from a column vector u.<br />

The length of u must equal number of degrees of freedoms in the extended mesh<br />

object, fem.xmesh, (see flngdof).<br />

fem.sol = femsol(u,...) stores a matrix corresponding to a time-dependent,<br />

parametric, or eigenvalue solution in the solution object. The number of rows must<br />

equal the number of degrees of freedoms in the extended mesh object, fem.xmesh,<br />

(see flngdof) and the number of columns of u must equal the number of time<br />

steps, parameter values, or eigenvalues, respectively.<br />

fem.sol = femsol({u ut},...) creates a time-dependent solution object<br />

containing also the first time derivative. The matrix u is the usual solution matrix,<br />

and ut is its time derivative.<br />

fem.sol = femsol(u,'mcase',mcase) sets the mesh case of the created solution<br />

object to mcase. The default mesh case is 0.<br />

Access Functions<br />

The following access functions lets you fetch properties from the solution object.<br />

TABLE 1-29: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY<br />

fem.sol.u<br />

fem.sol.ut<br />

fem.sol.tlist<br />

fem.sol.plist<br />

fem.sol.pname<br />

fem.sol.lambda<br />

fem.sol.mcase<br />

VALUES<br />

Solution vector or matrix<br />

Matrix containing time derivative (time-dependent<br />

solutions)<br />

List of time steps (time-dependent solutions)<br />

List of parameter values (parametric solutions)<br />

Parameter name (parametric solutions)<br />

List of eigenvalues (eigenvalue solutions)<br />

Mesh case<br />

If the time-derivatives have not been stored in the femsol object, fem.sol.ut is<br />

computed as the slope of the linear interpolation between the time steps. To store<br />

the time derivatives in the solution, use the Outcomp property, see femsolver.<br />

146 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!