Capacitor

Scicos Block
fr - eng

##
Electrical capacitor

### Contents

- Electrical capacitor
  - Palette
  - Description
  - Dialog box
  - Default properties
  - Interfacing function
  - Modelica model

### Palette

- Electrical.cosf - Electrical toolbox

### Description

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 high impedance when a signal is low frequency signals.

### Dialog box

- C (F)
  Capacitance
  Properties : Type 'vec' of size 1.

- Initial Voltage
  Initial Voltage
  Properties : Type 'vec' of size 1.

### Default properties

- Inputs :
  - Modelica variable name : 'p'
    Implicit variable.

- Outputs :
  - Modelica variable name : 'n'
    Implicit variable.

- Parameters :
  - Modelica parameter name : 'C'
    Default value : 0.01
    Is a state variable : no.

  - Modelica parameter name : 'v'
    Default value : 0
    Is a state variable : yes.

- File name of the model : Capacitor

### Interfacing function

- SCI/macros/scicos_blocks/Electrical/Capacitor.sci [view code]

### Modelica model

- SCI/macros/scicos_blocks/Electrical/Capacitor.mo [view code]