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

# merge_weighted_fields_containers class

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

## Summary

Assembles a set of fields containers into a unique one, applying a weight on the sum of the fields.

available inputs: `sum_merge` (bool) (optional), `merged_fields_support` (AbstractFieldSupport) (optional), `merged_fields_containers_support` (AbstractFieldSupport) (optional), `fields_containers1` (FieldsContainer), `fields_containers2` (FieldsContainer), `weights1` (), `weights2` ()

available outputs: `merged_fields_container` (FieldsContainer)

## Example

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

op = merge_weighted_fields_containers(sum_merge=my_sum_merge,merged_fields_support=my_merged_fields_support,merged_fields_containers_support=my_merged_fields_containers_support,fields_containers1=my_fields_containers1,fields_containers2=my_fields_containers2)
```

## Class Information

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

## Inputs

### sum\_merge

Default is false. If true, redundant quantities are summed instead of being ignored.

**Type:** *LinkableInput*

### merged\_fields\_support

Already merged field support.

**Type:** *LinkableInput*

### merged\_fields\_containers\_support

Already merged fields containers support.

**Type:** *LinkableInput*

### fields\_containers1

A vector of fields containers to merge or fields containers from pin 0 to ...

**Type:** *LinkableInput*

### fields\_containers2

A vector of fields containers to merge or fields containers from pin 0 to ...

**Type:** *LinkableInput*

## Outputs

### merged\_fields\_container

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
merge_weighted_fields_containers(sum_merge, merged_fields_support, merged_fields_containers_support, fields_containers1, fields_containers2, config)
```

**Parameters:**

* `sum_merge` (*object*)
* `merged_fields_support` (*object*)
* `merged_fields_containers_support` (*object*)
* `fields_containers1` (*object*)
* `fields_containers2` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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