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

# unit_convert_fc class

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

## Summary

Converts an input fields container of a given unit to another unit.

available inputs: `fields_container` (FieldsContainer), `unit_name` (string)

available outputs: `fields_container` (FieldsContainer)

## Example

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

op = unit_convert_fc(fields_container=my_fields_container,unit_name=my_unit_name)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.math` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### fields\_container

**Type:** *LinkableInput*

### unit\_name

unit as a string, ex 'm' for meter, 'Pa' for pascal,...

**Type:** *LinkableInput*

## Outputs

### fields\_container

FieldsContainer with converted units (inplace operation)

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
unit_convert_fc(fields_container, unit_name, config)
```

**Parameters:**

* `fields_container` (*object*)
* `unit_name` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
unit_convert_fc(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
```
