Filter (Dataset)
Create a filter dataset for filtering data using lower and upper bounds.
Syntax
model.result().dataset().create(<dtag>,"Filter");
 
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>,"Filter") creates a filter dataset with the name <dtag>.
The filter dataset makes it possible to filter out values in an expression from another dataset using lower and upper bounds. Using the createMesh and createMeshPart methods, you can create a mesh or mesh part that refers to the Filter dataset.
The following properties are available:
lower | upper | lowerupper
none | dataset name
fromdataset | volume | surface | line | point
A value or expression for the lower bound, if bounds is set to lower or lowerupper.
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.
A value or expression for the upper bound, if bounds is set to upper or lowerupper.
true | false
See Also
Partition