Constant current
electrical.constant_current
Ideal source that drives the current I. Positive current flows through the source from p to n.
Ports
| Name | Domain |
|---|---|
p | electrical |
n | electrical |
Parameters
| Name | Unit | Default | Description |
|---|---|---|---|
I | A | 1 | Current from p to n |
Variables
| Name | Unit |
|---|---|
v | V |
i | A |
Equations
v = p.v - n.v 0 = p.i + n.i i = p.i i = I