main content

geometry and mesh -凯发k8网页登录

define a geometry and discretize it using a triangular or tetrahedral mesh

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

creation and visualization

importgeometryimport geometry from stl or step file
geometryfrommeshcreate 2-d or 3-d geometry from mesh
create 2-d geometry from decomposed geometry matrix
decompose constructive solid 2-d geometry into minimal regions
create geometry formed by several cubic cells
create geometry formed by several cylindrical cells
create geometry formed by several spherical cells
plot pde geometry

modification

combine two geometries by adding one inside a cell of another
addfacefill void regions in 2-d and split cells in 3-d geometry
add vertex on geometry boundary
create void regions inside 3-d geometry
rotate geometry
scale geometry
translate geometry
vertically extrude 2-d geometry or specified faces of 3-d geometry

queries

find edges belonging to boundaries of specified cells
find faces belonging to specified cells
find edges belonging to specified faces
find faces attached to specified edges
find edges nearest to specified point
find faces nearest to specified point

pde modeler app

draw circle in pde modeler app
draw ellipse in pde modeler app
draw polygon in pde modeler app
draw rectangle in pde modeler app
generatemeshcreate triangular or tetrahedral mesh
meshqualityevaluate shape quality of mesh elements
find mesh elements in specified region
find mesh nodes in specified region
area of 2-d mesh elements
volume of 3-d mesh elements
plot pde mesh
plot solution or mesh for 2-d problem
plot solution or surface mesh for 3-d problem
create and plot pde visualization object

geometry

delete boundaries between subdomains
represent arc lengths as parametrized curve
write geometry function to file

mesh

create adaptive 2-d mesh and solve pde
create initial 2-d mesh
[p,e,t] representation of femesh data
(not recommended) jiggle internal points of triangular mesh
refine triangular mesh

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 matlab polyshape function.

  • reconstruct a geometry from a triangulated surface mesh created by the matlab alphashape 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 uses femesh objects to represent meshes.

  • adjust a mesh by using additional arguments of the generatemesh 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 the adaptmesh function.
网站地图