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

# workflow_energy_per_harmonic class

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

## Summary

Calculates the cumulated energy per harmonic in a multistage multiharmonic model.

available inputs: `time_scoping` (Scoping) (optional), `mesh_scoping` (Scoping) (optional), `energy_type` (Int32) (optional), `stream` (Stream), `data_sources` (DataSources)

available outputs: `harmonic_energy` (FieldsContainer), `harmonic_energy_percentage` (FieldsContainer)

## Example

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

op = workflow_energy_per_harmonic(time_scoping=my_time_scoping,mesh_scoping=my_mesh_scoping,energy_type=my_energy_type,stream=my_stream,data_sources=my_data_sources)
```

## Class Information

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

## Inputs

### time\_scoping

**Type:** *LinkableInput*

### mesh\_scoping

Master scoping. All harmonics will be intersected with this scoping.

**Type:** *LinkableInput*

### energy\_type

Type of energy to be processed: (0: Strain + Kinetic energy (default), 1: Strain energy, 2: Kinetic energy)

**Type:** *LinkableInput*

### stream

**Type:** *LinkableInput*

### data\_sources

**Type:** *LinkableInput*

## Outputs

### harmonic\_energy

**Type:** *LinkableOutput*

### harmonic\_energy\_percentage

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
workflow_energy_per_harmonic(time_scoping, mesh_scoping, energy_type, stream, data_sources, config)
```

**Parameters:**

* `time_scoping` (*object*)
* `mesh_scoping` (*object*)
* `energy_type` (*object*)
* `stream` (*object*)
* `data_sources` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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