Introduction

This File Exchange entry includes a package that is built on top of PDE Toolbox for easy programmatic geometry creation, boundary condition (BC) and equation formulation and post-processing. The entry also includes several examples.

The package helps you:

For simple geometries, it will often be more efficient to use PDE Toolbox functions directly but for more complex geometries and formulations, using an abstract layer such as this package can be helpful.

Contents

Before you begin

Unzip helperClasses.zip and cd to helperClasses. The examples listed below will run from this level.

Geometry examples

Example 1: Create a circle

Example 2: Create a square

Example 3: Create arbitrary region out of arcs and lines

Example 4: Create a polygon

Example 5: Create geometry by adding other geometries

Example 6: Scale, translate, rotate geometry

Example 7: Create geometry from parametric segments (requires Symbolic Math Toolbox)

Example 8: Create geometry from image (requires Image Processing Toolbox)

Solve examples

Solve Laplace's equation on a 4-sided polygon

Solve Laplace's equation with periodic boundary conditions on octagon shaped geometry

Magnetostatic analysis of a Switched Reluctance Motor

Explore hole placement in clamped square plate

Electrode voltage profile for piezoelectric sensor