Model.surfaceconefull#
- Model.surfaceconefull(top_center, bottom_center, base_radius, top_radius, aspect_ratio, height)#
Creates a cone with a specified center and radius, and optionally, prepares it for immediate use in the automesher. It also can identify a conical region for the automesher to use under the mesh without surface option.
- Parameters:
top_center (Entity) – A node specifying the top center of the cone.
bottom_center (Entity) – A node specifying the bottom center of the cone.
base_radius (double) – The radius of the bottom of the cone.
top_radius (double) – The radius of the top of the cone.
aspect_ratio (double) – A value less than 1.0 creates an elliptical cone or cylinder.
height (double) – Height of the cone.
Example#
Create a circular cone with the top center at node with ID 1 , the bottom center at node with ID 2 , a base radius of 100.0 , top radius of 0.0 , and a radius of 50.0 , but not create any elements#import hm import hm.entities as ent model = hm.Model() model.surfacemode(mode=4) model.surfaceconefull( top_center=ent.Node(model, 1), bottom_center=ent.Node(model, 2), base_radius=100.0, top_radius=0.0, aspect_ratio=1.0, height=50.0, )
Note
If
base_radius=top_radius, a cylinder is created.The
model.surfacemode(mode=4)tells HyperMesh not to pass the information on to the automesher for element creation.