Skip to content
Analog.Capacitor.md

Analog.Capacitor ​

This component extends from OnePort

Usage ​

TranslatedComponents.Analog.Capacitor(C=1)

Parameters: ​

NameDescriptionUnitsDefault value
CF1

Connectors ​

  • p - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

  • n - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

Variables ​

NameDescriptionUnits
vV
iA

Behavior ​

v(t)=p.v(t)−n.v(t)0=n.i(t)+p.i(t)i(t)=p.i(t)i(t)=Cdv(t)dt

Source ​

dyad
component Capacitor
  extends OnePort
  parameter C::Dyad.Capacitance = 1
relations
  i = C * der(v)
end
Flattened Source
dyad
component Capacitor
  p = Pin()
  n = Pin()
  variable v::Dyad.Voltage
  variable i::Dyad.Current
  parameter C::Dyad.Capacitance = 1
relations
  v = p.v - n.v
  0 = p.i + n.i
  i = p.i
  i = C * der(v)
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses