Rotating Region Material

A rotating region is created and assigned:

m = new Material("Rotating Region");

m.name = "rotor";

m.analysisType = "Known Rotational Speed";

p = m.property("Rotational Speed");

v = p.variation("Table");

v.xUnits = "RPM";

v.yUnits = "second";

v.addPoint(0.0, 0.0);

v.addPoint(600., 0.75);

v.addPoint(600., 100.);

p.apply(v);

m.setDirection(0.0, 0.0, -1.0);

a.select("IMPELLER");

a.applyMaterial(m);

A line-by-line description follows.

A new material object called “m” is created, and the type is set as a Rotating Region. The name of the material is set to “rotor”:

m = new Material("Rotating Region");

m.name = "rotor";

The analysis type for the rotating region is set to Known Rotation Speed:

m.analysisType = "Known Rotational Speed";

A property object called “p” is created, and Rotational Speed set as the property to modify:

p = m.property("Rotational Speed");

A variation object called “v” is created, and the type is set to Table. The two subsequent lines set the units for the x and y columns:

v = p.variation("Table");

v.xUnits = "RPM";

v.yUnits = "second";

The next three lines define the three entries of the table of the variation object called “v”:

v.addPoint(0.0, 0.0);

v.addPoint(600., 0.75);

v.addPoint(600., 100.);

This command applies the value of the table to the property object, “p”:

p.apply(v);

The direction of the axis of rotation is then set:

m.setDirection(0.0, 0.0, -1.0);

Finally, the part called Impeller is selected, and the material is applied:

a.select("IMPELLER");

a.applyMaterial(m);