utility:mechanical: make time chunk
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
| Input | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 Required | target_time_freq_values | vector<double>, double | List of time/freq values to potentially split in chunks. |
| Pin 1 Required | operator_to_iterate | operator | Operator that must be reconnected with the range values. |
| Pin 2 Required | pin_index | int32 | |
| Pin 7 Required | abstract_meshed_region | abstract_meshed_region | The number of nodes (for "Nodal" results) or number of elements (for "Elemental" results) is used to compute the chunk. |
| Pin 200 Required | chunk_config | abstract_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. |
| Pin 1000 Required | producer_op1 | operator | |
| Pin 1001 Required | output_pin_of_producer_op1 | int32 | |
| Pin 1002 Required | input_pin_of_consumer_op1 | int32 | |
| Pin 1003 Required | consumer_op1 | operator |
Outputs
| Output | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | chunks | To connect to "producer_consumer_for_each" Operator on pin 0 |
Configurations
| Name | Expected type(s) | Default value | Description |
|---|---|---|---|
| mutex | bool | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |
Scripting
Category: utility
Plugin: core
Scripting name: None
Full name: None
Internal name: mechanical::make_time_chunk_for_each
License: None
Changelog
- Version 0.0.0: Initial release.