Current sensor
Measures branch current with zero series voltage drop; positive from + to −.
- signal
- electrical
- Gradara equations
- 3 ports
currentSensorLibraryElectricalDescription
Measures the current in a branch and outputs it as a signal. Place it in series; it has no voltage drop.
Example
RC and RL transients A 10 V step charges a capacitor through a resistor, and another builds current in an inductor through a conductor.
Step 10 VR 1 kΩC 100 µFCapacitor voltageGroundStep 10 V (RL)G 0.1 SInductor currentL 1 HGround (RL)
Also in this example:Voltage sensorGroundResistorCapacitorInductorConductorStep voltage
Ports
Outputs 1
-
A
yMeasured current, in amperes. Positive when current flows from p to n through the sensor.
Conserving terminals 2
-
+
pPin where the measured current enters.
-
−
nPin where the measured current leaves.
Equations
Modelica
y = p.i p.v = n.v p.i + n.i = 0
Assumptions and limitations
- Ideal: zero resistance, no bandwidth limit or noise.
Tips
- If the reading has the wrong sign, swap p and n.
Used in
These larger examples use it too. Open them from Examples in the app.
- Buck converter · Ideal switches
- EV drivetrain
- 480 VAC → 24 VDC flyback
See also
Select a block in Gradara and press F1 to open its page offline.