> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RAMaterialsInteraction

### *class* RAMaterialsInteraction

Rocky PrePost Scripting wrapper for the interaction between two materials.

Retrieve a [`RAMaterialsInteraction`](#generated.RAMaterialsInteraction) from a [`RAMaterialsInteractionCollection`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMaterialsInteractionCollection#generated.RAMaterialsInteractionCollection) and
two [`RASolidMaterial`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RASolidMaterial#generated.RASolidMaterial):

```python theme={null}
material_1 = study.GetElement('Default Particles')
material_2 = study.GetElement('Default Boundaries')
interaction_collection = RAMaterialCollection.GetMaterialsInteractionCollection()
interaction = interaction_collection.GetMaterialsInteraction(material_1, material_2)
```

Note that the materials to which a [`RAMaterialsInteraction`](#generated.RAMaterialsInteraction) refers are fixed - while they
can be retrieved with [`GetFirstMaterial()`](#generated.RAMaterialsInteraction.GetFirstMaterial) and [`GetSecondMaterial()`](#generated.RAMaterialsInteraction.GetSecondMaterial), they can’t
be set.

**Methods:**

| Name | Description |
| - | - |
| [`GetAdhesiveDistance`](#generated.RAMaterialsInteraction.GetAdhesiveDistance)(\[unit]) | Get the value of "Adhesive Distance". |
| [`GetAdhesiveFraction`](#generated.RAMaterialsInteraction.GetAdhesiveFraction)(\[unit]) | Get the value of "Adhesive Fraction". |
| [`GetContactStiffnessMultiplier`](#generated.RAMaterialsInteraction.GetContactStiffnessMultiplier)(\[unit]) | Get the value of "Contact Stiffness Multiplier". |
| [`GetDynamicFriction`](#generated.RAMaterialsInteraction.GetDynamicFriction)(\[unit]) | Get the value of "Dynamic Friction". |
| [`GetFirstMaterial`](#generated.RAMaterialsInteraction.GetFirstMaterial)() | Get this interaction's first material. |
| [`GetModuleProperties`](#generated.RAMaterialsInteraction.GetModuleProperties)() | Get the names of the module properties. |
| [`GetModuleProperty`](#generated.RAMaterialsInteraction.GetModuleProperty)(property\_name\[, unit]) | Get the value of a module property. |
| [`GetRestitutionCoefficient`](#generated.RAMaterialsInteraction.GetRestitutionCoefficient)(\[unit]) | Get the value of "Restitution Coefficient". |
| [`GetSecondMaterial`](#generated.RAMaterialsInteraction.GetSecondMaterial)() | Get this interaction's second material. |
| [`GetStaticFriction`](#generated.RAMaterialsInteraction.GetStaticFriction)(\[unit]) | Get the value of "Static Friction". |
| [`GetSurfaceEnergy`](#generated.RAMaterialsInteraction.GetSurfaceEnergy)(\[unit]) | Get the value of "Surface Energy". |
| [`GetTangentialStiffnessRatio`](#generated.RAMaterialsInteraction.GetTangentialStiffnessRatio)(\[unit]) | Get the value of "Tangential Stiffness Ratio". |
| [`GetValidOptionsForModuleProperty`](#generated.RAMaterialsInteraction.GetValidOptionsForModuleProperty)(property\_name) | Get all valid options only for properties that have a list of possible options. |
| [`GetVelocityExponent`](#generated.RAMaterialsInteraction.GetVelocityExponent)(\[unit]) | Get the value of "Velocity Exponent". |
| [`GetVelocityLimit`](#generated.RAMaterialsInteraction.GetVelocityLimit)(\[unit]) | Get the value of "Velocity Limit". |
| [`SetAdhesiveDistance`](#generated.RAMaterialsInteraction.SetAdhesiveDistance)(value\[, unit]) | Set the value of "Adhesive Distance". |
| [`SetAdhesiveFraction`](#generated.RAMaterialsInteraction.SetAdhesiveFraction)(value\[, unit]) | Set the value of "Adhesive Fraction". |
| [`SetContactStiffnessMultiplier`](#generated.RAMaterialsInteraction.SetContactStiffnessMultiplier)(value\[, unit]) | Set the value of "Contact Stiffness Multiplier". |
| [`SetDynamicFriction`](#generated.RAMaterialsInteraction.SetDynamicFriction)(value\[, unit]) | Set the value of "Dynamic Friction". |
| [`SetModuleProperty`](#generated.RAMaterialsInteraction.SetModuleProperty)(property\_name, value\[, unit]) | Set the value of a module property. |
| [`SetRestitutionCoefficient`](#generated.RAMaterialsInteraction.SetRestitutionCoefficient)(value\[, unit]) | Set the value of "Restitution Coefficient". |
| [`SetStaticFriction`](#generated.RAMaterialsInteraction.SetStaticFriction)(value\[, unit]) | Set the value of "Static Friction". |
| [`SetSurfaceEnergy`](#generated.RAMaterialsInteraction.SetSurfaceEnergy)(value\[, unit]) | Set the value of "Surface Energy". |
| [`SetTangentialStiffnessRatio`](#generated.RAMaterialsInteraction.SetTangentialStiffnessRatio)(value\[, unit]) | Set the value of "Tangential Stiffness Ratio". |
| [`SetVelocityExponent`](#generated.RAMaterialsInteraction.SetVelocityExponent)(value\[, unit]) | Set the value of "Velocity Exponent". |
| [`SetVelocityLimit`](#generated.RAMaterialsInteraction.SetVelocityLimit)(value\[, unit]) | Set the value of "Velocity Limit". |

#### GetAdhesiveDistance(unit: str | None = None)

Get the value of “Adhesive Distance”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “m”.

#### GetAdhesiveFraction(unit: str | None = None)

Get the value of “Adhesive Fraction”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetContactStiffnessMultiplier(unit: str | None = None)

Get the value of “Contact Stiffness Multiplier”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetDynamicFriction(unit: str | None = None)

Get the value of “Dynamic Friction”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetFirstMaterial()

Get this interaction’s first material.

#### GetModuleProperties()

Get the names of the module properties.

* **Return type:**
  tuple(ModulePropertyIdentifier)

#### GetModuleProperty(property\_name: str | ModulePropertyIdentifier, unit: str | None = None)

Get the value of a module property.

* **Parameters:**
  * **property\_name** (*Union* \*\[\**str* *,* *ModulePropertyIdentifier* *]*) – The name of the module property to get.
  * **unit** (*str*) – The unit for value, just for scalar properties. If no unit is provided,
    the returned value will be in the unit that was set before (via SetModuleProperty()).
* **Return type:**
  float, bool, str or [`RAModulePropertyList`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAModulePropertyList#generated.RAModulePropertyList)
* **Returns:**
  * For basic module properties like numbers and booleans, the returned value is a basic
    Python type (float, bool, or string)
  * For input files, the returned value is the string of the full path to the file
  * For properties that are lists of other properties, the returned value is a
    : [`RAModulePropertyList`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAModulePropertyList#generated.RAModulePropertyList).

#### GetRestitutionCoefficient(unit: str | None = None)

Get the value of “Restitution Coefficient”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetSecondMaterial()

Get this interaction’s second material.

#### GetStaticFriction(unit: str | None = None)

Get the value of “Static Friction”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetSurfaceEnergy(unit: str | None = None)

Get the value of “Surface Energy”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “J/m2”.

#### GetTangentialStiffnessRatio(unit: str | None = None)

Get the value of “Tangential Stiffness Ratio”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetValidOptionsForModuleProperty(property\_name)

Get all valid options only for properties that have a list of possible options.

* **Parameters:**
  **property\_name** (*str*) – The name of the module property.
* **Return type:**
  List\[str]

#### GetVelocityExponent(unit: str | None = None)

Get the value of “Velocity Exponent”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “-“.

#### GetVelocityLimit(unit: str | None = None)

Get the value of “Velocity Limit”.

* **Parameters:**
  **unit** – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.

#### SetAdhesiveDistance(value: str | float, unit: str | None = None)

Set the value of “Adhesive Distance”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “m”.

#### SetAdhesiveFraction(value: str | float, unit: str | None = None)

Set the value of “Adhesive Fraction”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetContactStiffnessMultiplier(value: str | float, unit: str | None = None)

Set the value of “Contact Stiffness Multiplier”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetDynamicFriction(value: str | float, unit: str | None = None)

Set the value of “Dynamic Friction”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetModuleProperty(property\_name: str | ModulePropertyIdentifier, value: float | bool | str, unit: str | None = None)

Set the value of a module property.

* **Parameters:**
  * **property\_name** (*Union* \*\[\**str* *,* *ModulePropertyIdentifier* *]*) – The name of the module property to set.
  * **value** (*float* *,* *bool* *or* *str*) – The value to set.
    If the property\_name references to an enum property then value must be an str value.
  * **unit** (*str*) – The unit for value, just for scalar properties. If no unit is provided,
    value is assumed to be the unit was set before.

#### SetRestitutionCoefficient(value: str | float, unit: str | None = None)

Set the value of “Restitution Coefficient”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetStaticFriction(value: str | float, unit: str | None = None)

Set the value of “Static Friction”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetSurfaceEnergy(value: str | float, unit: str | None = None)

Set the value of “Surface Energy”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “J/m2”.

#### SetTangentialStiffnessRatio(value: str | float, unit: str | None = None)

Set the value of “Tangential Stiffness Ratio”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetVelocityExponent(value: str | float, unit: str | None = None)

Set the value of “Velocity Exponent”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “-“.

#### SetVelocityLimit(value: str | float, unit: str | None = None)

Set the value of “Velocity Limit”.

* **Parameters:**
  * **value** – The value to set. This value can be an expression with input variables or float type.
  * **unit** – The unit for value. If no unit is provided, value is assumed to be in “m/s”.
