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.

meshqual<br />

Purpose<br />

meshqual<br />

Mesh quality measure.<br />

Syntax<br />

Description<br />

q = meshqual(mesh)<br />

q = meshqual(mesh) returns the mesh element quality for all elements in the mesh<br />

object mesh.<br />

The mesh element quality is a number between 0 and 1. The quality is 1 for a perfect<br />

element.<br />

Details on the mesh object can be found in the entry on femmesh.<br />

The triangle quality is given by the formula<br />

where a is the area and h 1 , h 2 , and h 3 the side lengths of the triangle. If q > 0.3 the<br />

mesh quality should not affect the quality of the solution. q = 1 when h 1 = h 2 = h 3 .<br />

For a quadrilateral,<br />

where h 1 , h 2 , h 3 , and h 4 are the side lengths. q=1 for a square.<br />

The tetrahedron mesh quality measure is given by<br />

where V is the volume, and h 1 , h 2 , h 3 , h 4 , h 5 , and h 6 are the side lengths of the<br />

tetrahedron. If q > 0.1 the mesh quality should not affect the quality of the solution.<br />

For a hexahedron,<br />

4 3a<br />

q = ------------------------------- ,<br />

2 2 2<br />

h 1<br />

+ h 2<br />

+h 3<br />

q = --------------------------------------------<br />

4A<br />

,<br />

2 2 2<br />

+ h 2<br />

+ h 3<br />

+h 4<br />

where h i are the edge lengths. q=1 for a cube. For a prism,<br />

h 1<br />

2<br />

q<br />

72 3V<br />

= ----------------------------------------------------------------------------------- ,<br />

2 2 2 2 2 2<br />

( h 1<br />

+ h 2<br />

+ h 3<br />

+ h 4<br />

+ h 5<br />

+h 6<br />

) 3 ⁄ 2<br />

q = ------------------------------<br />

24 3V<br />

,<br />

12<br />

⎛ ⎞ 3 ⁄ 2<br />

⎜ 2<br />

⎜∑<br />

h ⎟<br />

i ⎟<br />

⎝ ⎠<br />

i = 1<br />

289

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

Saved successfully!

Ooh no, something went wrong!