Partition
Partition a domain with respect to a set of isolevels and add elements corresponding to the isosurfaces or contours.
Syntax
model.result().dataset().create(<dtag>,"Partition");
 
model.result().dataset(<dtag>).set(property,<value>);
 
model.result().dataset(<dtag>).createMesh(<compTag>,<geomTag>,<meshTag>,<importTag>);
model.result().dataset(<dtag>).createMeshPart(<compTag>,<geomTag>,<meshTag>,<importTag>);
Description
model.result().dataset().create(<dtag>,"Partition") creates a partition dataset with the name <dtag>.
The partition dataset makes it possible to partition a domain with respect to a set of isolevels and add elements corresponding to the isosurfaces or contours, using a scalar expression for which to apply the partitioning. Using the createMesh and createMeshPart methods, you can create a mesh or mesh part that refers to the Partition dataset.
The following properties are available:
none | dataset name
The isolevels, if levelmethod is levels.
fromdataset | volume | surface | line | point
number | levels
The definition of levels: a number of levels or a list of levels.
The number of levels, if levelmethod is number.
true | false
Round the levels, if levelmethod is number.
true | false
none | material | internal | everywhere | expression
Smoothing settings. With material, smoothing is done inside domains with the same material. With internal, smoothing is done inside geometry domains. With expression, the smoothing is based on the expression in smoothexpr.
The expression to use for smoothing when smooth is set to expression.
manual | none
Threshold value (0-1), if threshold is set to manual.
The unit to use for the expression in expr. If the old unit is not valid when the expression changes, the unit property is reset to default.
true | false
See Also
Filter (Dataset)