Scale
Scale mesh size properties.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"Scale");
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>).create(<ftag1>,"Scale");
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>,"Scale") to scale size properties defined in the sequence and use model.mesh(<tag>).feature(<ftag>).create(<ftag1>,"Scale") to scale size properties defined in the sequence referred to by the Reference feature <ftag>.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() or model.mesh(<tag>).component(<ctag>).feature(<ftag>).feature(<ftag1>).selection() to specify the geometric entity selection or the entire geometry (which is default).
The following properties are available:
Scale is a positive number. The feature scales mesh size properties, distribution properties, and boundary layer properties affecting mesh elements generated by features following the scale feature. The scale feature also affects size properties defined by Size, Distribution, and BndLayerProp features occurring later in the sequence.
A scale less than 1 gives smaller (more) elements; a scale greater than 1 gives larger (fewer) elements. The scale feature has no effect on any mesh generated earlier in the sequence.
If two or more scale features exist on the same selection, the resulting scale on that selection is the product of the given scales.
Example
Create a block and mesh it with 10-by-10-by-10 hexahedra. Setting scale to 2 gives you a block with 5-by-5-by-5 hexahedra and setting the scale to 0.5 gives you a block with 20-by-20-by-20 hexahedra.
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1", 3);
MeshSequence m = model.component("comp1").mesh().create("mesh1", "geom1");
 
g.create("blk1", "Block");
g.run();
 
m.create("sca1", "Scale");
m.create("map1", "Map");
m.feature("map1").selection().set(new int[]{1});
m.create("swe1", "Sweep");
m.run();
 
m.feature("sca1").set("scale", "2");
m.run();
 
m.feature("sca1").set("scale", "0.5");
m.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1', 3);
m = model.component('comp1').mesh.create('mesh1', 'geom1');
 
g.create('blk1', 'Block');
g.run;
 
m.create('sca1', 'Scale');
m.create('map1', 'Map');
m.feature('map1').selection().set(1);
m.create('swe1', 'Sweep');
m.run;
 
m.feature('sca1').set('scale', '2');
m.run;
 
m.feature('sca1').set('scale', '0.5');
m.run;
See Also
BndLayerProp, Distribution, Size