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.

poisson<br />

Purpose<br />

poisson<br />

Fast solution of Poisson’s equation on a rectangular grid.<br />

Syntax<br />

Description<br />

fem.sol = poisson(fem,...)<br />

fem.sol = poisson(fem) solves Poisson’s equation with Dirichlet boundary<br />

conditions on a regular rectangular grid. A combination of sine transforms and<br />

tri-diagonal solutions is used for increased performance.<br />

The boundary conditions must specify Dirichlet conditions for all boundary points.<br />

The mesh fem.mesh must be a regular triangular mesh on a rectangular geometry,<br />

for example, generated by meshpoi. Details on the mesh representation can be<br />

found in the entry on femmesh.<br />

The algorithm handles the f and γ coefficients. The c coefficient is set to one. All<br />

other coefficients are ignored. Only a one-dimensional system can be handled, that<br />

is, only fem.dim = 1 is allowed.<br />

The weak solution form must not be used when generating the extended mesh.<br />

Therefore set fem.sol='coefficient' before calling meshextend.<br />

Apart from round-off errors, the result should be the same as using femlin.<br />

The function poisson accepts the following property/value pairs:<br />

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

PROPERTY<br />

NAME<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

Const cell array Definition of constants<br />

Nullfun flnullorth | flnullorth Null space function<br />

flspnull<br />

Out fem | sol | u sol Output variables<br />

Diagnostics<br />

Cautionary<br />

If fem.geom does not seem to describe a rectangle, an error is displayed.<br />

The function only works in 2D. The function only supports linear Lagrange<br />

elements.<br />

Compatibility The properties Context and Tpoint are obsolete from FEMLAB 3.0.<br />

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

See Also<br />

meshpoi<br />

317

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

Saved successfully!

Ooh no, something went wrong!