Analog.Short ​
This component extends from OnePort
Usage ​
TranslatedComponents.Analog.Short()
Connectors ​
p- This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)n- This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)
Variables ​
| Name | Description | Units |
|---|---|---|
v | V | |
i | A |
Behavior ​
julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@named sys = TranslatedComponents.Analog.Short() #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source ​
dyad
component Short
extends OnePort
relations
v = 0
endFlattened Source
dyad
component Short
p = Pin()
n = Pin()
variable v::Dyad.Voltage
variable i::Dyad.Current
relations
v = p.v - n.v
0 = p.i + n.i
i = p.i
v = 0
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses