A capacitor is an electrical component that can store energy in
electrical circuits. The relationship between the voltage
across a
capacitor with capacitance
and the current
passing through it
is given by the:
Capacitors can also be used to differentiate between high-frequency and low-frequency signals and this makes them useful in electronic filters. A capacitor has a hight impedence when a signal is low frequency signals.
Set Capacitor block parameter | |
C (F) | 0.01 |
Initial Voltage | 0 |
class Capacitor Pin p, n; Real v; parameter Real C "Capacitance"; equation C*der(v) = p.i; v = p.v - n.v; p.i = -n.i; end Capacitor;