Contact#

class ansys.dyna.core.pre.dynabase.Contact(type=ContactType.NULL, category=ContactCategory.SINGLE_SURFACE_CONTACT, offset=OffsetType.NULL)#

Provide a way of treating interaction between disjoint parts.

Overview#

set_mortar

Set the mortar contact.

set_tiebreak

Set the contact allow for failure.

set_friction_coefficient

Set the coefficient of friction.

set_active_time

Set the birth and death time to active and deactivate the contact.

set_initial_penetration

Ignore initial penetrations.

set_slave_surface

Set the slave contact interface.

set_master_surface

Set the master contact interface.

set_penalty_algorithm

Set the contact formulation.

create

Create a contact.

Import detail#

from ansys.dyna.core.pre.dynabase import Contact

Attribute detail#

Contact.stub#
Contact.rigidwall_penalties_scale_factor = 1#
Contact.max_penetration_check_multiplier = 4#
Contact.initial_penetrations = 0#
Contact.rigidwall_gap_stiffness = 0#
Contact.category#
Contact.type#
Contact.mortar = False#
Contact.ignore = 0#
Contact.offset = ''#
Contact.static_friction_coeff = 0#
Contact.dynamic_friction_coeff = 0#
Contact.birth_time = 0#
Contact.death_time = 1e+20#
Contact.option_tiebreak = False#
Contact.optionres = 0#
Contact.contact_formulation = 0#
Contact.segment_based_contact_option = 2#

Method detail#

Contact.set_mortar()#

Set the mortar contact.

A mort contact is a segment-to-segment, penalty-based contact.

Contact.set_tiebreak()#

Set the contact allow for failure.

A tieback is a special case of this. After failure, the contact usually becomes a normal one-way, two-way, or single surface version.

Contact.set_friction_coefficient(static=0, dynamic=0)#

Set the coefficient of friction.

Parameters:
staticfloat, optional

Static coefficient of friction. The default is 0.

dynamicfloat, optional

Dynamic coefficient of friction. The default is 0.

Contact.set_active_time(birth_time=0, death_time=1e+20)#

Set the birth and death time to active and deactivate the contact.

Parameters:
birth_timeint, optional

Time to activate the contact. The default is 0.

death_timefloat, optional

Time to deactivate the contact. The default is 1e20.

Contact.set_initial_penetration()#

Ignore initial penetrations.

Contact.set_slave_surface(surface)#

Set the slave contact interface.

Contact.set_master_surface(surface)#

Set the master contact interface.

Contact.set_penalty_algorithm(formulation=ContactFormulation.STANDARD_PENALTY, segment_based_contact_option=SBOPT.ASSUME_PLANER_SEGMENTS)#

Set the contact formulation.

Contact.create()#

Create a contact.