geometry and mesh -凯发k8网页登录
reconstruct a geometry from stl or mesh data:
import an stl or step file into matlab® by using
importgeometry
. the stl and step file formats are 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 plane.reconstruct a geometry from a mesh by using
geometryfrommesh
. this function works with triangulated meshes, including planar, volume, and surface triangulation that bounds a closed volume.
create a geometry:
stack or nest cubes, cylinders, or spheres to create a geometry for a 3-d problem.
extrude a 2-d geometry into a 3-d geometry.
use the constructive solid geometry (csg) approach, write a geometry function, or use the
polyshape
function to create a geometry for a 2-d problem. the csg approach uses a set of solid building blocks (square, rectangle, circle, ellipse, and polygon) and combines them to define complex geometries.use the pde modeler app to create complex 2-d geometries by drawing, overlapping, and rotating basic shapes, such as circles, polygons and so on.
mesh a geometry by using the generatemesh
function. the
toolbox uses the finite element method (fem) to solve pdes. a pde model
stores the generated mesh as an femesh
object in its
mesh
property. for details, see .
for details about the components of geometries and meshes and the relationships between them, see .
functions
objects
geometry object for finite element analysis |
properties
analytic 2-d geometry description | |
discrete 2-d or 3-d geometry description | |
mesh object | |
pde visualization of mesh and nodal results |
apps
create complex 2-d geometries by drawing, overlapping, and rotating basic shapes |
topics
geometry
learn about the components of geometries and meshes and the relationships between them within a model object.
import a 2-d or 3-d geometry from an stl file.
import a 3-d geometry from a step file.
reconstruct a geometry from a tetrahedral mesh and from a planar multidomain mesh.
reconstruct a geometry from a triangulated mesh created by the matlabpolyshape
function.
reconstruct a geometry from a triangulated surface mesh created by the matlabalphashape
function.
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.- cuboids, cylinders, and spheres
create a 3-d geometry by stacking or nesting three basic volumes.
extrude a 2-d geometry imported as an stl file into a 3-d geometry.
split a single-domain block geometry into two domains.
create a nested multidomain geometry consisting of a unit sphere and a cube.
mesh
recommended workflow usesfemesh
objects to represent meshes.
adjust a mesh by using additional arguments of thegeneratemesh
function.
find mesh elements and nodes by their geometric location or proximity to a particular point or node.
evaluate the shape quality of mesh elements.
legacy mesh
legacy workflow uses [p,e,t] triples to represent meshes.
solve a poisson's equation with a delta-function point source on the unit disk using theadaptmesh
function.