Non-ideal electrical switch
This is a non-ideal two-pole switch. If the explicit input become positive, two pins are connected via a resistor of resistance RON). Otherwise, two pins are connected via ROFF resistance. Note that using this block may result in a stiff model, so try to choose proper error tolerances.
Inputs :
- Modelica variable name : ‘p’ Implicit variable.
- Modelica variable name : ‘inp’ Explicit variable.
Outputs :
- Modelica variable name : ‘n’ Implicit variable.
Parameters :
- Modelica parameter name : ‘Ron’ Default value : 0.01 Is a state variable : no.
- Modelica parameter name : ‘Roff’ Default value : 100000 Is a state variable : no.
File name of the model : Switch