This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

DiscreteGeometry Properties

3-D geometry description

DiscreteGeometry describes 3-D geometry in the form of an object. A PDEModel object has a Geometry property. For 3-D geometry, the Geometry property is a DiscreteGeometry object.

You can use the importGeometry function or the geometryFromMesh function to specify a 3-D geometry for your model.

You also can use the multicuboid, multicylinder, or multisphere functions to create a geometry that you can later assign to your model. These functions let you create multi-cellular geometries for modeling subdomains or single domains of cubic, cylindrical, or spherical shapes, respectively. All cells must be of the same type: you cannot combine cuboids, cylinders, and spheres in one geometry. To add a multi-cellular geometry to a PDEModel, assign the DiscreteGeometry to the Geometry property of the model. For example, create a PDE model and add the following geometry formed by three spheres to the model.

model = createpde;
gm = multisphere([1,2,3]);
model.Geometry = gm;

Properties

expand all

Number of geometry cells, returned as a positive integer.

Data Types: double

Number of geometry edges, returned as a positive integer.

Data Types: double

Number of geometry faces, returned as a positive integer.

Data Types: double

Number of geometry vertices, returned as a positive integer.

Data Types: double

Introduced in R2015a