Scicos Block
fr - eng


Electrical capacitor

\epsfig{file=Capacitor.eps,width=90.00pt}

Contents

Description

A capacitor is an electrical component that can store energy in electrical circuits. The relationship between the voltage $ V$ across a capacitor with capacitance $ C$ and the current $ I$ passing through it is given by the:

$\displaystyle I = C\frac{dV}{dt}
$

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.

Dialog box

Set Capacitor block parameter  
C (F) 0.01
Initial Voltage 0

Default properties

Interfacing function

Capacitor.sci

Modelica model


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;