Model.pressuresonentity_curve#
- Model.pressuresonentity_curve(collection, facenodes, x_comp, y_comp, z_comp, magnitude, breakangle, onface, xlocation, ylocation, zlocation, curve_id, x_scale)#
Creates a pressure load on a mark of elements, surfaces, components or sets, potentially with its magnitude defined by a curve.
- Parameters:
collection (Collection) – The collection containing the entities the load is applied on. Valid entities are surfaces and elements.
facenodes (Collection) – The collection containing the node entities that lie on the face of one or more elements (solids only).
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.
breakangle (double) – The break angle of a solid face.
onface (int) –
A logical which determines whether pressures are being applied to faces:
0 - Consider the edge
1 - Consider the face
10 - Same as 0 but for shells. Do not consider breakangle, and force all edge loads to have both nodes on
facenodes11 - Same as 1 but for solids. Do not consider breakangle, and force all loads to have all nodes on
facenodes20 - Same as
onface=0but consider hidden entities21 - Same as
onface=1but consider hidden entities30 - Same as
onface=10but consider hidden entities31 - Same as
onface=11but consider hidden entitiesxlocation (double) – The x component to where HyperMesh should draw the graphical image for the load.
ylocation (double) – The y component to where HyperMesh should draw the graphical image for the load.
zlocation (double) – The z component to where HyperMesh should draw the graphical image for the load.
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.
Note
For loads on components or sets, you may wish to supply a display location for where HyperMesh should draw the graphical image for the load. If the values of the arguments
xlocation,ylocationandzlocationare 999999, or more than one entity is selected, HyperMesh will generate a display location from the contents of the components or sets.Example#
Apply a pressure of 4.0 to the elements of the component “ container “ , use the curve with ID 9 to vary this magnitude over time#import hm import hm.entities as ent model = hm.Model() # Creating the collection that contains the elements of the component "container" filter = hm.FilterByCollection(ent.Element, ent.Component) component_collection = hm.Collection(model, ent.Component, "name=container") element_collection = hm.Collection(model, filter, component_collection) model.pressuresonentity_curve( collection=element_collection, facenodes=hm.Collection(model, ent.Node, populate=False), x_comp=0.0, y_comp=0.0, z_comp=0.0, magnitude=4.0, breakangle=30.0, onface=1, xlocation=0.0, ylocation=0.0, zlocation=0.0, curve_id=9, x_scale=1.0, )