Include a 2-D or 3-D geometry into your model by using one of these approaches:
Import an STL file into MATLAB®by using
The STL file format is very common and supported by most CAD
software. In case of a planar STL geometry, the toolbox
converts it to a 2-D geometry by mapping it to the X-Y
Reconstruct a geometry from a mesh by using
This function works with triangulated meshes, including
planar, volume, and surface triangulation that bounds a
For 3-D problems, you can create a geometry by stacking or nesting cubes, cylinders, or spheres.
For 2-D problems, you can create a geometry via the constructive solid
geometry (CSG), by writing a geometry function, or by using the
polyshape function. The CSG approach uses a set
of solid building blocks (square, rectangle, circle, ellipse, and
polygon) and combines them to define complex geometries. Alternatively,
you can create a 2-D geometry in the PDE Modeler app. The app uses the
|Create 2-D geometry|
|Decompose constructive solid geometry into minimal regions|
|Check validity of Geometry Description matrix|
|Delete borders between minimal regions|
|Interpolation between parametric representation and arc length|
|Write geometry specification function|
|Draw circle in PDE Modeler app|
|Draw ellipse in PDE Modeler app|
|Draw polygon in PDE Modeler app|
|Draw rectangle in PDE Modeler app|
|PDE Modeler||Solve partial differential equations in 2-D regions|
Include a geometry into your PDE model by importing an STL file.
Reconstruct a geometry from a tetrahedral mesh and from a planar multidomain mesh.
Reconstruct a geometry from a triangulated mesh created by the MATLAB
Reconstruct a geometry from a triangulated surface mesh created by the MATLAB
Choose an approach for creating a 2-D geometry.
Draw, rotate, and combine basic shapes in the PDE Modeler app.
Use constructive solid geometry (CSG) modeling approach to combine basic shapes at the command line.
Create a 2-D geometry by using a parametrized function.
Create a 3-D geometry by stacking or nesting three basic volumes.