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

# result:global total energy (LSDyna)

**Version: 0.0.0**

## Description

Read Global Total Energy (LSDyna) by calling the readers defined by the datasources.

## Supported file types

This operator supports the following keys ([file formats](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2.md#overview-of-dpf)) for each listed namespace (plugin/solver):

* hdf5: h5dpf
* lsdyna: binout, d3plot

## Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation.
Some inputs are required, while others are optional and provide additional configuration.
Each parameter is detailed in the sections that follow the table.

| Pin number | Name | Status | Expected type(s) |
| - | - | - | - |
| **3** | [streams\_container](#input_3) | | [`streams_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#streams-container) |
| **4** | [data\_sources](#input_4) | Required | [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources) |
| **50** | [unit\_system](#input_50) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), `class dataProcessing::unit::CUnitSystem` |

### streams\_container (Pin 3)

* **Required:** No
* **Expected type(s):** [`streams_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#streams-container)

result file container allowed to be kept open to cache data

### data\_sources (Pin 4)

* **Required:** Yes
* **Expected type(s):** [`data_sources`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-sources)

result file path container, used if no streams are set

### unit\_system (Pin 50)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types), `class dataProcessing::unit::CUnitSystem`

Unit System ID (int), semicolon-separated list of base unit strings (str) or UnitSystem instance

## Outputs

This table lists the output pins for this operator.
Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing.
Each output is detailed in the sections that follow the table.

| Pin number | Name | Expected type(s) |
| - | - | - |
| **0** | [fields\_container](#output_0) | [`fields_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#fields-container) |

### fields\_container (Pin 0)

* **Expected type(s):** [`fields_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#fields-container)

## Configurations

This operator supports [configuration options](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md#mutex)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)
* **Default value:** false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

## Scripting

This operator can be accessed through scripting interfaces using these identifiers.

**Category**: result

**Plugin**: core

**Scripting name**: global\_total\_energy

**Full name**: result.global\_total\_energy

**Internal name**: GLOB\_ENG\_TE

**License**: None

## Examples

These examples demonstrate how to use this operator in different programming environments.
Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

<details>
  <summary>C++</summary>

  ```cpp theme={null}
  #include "dpf_api.h"

  ansys::dpf::Operator op("GLOB_ENG_TE"); // operator instantiation
  op.connect(3, my_streams_container);
  op.connect(4, my_data_sources);
  op.connect(50, my_unit_system);
  ansys::dpf::FieldsContainer my_fields_container = op.getOutput<ansys::dpf::FieldsContainer>(0);
  ```
</details>

<details>
  <summary>CPython</summary>

  ```python theme={null}
  import ansys.dpf.core as dpf

  op = dpf.operators.result.global_total_energy() # operator instantiation
  op.inputs.streams_container.connect(my_streams_container)
  op.inputs.data_sources.connect(my_data_sources)
  op.inputs.unit_system.connect(my_unit_system)
  my_fields_container = op.outputs.fields_container()
  ```
</details>

<details>
  <summary>IPython</summary>

  ```python theme={null}
  import mech_dpf
  import Ans.DataProcessing as dpf

  op = dpf.operators.result.global_total_energy() # operator instantiation
  op.inputs.streams_container.Connect(my_streams_container)
  op.inputs.data_sources.Connect(my_data_sources)
  op.inputs.unit_system.Connect(my_unit_system)
  my_fields_container = op.outputs.fields_container.GetData()
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
