> ## 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.

# add_rigid_body_motion class

**Namespace:** [Ans.DataProcessing.operators.result](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/result)

## Summary

Adds a given rigid translation, center and rotation from a displacement field. The rotation is given in terms of rotations angles. Note that the displacement field has to be in the global coordinate system

available inputs: `displacement_field` (Field), `translation_field` (Field), `rotation_field` (Field), `center_field` (Field), `mesh` (MeshedRegion) (optional)

available outputs: `field` (Field)

## Example

```python theme={null}
op = add_rigid_body_motion()

op = add_rigid_body_motion(displacement_field=my_displacement_field,translation_field=my_translation_field,rotation_field=my_rotation_field,center_field=my_center_field,mesh=my_mesh)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.result` |
| Assembly | `mapdlOperatorsCore_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### displacement\_field

**Type:** *LinkableInput*

### translation\_field

**Type:** *LinkableInput*

### rotation\_field

**Type:** *LinkableInput*

### center\_field

**Type:** *LinkableInput*

### mesh

default is the mesh in the support

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
add_rigid_body_motion()
```

#### Constructor

```python theme={null}
add_rigid_body_motion(displacement_field, translation_field, rotation_field, center_field, mesh, config)
```

**Parameters:**

* `displacement_field` (*object*)
* `translation_field` (*object*)
* `rotation_field` (*object*)
* `center_field` (*object*)
* `mesh` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
add_rigid_body_motion(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
