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:
- Create boundary representation based geometries that can be used with PDE Toolbox functions.
- Represent boundary conditions and coefficients that can be used with PDE Toolbox functions
- Perform common query and post-processing functions on PDE Toolbox results.
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 3: Create arbitrary region out of arcs and lines
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