Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

jigglemesh

Jiggle internal points of triangular mesh

This page describes the legacy workflow. New features might not be compatible with the legacy workflow. For the corresponding step in the recommended workflow, see generateMesh.

Syntax

p1 = jigglemesh(p,e,t)
p1 = jigglemesh(p,e,t,'PropertyName',PropertyValue,...)

Description

p1 = jigglemesh(p,e,t) jiggles the triangular mesh by adjusting the node point positions. The quality of the mesh normally increases.

The following property name/property value pairs are allowed.

Property ValueDefaultDescription
Opt'off' | 'mean' | 'minimum'

'mean'

Optimization method, described in the following bullets

Iter

numeric

1 or 20 (see the following bullets)

Maximum iterations

Each mesh point that is not located on an edge segment is moved toward the center of mass of the polygon formed by the adjacent triangles. This process is repeated according to the settings of the Opt and Iter variables:

  • When Opt is set to 'off' this process is repeated Iter times (default: 1).

  • When Opt is set to 'mean' the process is repeated until the mean triangle quality does not significantly increase, or until the bound Iter is reached (default: 20).

  • When Opt is set to 'minimum' the process is repeated until the minimum triangle quality does not significantly increase, or until the bound Iter is reached (default: 20).

Examples

collapse all

Create a triangular mesh of the L-shaped membrane, first without jiggling, and then jiggle the mesh.

[p,e,t] = initmesh('lshapeg','jiggle','off');
q = pdetriq(p,t);
pdeplot(p,e,t,'XYData',q,'ColorBar','on','XYStyle','flat')

p1 = jigglemesh(p,e,t,'opt','mean','iter',inf);
q = pdetriq(p1,t);
pdeplot(p1,e,t,'XYData',q,'ColorBar','on','XYStyle','flat')

More About

See Also

|

Introduced before R2006a

Was this topic helpful?