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.

postplot<br />

TABLE 1-32: PROPERTY GROUPING<br />

PLOT ENTITY 1D 2D 3D PROPERTY NAMES STARTING WITH<br />

Lines Ω ∂Ω ∂ 2 Ω lin<br />

Principal stress/ Ω Ω princ<br />

strain plots<br />

Principal stress/<br />

∂Ω princbnd<br />

strain plots<br />

Slices Ω slice<br />

Particle tracing Ω Ω part<br />

Streamlines Ω Ω flow<br />

3D subdomains Ω tet<br />

Surfaces Ω ∂Ω tri<br />

The symbol ∂Ω indicates the boundary of the domain, and the symbol Ω indicates<br />

the domain itself. For the boundary of the domain, post data evaluated on the<br />

boundary is plotted. For the domain itself, post data evaluated on the domain is<br />

plotted.<br />

Examples<br />

3D Example<br />

Solve the Poisson equation on a unit square:<br />

clear fem<br />

fem.geom = block3;<br />

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

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

fem.bnd.h = {1 1 0 0 1 1};<br />

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

Plot the solution as a slice plot<br />

postplot(fem,'slicedata','u')<br />

Plot the solution using isosurfaces<br />

postplot(fem,'isodata','u','scenelight','on')<br />

Plot lighted cones showing the gradient together with geometry edges<br />

postplot(fem,'arrowdata',{'ux','uy','uz'},...<br />

'geom','on','camlight','on','arrowtype','cone')<br />

2D Example<br />

Solve the Poisson equation on the unit circle<br />

clear fem<br />

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

366 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!