Model.rigidwall_geometry#
- Model.rigidwall_geometry(name, geometrytype, basenode, vectors, n1, n2, geomvar1, geomvar2, geomvar3)#
Adds geometric definition to a rigid wall.
- Parameters:
name (hwString) – The name of the rigid wall.
geometrytype (unsigned char) –
Use:
1 - infinite plane
2 - finite plane
3 - infinite prism
4 - finite prism
5 - cylinder
6 - sphere
basenode (Entity) – The object describing the base node for the rigid wall.
vectors (hwTriple) – The hwTriple object defining the normal vector.
n1 (Entity) – The object describing the first node entity to be part of the rigid wall.
n2 (Entity) – The object describing the second node entity to be part of the rigid wall.
geomvar1 (double) – The length in the x direction or radius.
geomvar2 (double) – The length in the y direction.
geomvar3 (double) – The length in the z direction.
Example#
Set the rigid wall “ My_rigid_wall “ as a finite plane with normal vector along the x axis and lenght to the y and z direction equal to 10.0 . The base node of the plane is the node with ID 1 and the nodes with IDs 2 , 3 are part of the rigid wall#import hm import hm.entities as ent model = hm.Model() model.rigidwall_geometry( name="My_rigid_wall", geometrytype=2, basenode=ent.Node(model, 1), vectors=[1.0, 0.0, 0.0], n1=ent.Node(model, 2), n2=ent.Node(model, 3), geomvar1=0.0, geomvar2=10.0, geomvar3=10.0, )