Partial Differential Equation Toolbox    
pdegeom

Geometry M-file

Syntax

Description

We represent 2-D regions by parameterized edge segments. Both the regions and edge segments are assigned unique positive numbers as labels. The edge segments cannot overlap. The full 2-D problem description can contain several nonintersecting regions, and they can have common border segments. The boundary of a region can consist of several edge segments. All edge segment junctions must coincide with edge segment endpoints. We sometimes refer to an edge segment as a boundary segment or a border segment. A boundary segment is located on the outer boundary of the union of the minimal regions, and a border segment is located on the border between minimal regions.

There are two options for specifying the problem geometry:

ne=pdegeom is the number of edge segments.

d=pdegeom(bs) is a matrix with one column for each edge segment specified in bs.

The complement of the union of all regions is assigned the region number 0.

[x,y]=pdegeom(bs,s) produces coordinates of edge segment points. bs specifies the edge segments and s the corresponding parameter values. bs can be a scalar. The parameter s should be approximately proportional to the curve length. All minimal regions should have at least two, and preferably three, edge segments in their boundary.

Examples

The function cardg defines the geometry of a cardioid

We use the function pdearcl to make the parameter s proportional to arc length. You can test the function by typing

Then solve the PDE problem on the geometry defined by the cardioid. Use Dirichlet boundary conditions u = 0 on . Finally plot the solution.

Cautionary

The parameter s should be approximately proportional to the curve length. All minimal regions should have at least two, and preferably three, edge segments in their boundary.

See Also

initmesh, refinemesh, pdearcl


  pdeent pdegplot