    

 ## On this page

  

 

 # utility:mechanical: make time chunk

 Last update: 31.07.2026 

**Version: 0.0.0**

## Description

Splits a list of time/freq values into chunks depending on evaluated result properties,mesh size and max number of bytes accepted and calls "make\_for\_each\_range" to generate a range that can be consumed by the for\_each operator

## 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 numberNameStatusExpected type(s)0[target\_time\_freq\_values](#input_0)Required[`vector<double>`](../../core-concepts/dpf-types.md#standard-types), [`double`](../../core-concepts/dpf-types.md#standard-types)**1**[operator\_to\_iterate](#input_1)Required[`operator`](../../core-concepts/dpf-types.md#operator)**2**[pin\_index](#input_2)Required[`int32`](../../core-concepts/dpf-types.md#standard-types)**7**[abstract\_meshed\_region](#input_7)Required[`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)**200**[chunk\_config](#input_200)Required[`abstract_data_tree`](../../core-concepts/dpf-types.md#data-tree)**1000**[producer\_op1](#input_1000)Required[`operator`](../../core-concepts/dpf-types.md#operator)**1001**[output\_pin\_of\_producer\_op1](#input_1001)Required[`int32`](../../core-concepts/dpf-types.md#standard-types)**1002**[input\_pin\_of\_consumer\_op1](#input_1002)Required[`int32`](../../core-concepts/dpf-types.md#standard-types)**1003**[consumer\_op1](#input_1003)Required[`operator`](../../core-concepts/dpf-types.md#operator)<a id="input_0"></a>

### target\_time\_freq\_values (Pin 0)

- **Required:** Yes
- **Expected type(s):** [`vector<double>`](../../core-concepts/dpf-types.md#standard-types), [`double`](../../core-concepts/dpf-types.md#standard-types)

List of time/freq values to potentially split in chunks.

<a id="input_1"></a>

### operator\_to\_iterate (Pin 1)

- **Required:** Yes
- **Expected type(s):** [`operator`](../../core-concepts/dpf-types.md#operator)

Operator that must be reconnected with the range values.

<a id="input_2"></a>

### pin\_index (Pin 2)

- **Required:** Yes
- **Expected type(s):** [`int32`](../../core-concepts/dpf-types.md#standard-types)

<a id="input_7"></a>

### abstract\_meshed\_region (Pin 7)

- **Required:** Yes
- **Expected type(s):** [`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)

The number of nodes (for "Nodal" results) or number of elements (for "Elemental" results) is used to compute the chunk.

<a id="input_200"></a>

### chunk\_config (Pin 200)

- **Required:** Yes
- **Expected type(s):** [`abstract_data_tree`](../../core-concepts/dpf-types.md#data-tree)

a data tree with an int attribute "max\_num\_bytes", an int attribute "dimensionality" (average result size by entity), a string attribute "location" ("Nodal" or"Elemental") is expected.

<a id="input_1000"></a>

### producer\_op1 (Pin 1000)

- **Required:** Yes
- **Expected type(s):** [`operator`](../../core-concepts/dpf-types.md#operator)

<a id="input_1001"></a>

### output\_pin\_of\_producer\_op1 (Pin 1001)

- **Required:** Yes
- **Expected type(s):** [`int32`](../../core-concepts/dpf-types.md#standard-types)

<a id="input_1002"></a>

### input\_pin\_of\_consumer\_op1 (Pin 1002)

- **Required:** Yes
- **Expected type(s):** [`int32`](../../core-concepts/dpf-types.md#standard-types)

<a id="input_1003"></a>

### consumer\_op1 (Pin 1003)

- **Required:** Yes
- **Expected type(s):** [`operator`](../../core-concepts/dpf-types.md#operator)

## 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 numberNameExpected type(s)0[chunks](#output_0)<a id="output_0"></a>

### chunks (Pin 0)

- **Expected type(s):**

To connect to "producer\_consumer\_for\_each" Operator on pin 0

## Configurations

This operator supports [configuration options](../../core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](../../core-concepts/operator-configurations.md#mutex)

- **Expected type(s):** [`bool`](../../core-concepts/dpf-types.md#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**: utility

**Plugin**: core

**Scripting name**: None

**Full name**: None

**Internal name**: mechanical::make\_time\_chunk\_for\_each

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

C++```cpp
#include "dpf_api.h"

ansys::dpf::Operator op("mechanical::make_time_chunk_for_each"); // operator instantiation
op.connect(0, my_target_time_freq_values);
op.connect(1, my_operator_to_iterate);
op.connect(2, my_pin_index);
op.connect(7, my_abstract_meshed_region);
op.connect(200, my_chunk_config);
op.connect(1000, my_producer_op1);
op.connect(1001, my_output_pin_of_producer_op1);
op.connect(1002, my_input_pin_of_consumer_op1);
op.connect(1003, my_consumer_op1);
 my_chunks = op.getOutput<>(0);

```

CPython```python
import ansys.dpf.core as dpf

op = dpf.operators.utility.None() # operator instantiation
op.inputs.target_time_freq_values.connect(my_target_time_freq_values)
op.inputs.operator_to_iterate.connect(my_operator_to_iterate)
op.inputs.pin_index.connect(my_pin_index)
op.inputs.abstract_meshed_region.connect(my_abstract_meshed_region)
op.inputs.chunk_config.connect(my_chunk_config)
op.inputs.producer_op11.connect(my_producer_op11)
op.inputs.producer_op12.connect(my_producer_op12)
op.inputs.output_pin_of_producer_op11.connect(my_output_pin_of_producer_op11)
op.inputs.output_pin_of_producer_op12.connect(my_output_pin_of_producer_op12)
op.inputs.input_pin_of_consumer_op11.connect(my_input_pin_of_consumer_op11)
op.inputs.input_pin_of_consumer_op12.connect(my_input_pin_of_consumer_op12)
op.inputs.consumer_op11.connect(my_consumer_op11)
op.inputs.consumer_op12.connect(my_consumer_op12)
my_chunks = op.outputs.chunks()

```

IPython```python
import mech_dpf
import Ans.DataProcessing as dpf

op = dpf.operators.utility.None() # operator instantiation
op.inputs.target_time_freq_values.Connect(my_target_time_freq_values)
op.inputs.operator_to_iterate.Connect(my_operator_to_iterate)
op.inputs.pin_index.Connect(my_pin_index)
op.inputs.abstract_meshed_region.Connect(my_abstract_meshed_region)
op.inputs.chunk_config.Connect(my_chunk_config)
op.inputs.producer_op1.Connect(my_producer_op1)
op.inputs.output_pin_of_producer_op1.Connect(my_output_pin_of_producer_op1)
op.inputs.input_pin_of_consumer_op1.Connect(my_input_pin_of_consumer_op1)
op.inputs.consumer_op1.Connect(my_consumer_op1)
my_chunks = op.outputs.chunks.GetData()

```

  
## Changelog

- Version 0.0.0: Initial release.