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.

eleqc<br />

Make sure that the integration point pattern index you use really does exist and<br />

corresponds to a reasonable integration order. When adding an eleqc element to<br />

an existing model, it may be necessary to extract and modify also the default<br />

elgpspec element.<br />

Examples<br />

Because equation contributions are simply added, you can introduce additions to a<br />

single coefficient using the fem.elem field.<br />

clear fem;<br />

fem.geom = circ2;<br />

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

fem.shape = 2;<br />

fem.equ.c = 1; fem.equ.f = 0;<br />

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

fem.elem = {};<br />

clear el;<br />

el.elem = 'eleqc';<br />

el.g = {'1'};<br />

el.form = 'coefficient';<br />

el.eqvars = 'off';<br />

clear equ;<br />

equ.dim = {'u'};<br />

equ.ind = {{'1'}};<br />

equ.f = {{'1'}};<br />

equ.ipoints = {{'1'}};<br />

el.geomdim{1} = {{},{},equ};<br />

fem.elem = [fem.elem {el}];<br />

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

fem.sol = femstatic(fem);<br />

postplot(fem,'tridata','u','triz','u','refine',3);<br />

See Also<br />

elempty, eleqw, elgpspec<br />

75

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

Saved successfully!

Ooh no, something went wrong!