The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Parallel execution of operators
Legacy User
Member Posts: 0 Newbie
Ok thanks.
Is it possible to apply operator in "parallel" ? I would like to filter input data that have RESULT A and RESULT B.
INPUT -> OPERATOR A -> RESULT A
INPUT -> OPERATOR B -> RESULT B
Operator seems to be chained in series:
INPUT -> OPERATOR A -> OPERATOR B -> RESULT C.
Is it possible to apply operator in "parallel" ? I would like to filter input data that have RESULT A and RESULT B.
INPUT -> OPERATOR A -> RESULT A
INPUT -> OPERATOR B -> RESULT B
Operator seems to be chained in series:
INPUT -> OPERATOR A -> OPERATOR B -> RESULT C.
0
Answers
first of all: I hope you don't mind I put your questions in separate threads. That way, all users can easily recognize separate questions ...
Regarding your problem, yes, in general operators in the operator tree are executed as a chain. However you can achieve a setting like the one you mentioned by using loops, e.g. by applying the [tt]ParameterIteration[/tt] operator.
Here is an example process: Hope that helps,
regards,
Tobias
However, I don't understand why you're using the following in OperatorSelector
<parameter key="select_which" value="2"/>
If I use:
<parameter key="select_which" value="1"/>
Then it works too. What's the meaning of this select_which ?
The thing is, that it does not matter what value is set in the OperatorSelector for the parameter [tt]select_which[/tt]. This is, because the process contains the operator [tt]ParameterIteration[/tt]. This operator iterates over parameters which you can specify. To select the first operator in the first iteration and the second operator in the second operator, you have to specify this in the [tt]ParameterIteration[/tt] operator parameters. Hence, the process XML contains the lines which actually means exactly that the operator in the first iteration the value 1 is set for the parameter [tt]select_which[/tt], in the second iteration the value 2 is used for that parameter. The value you manually specify for the parameter [tt]select_which[/tt] in the operator [tt]OperatorSelector[/tt] is simply overwritten in that process.
Hope that clarifies how it works!
Regards,
Tobias