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

# to_nodal class

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

## Summary

Transforms a field into a Nodal field using an averaging process. The result is computed on a given node's scoping.

available inputs: `field` (Field, FieldsContainer), `mesh_scoping` (Scoping) (optional), `merge_solid_shell` (bool) (optional), `shell_layer` (Int32) (optional)

available outputs: `field` (Field)

## Example

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

op = to_nodal(field=my_field,mesh_scoping=my_mesh_scoping,merge_solid_shell=my_merge_solid_shell,shell_layer=my_shell_layer)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.averaging` |
| Assembly | `Ans_Dpf_FEMutils_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### field

field or fields container with only one field is expected

**Type:** *LinkableInput*

### mesh\_scoping

**Type:** *LinkableInput*

### merge\_solid\_shell

For shell/solid mixed fields, group in the same field all solids and shells (false by default). If this pin is true, a shell\_layer needs to be specified.

**Type:** *LinkableInput*

### shell\_layer

0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. If merge\_solid\_shell is true, this pin needs to be specified to a value that extracts only one layer (Top, Bottom or Mid).

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
to_nodal(field, mesh_scoping, merge_solid_shell, shell_layer, config)
```

**Parameters:**

* `field` (*object*)
* `mesh_scoping` (*object*)
* `merge_solid_shell` (*object*)
* `shell_layer` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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