MixedControlSetup

Source: models/common/MixedControlSetup.py

Per-component selection between strain- and stress-controlled inputs.

For each Mandel component \(i\): y_i = x_above_i when control_i > threshold, else x_below_i; \(z_i\) is the complementary pick. Mirrors C++ MixedControlSetup in src/neml2/models/common/MixedControlSetup.cxx.

Inputs

controlinput · SR2 · required

The control signal.

x_aboveinput · SR2 · required

The variable whose values are selected when the control signal is greater than the threshold.

x_belowinput · SR2 · required

The variable whose values are selected when the control signal is less than or equal to the threshold.

Outputs

youtput · SR2 · required

The output variable holding the selected values based on the control signal.

zoutput · SR2 · required

The output variable holding the non-selected values based on the control signal.

Other options

thresholdfloat · default 0.5

The threshold to switch between the two controls