SizeExpression
Specify a mesh size expression.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"SizeExpression");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection();
model.component(<ctag>).mesh(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).importData();
model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"SizeExpression");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).selection();
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).
    set(property,<value>);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).getType(property);
Description
Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"SizeExpression") to specify a mesh element size expression in the sequence. Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"SizeExpression") to specify an element size expression for the feature <ftag> that can be any of the types Edge, FreeQuad, FreeTri, or FreeTet.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() or model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).selection() to specify the geometric entity selection. If you do not specify any selection, the size expression feature is defined on all geometric entities.
You can use mesh.feature(<ftag>).importData() to reevaluate the size expression, taking an updated model into account.
The following properties are available.
Controls refinement if elselect = elements.
globalmin | worst | elements
size | error
grid | solution | initialexpression
Controls refinement if elselect = globalmin.
cellresolution | cellsize
auto | tag of other mesh
Mesh for evaluation when evaltype is initialcondition.
first | last | all | manual
none | tag path to study step
The study step to use. Available when evaltype is initialcondition.
Controls refinement if elselect = worst.
For the horder property, its value is automatically calculated in the adaptation algorithm. It is used only when the Element selection method is set to Rough global minimum.
See Also
Adapt, Distribution, Scale, Size