Pressure (hwx.inspire.core)

A pressure is a distributed force that acts perpendicular to every point along the face.

Pressures typically arise from gases or liquids pressing on a face and can act in either the inward or outward direction on a solid. To apply a distributed force to a face that acts in a single uniform direction across the entire face, use a force instead of a pressure.

Attributes

active: Bool color: Color connectionRadius: Double
connectionType: Enum direction: Direction distributed: Bool
features: Attribute inward: Bool localToPart: Bool
location: Location magnitude: Double mode: Enum
name: Attribute part: Attribute parts: Attribute
type: Enum visible: Bool  

Properties

Attribute Details

active : Bool

Returns or sets the object activeness.

Setting this on or off sets all children. Setting to True sets all the parents active too.

color : Color

The color assigned to the Boundary Condition.

connectionRadius : Double (units=”length”)

The search radius for the Boundary Condition.

connectionType : Enum (rigid, flexible)

The type of the connection. Valid choices are:

  • rigid
  • flexible

direction : Direction

Returns the direction vector of the entity.

distributed : Bool

Returns whether the applied boundary condition is distributed or not.

Boundary conditions applied across the entire feature area (for faces) or length (for edges) are distributed and at a single point boundary conditions are non-distributed.

features : Attribute

Returns a list of features the entity is applied to.

inward : Bool

Returns True if pressure acts in the inward direction on the solid, False if it acts in outward direction.

localToPart : Bool

Returns or sets ‘Rotate with part’.

It makes boundary condition not to rotate or rotate along with its associated part.

location : Location (units=”length”)

Returns the location of the entity.

magnitude : Double (units=”pressure”)

The magnitude of the pressure, specified in terms of force per unit area.

mode : Enum (direction, components)

Specifies the mode of the boundary condition.

Valid choices are:

  • direction
  • components

name : Attribute

Returns or sets the name of the object.

It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.

While these characters are allowed, they could create difficulties when you export the model to other applications.

part : Attribute

Returns the part on which the entity is applied graphically.

parts : Attribute

Returns a list of parts on which the entity is applied on.

type : Enum (Uniform, Interpolated)

The type of the pressure.

You can apply a non-uniform distributed pressure (Interpolated) using the interpolationData property.

visible : Bool

Determines whether the Boundary Condition is visible or not.

Property Details

interpolationData()

A list of named tuples containing the position (Point(x, y, z)) and the magnitude of the pressure in it, used to apply a non-uniform distributed pressure. To set you can pass nested iterables where the inner flattened has four elements. For example, valid inputs are [(math.Point(0, 0, 0), 100)] or [((0, 0, 0), 100)] or [(0, 0, 0, 100)].