Model.pressuresonentity#
- Model.pressuresonentity(collection, nodes_collection, x, y, z, magnitude, breakangle, onface)#
Creates a pressure load on a surface or an element.
- Parameters:
collection (Collection) – The collection containing the entities on which to apply the pressure.
nodes_collection (Collection) – The collection containing the node entities that lie on the face of one or more elements (solids only).
x (double) – X component of pressure.
y (double) – Y component of pressure.
z (double) – Z component of pressure.
magnitude (double) – The magnitude of the pressure.
breakangle (double) – The break angle of a solid face.
onface (int) – A logical which determines whether pressures are being applied to faces.
Example#
Apply a pressure of 4.0 on surface with ID 11#import hm import hm.entities as ent model = hm.Model() model.pressuresonentity( collection=hm.Collection(model, ent.Surface, [11]), nodes_collection=hm.Collection(model, ent.Node, populate=False), x=0.0, y=0.0, z=0.0, magnitude=4.0, breakangle=30.0, onface=1, )