Model.pressureonelement_curve#

Model.pressureonelement_curve(entity, face_index, x_comp, y_comp, z_comp, magnitude, curve_id, x_scale)#

Creates a pressure load on an element.

Parameters:
  • entity (Entity) – The object describing the element entity on which to apply the pressure.

  • face_index (int) – The face index of the solid element. Ignored, if the element is a shell element.

  • x_comp (double) – The x-component of pressure.

  • y_comp (double) – The y-component of pressure.

  • z_comp (double) – The z-component of pressure.

  • magnitude (double) – The magnitude of the pressure.

  • curve_id (unsigned int) – The ID of a curve defining the magnitude of the load versus time.

  • x_scale (double) – A scale factor applied to the x-axis (or time axis) of the curve.

Example#

Apply a pressure of magnitude 4.0 on the solid element ID 10 face index with ID 2 , use the curve with ID 9 to vary the magnitude over time#
import hm
import hm.entities as ent

model = hm.Model()

model.pressureonelement_curve(
    entity=ent.Element(model, 10),
    face_index=2,
    x_comp=0.0,
    y_comp=0.0,
    z_comp=0.0,
    magnitude=4.0,
    curve_id=9,
    x_scale=1.0,
)