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.

assemble<br />

Purpose<br />

assemble<br />

Assemble the stiffness matrix, right-hand side, mass matrix, damping matrix, and<br />

constraints of a PDE problem.<br />

Syntax<br />

Description<br />

[K,L,M,N] = assemble(fem,...)<br />

[K,L,M,N,D] = assemble(fem,...)<br />

[K,L,M,N,D,E] = assemble(fem,...)<br />

[D,M,...] = assemble(fem,'Out',{'D' 'M' ...}, ...)<br />

assemble is a fundamental function in <strong>COMSOL</strong> Multiphysics. It assembles a PDE<br />

problem using a FEM discretization.<br />

For time-dependent problems, the FEM discretization is the system of ODEs<br />

0 = LUU·<br />

( , , U·· , t) – NUt ( , ) T Λ<br />

0 = MUt ( , )<br />

where L is the residual vector, M is the constraint residual vector, U is the solution<br />

vector, and Λ is the Lagrange multiplier vector. The linearization of this system uses<br />

the stiffness matrix K, the damping matrix D, the mass matrix E, and the constraint<br />

Jacobian matrix N given by<br />

K<br />

=<br />

∂L<br />

– ,<br />

∂U<br />

∂L<br />

D = – ,<br />

∂U·<br />

E<br />

∂U··<br />

∂L<br />

= – ,<br />

N<br />

= –<br />

∂M<br />

∂U<br />

All these matrices can depend on the solution vector U. The matrices K, D, and E<br />

can also depend on the time derivatives U·<br />

and U·· .<br />

For a stationary problem, the discretization is<br />

and the linearized problem is<br />

0 = LU ( )–<br />

NU ( ) T Λ<br />

0 = MU ( )<br />

KU ( – U 0<br />

) = L–<br />

N T Λ<br />

NU = M<br />

where K, L, M, and N are evaluated for some linearization “point” U = U 0 .<br />

For an eigenvalue problem, the discretization reads<br />

U – ( λ – λ 0<br />

)DU + ( λ–<br />

λ 0<br />

) 2 EU = – N T<br />

NU = M<br />

29

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

Saved successfully!

Ooh no, something went wrong!