    

 ## On this page

  

 

 # Class Friction

 Last update: 16.07.2025 

Namespace: [VM.API.Pre](VM.API.Pre.md)  
Assembly: VM.API.Pre.dll

This class represents the friction

```csharp
public class Friction

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Friction](VM.API.Pre.Friction.md)

#### Derived

[FrictionContact](VM.API.Pre.FrictionContact.md), [FrictionRevolute](VM.API.Pre.FrictionRevolute.md), [FrictionTranslational](VM.API.Pre.FrictionTranslational.md), [FrictionUniversal](VM.API.Pre.FrictionUniversal.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Friction()

Default constructor

```csharp
public Friction()

```

### Friction(ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, EffectType)

Initializes a new instance of the  class.

```csharp
public Friction(ExpressionValueVariable frictionCoefficient, ExpressionValueVariable staticFrictionCoefficient, ExpressionValueVariable dynamicsThreshold, ExpressionValueVariable stictionVelocity, ExpressionValueVariable maxStictionDeformation, Friction.EffectType frictionEffect)

```

#### Parameters

`frictionCoefficient` ExpressionValueVariable

The friction coefficient.

`staticFrictionCoefficient` ExpressionValueVariable

The static friction coefficient.

`dynamicsThreshold` ExpressionValueVariable

The dynamics threshold.

`stictionVelocity` ExpressionValueVariable

The stiction velocity.

`maxStictionDeformation` ExpressionValueVariable

The max stiction deformation.

`frictionEffect` Friction.EffectType

The friction effect.

### Friction(ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, EffectType, bool, bool)

Initializes a new instance of the  class.

```csharp
public Friction(ExpressionValueVariable frictionCoefficient, ExpressionValueVariable staticFrictionCoefficient, ExpressionValueVariable dynamicsThreshold, ExpressionValueVariable stictionVelocity, ExpressionValueVariable maxStictionDeformation, Friction.EffectType frictionEffect, bool reactionForce, bool bendingMoment)

```

#### Parameters

`frictionCoefficient` ExpressionValueVariable

The friction coefficient.

`staticFrictionCoefficient` ExpressionValueVariable

The static friction coefficient.

`dynamicsThreshold` ExpressionValueVariable

The dynamics threshold.

`stictionVelocity` ExpressionValueVariable

The stiction velocity.

`maxStictionDeformation` ExpressionValueVariable

The max stiction deformation.

`frictionEffect` Friction.EffectType

The friction effect.

`reactionForce` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The reaction force.

`bendingMoment` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The bending moment.

## Properties

### BendingMoment

The value for the bending moment. The default value is 'true'.

```csharp
public bool BendingMoment { get; set; }

```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### DynamicsThreshold

The value for the dynamics threshold. The default value is 0.15.

```csharp
public ExpressionValueVariable DynamicsThreshold { get; set; }

```

#### Property Value

ExpressionValueVariable

### FrictionCoefficient

The value for the friction coefficient. The default value is 0.3.

```csharp
public ExpressionValueVariable FrictionCoefficient { get; set; }

```

#### Property Value

ExpressionValueVariable

### FrictionEffect

The value for the friction effect. The default value is .

```csharp
public Friction.EffectType FrictionEffect { get; set; }

```

#### Property Value

Friction.EffectType

### MaxStictionDeformation

The value for the max stiction deformation. The default value is 0.01.

```csharp
public ExpressionValueVariable MaxStictionDeformation { get; set; }

```

#### Property Value

ExpressionValueVariable

### ReactionForce

The value for the reaction force. The default value is 'true'.

```csharp
public bool ReactionForce { get; set; }

```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### StaticFrictionCoefficient

The value for the static friction coefficient. The default value is 0.5.

```csharp
public ExpressionValueVariable StaticFrictionCoefficient { get; set; }

```

#### Property Value

ExpressionValueVariable

### StictionVelocity

The value for the stiction velocity. The default value is 0.1.

```csharp
public ExpressionValueVariable StictionVelocity { get; set; }

```

#### Property Value

ExpressionValueVariable