RevCylinder#
A revolution cylinder is a revolution trunk where both radiuses are equal (RevCylinder class inherits from RevTrunk class).
So, only centers of both bases and the radius are required.
So, give centers and radius of bases, using dedicated parameters _center1, _center2, taking a point or a single value (in this case, it is a 1D point), and _radius parameter taking one single positive value.
As RevTrunk, RevCylinder offers the ability to add extensions at ends of a revolution cylinder (see RevTrunk for how to define these extensions).
Use parameters _end1_shape and _end2_shape, taking a GeometricEndShape, and _end1_distance and _end2_distance parameters, taking one single positive value.
_nnodes parameter can take one single value, an explicit list of 3 or \(n\) values or a Numbers object, where \(n\) is 3 times the number of edges of the basis.
_hsteps parametercan take one real value, an explicit list of \(p\) real values or a Reals object, where \(p\) is the number of points defining the cylinder.
There is an additional parameter: _nbsubdomains, enabling to slice the main trunk (without its extensions) in many domains. If required, give names of main domain and side domains as explained in Geometry definition:
RevCylinder r1(_center1=Point(0.,0.,0.), _center2=Point(5.,0.,0.), _radius=1, _nnodes={10, 10, 10, 10, 10, 10, 10, 10, 10, 50, 50, 50, 50}, _domain_name="Omg", _side_names={"Gam", "Gam", "Sig", "Sig", "Sig", "Sig"});
RevCylinder r2(_center1=Point(0.,0.,0.), _center2=Point(5.,0.,0.), _radius=1, _nnodes={10, 10, 50}, _domain_name="Omg", _side_names={"Gam", "Gam", "Sig", "Sig", "Sig", "Sig"});
Let’s summarize information about geometrical keys on revolution cylinders:
key(s) |
authorized types |
examples |
|---|---|---|
|
|
|
|
single unsigned integer or real positive value |
|
|
|
|
|
single unsigned integer or real positive value |
|
|
single unsigned integer value |
|