Skip to main content

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

InputNameExpected type(s)Description
Pin 0
Required
target_time_freq_valuesvector<double>, doubleList of time/freq values to potentially split in chunks.
Pin 1
Required
operator_to_iterateoperatorOperator that must be reconnected with the range values.
Pin 2
Required
pin_indexint32
Pin 7
Required
abstract_meshed_regionabstract_meshed_regionThe number of nodes (for "Nodal" results) or number of elements (for "Elemental" results) is used to compute the chunk.
Pin 200
Required
chunk_configabstract_data_treea 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_op1operator
Pin 1001
Required
output_pin_of_producer_op1int32
Pin 1002
Required
input_pin_of_consumer_op1int32
Pin 1003
Required
consumer_op1operator

Outputs

OutputNameExpected type(s)Description
Pin 0chunksTo connect to "producer_consumer_for_each" Operator on pin 0

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf 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.