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#

control — input · SR2 · required

The control signal.

x_above — input · SR2 · required

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

x_below — input · SR2 · required

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

Outputs#

y — output · SR2 · required

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

z — output · SR2 · required

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

Other options#

threshold — float · default 0.5

The threshold to switch between the two controls