otfmi.fmi.get_causality_str

get_causality_str(model, name)

Get the causality of a variable (input, output, or other).

If the variable causality is “input” or “parameter”, its value can be modified using otfmi.fmi.set_dict_value. Setting the value of a variable with other causality is not possible (nonphysical).

Parameters:
modelpyfmi.fmi.FMUModelXXX or str

Pyfmi model object or path to an FMU.

namestr

Variable name

Returns:
causalitystr

Causality identifier