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.

femeig<br />

where Ω is the L-shaped membrane. Start by setting up the problem:<br />

clear fem<br />

fem.geom = poly2([-1 0 0 1 1 -1],[0 0 1 1 -1 -1]);<br />

fem.mesh = meshinit(fem,'hmax',0.1);<br />

fem.shape = 2;<br />

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

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

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

fem.sol = femeig(fem,'neigs',16);<br />

Display the first and sixteenth eigenmodes. The membrane function is available in<br />

MATLAB and not in <strong>COMSOL</strong> Script.<br />

postsurf(fem,'u')<br />

% first eigenmode<br />

membrane(1,20,9,9)<br />

% the MATLAB function<br />

postsurf(fem,'u','solnum',16) % sixteenth eigenmode<br />

Cautionary<br />

Consider the case of a linear eigenvalue problem, E=0.Write the generalized<br />

eigenvalue problem as (A-λB)u=0. In the standard case the coefficients c and d a are<br />

positive in the entire region. All eigenvalues are positive, and 0 is a good choice for<br />

the shift (eigenvalue search location). The cases where either c or d a is zero are<br />

discussed below.<br />

• If d a = 0 in a subregion, the mass matrix B becomes singular. This does not cause<br />

any trouble, provided that c > 0 everywhere. The pencil (A,B) has a set of infinite<br />

eigenvalues.<br />

• If c = 0 in a subregion, the stiffness matrix A becomes singular, and the pencil<br />

(A,B) has many zero eigenvalues. Choose a positive shift below the smallest<br />

nonzero eigenvalue.<br />

• If there is a region where both c = 0 and d a = 0, we get a singular pencil. The<br />

whole eigenvalue problem is undetermined, and any value is equally plausible as<br />

an eigenvalue.<br />

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

The properties Epoint and Tpoint are obsolete from FEMLAB 2.2. Use<br />

fem.***.gporder to specify integration order.<br />

See Also<br />

femsolver, assemble, femlin<br />

123

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

Saved successfully!

Ooh no, something went wrong!