ansys.dyna.core.pre.dynabase.Constraint#

class ansys.dyna.core.pre.dynabase.Constraint#

Provides a way of constraining degrees of freedom to move together in some way.

spotweldlist = []#
cnrbsetidlist = []#
jointsphericallist = []#
mergerigidlist = []#
create_spotweld(nodeid1, nodeid2)#

Define massless spot welds between non-contiguous nodal pairs.

Parameters:
nodeid1int

ID for the first node.

nodeid2int

ID for the second node.

Returns:
bool

True when successful, False when failed.

create_cnrb(nodeset)#

Create a nodal rigid body, which is a rigid body that consists of defined nodes.

Parameters:
nodesetNodeSet

Node set that defines the rigid body.

Returns:
bool

True when successful, False when failed.

create_joint_spherical(nodes, relative_penalty_stiffness=1.0, damping_scale_factor=1.0)#

Create a joint between two rigid bodies.

Parameters:
nodeslist

List of nodes for creating the joint.

relative_penalty_stiffnessint, optional

Relative penalty stiffness. The default is 1.0.

damping_scale_factorint, optional

Damping scale factor on the default damping value. The default is 1.0.

merge_two_rigid_bodies(lead_rigidbody=0, constrained_rigidbody=0)#

Merge two rigid bodies.

One rigid body, called the constrained rigid body, is merged into another rigid body, called the lead rigid body.

Parameters:
lead_rigidbodyint, optional

Part ID for the lead rigid body. The default is 0.

constrained_rigidbodyint

Part ID for the constrained rigid body. The default is 0.

create()#

Create a constraint.