Author Topic: Mathematical model of an ideal capacitor  (Read 219 times)

0 Members and 1 Guest are viewing this topic.

Offline krayvonk

  • Regular Contributor
  • *
  • Posts: 67
  • Country: au
  • Country: au
Mathematical model of an ideal capacitor
« on: July 06, 2019, 02:53:40 pm »
Im looking on the net for one so I can code a circuit simulator,   anyone can help with a link or short tutorial?
 

Offline ahbushnell

  • Frequent Contributor
  • **
  • Posts: 445
  • Country: us
  • Country: us
Re: Mathematical model of an ideal capacitor
« Reply #1 on: July 07, 2019, 01:03:56 am »
The voltage on the capacitor is the integral of the current divided by the capacitance from 0 to the present time plus add the initial voltage on the capacitor.

https://en.wikipedia.org/wiki/Capacitor#Overview

Or find a basic book on circuit theory. 

While your at it you can model an inductor.

The current is the integral of the voltage across the inductor from 0 to the present time.





« Last Edit: July 07, 2019, 01:13:04 am by ahbushnell »
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 9510
  • Country: us
  • Country: us
Re: Mathematical model of an ideal capacitor
« Reply #2 on: July 07, 2019, 01:18:57 am »
Im looking on the net for one so I can code a circuit simulator,   anyone can help with a link or short tutorial?

This is very elementary, so I am unsure how you can code a circuit simulator without any apparent knowledge of electronic circuits or physics?

But leaving that unfortunate complaint aside, an ideal capacitor has the following model. Bear in mind that no real capacitor obeys this model, and using such a model may lead to odd results.
$$i=C {\mathrm{d}v \over \mathrm{d}t}$$
« Last Edit: July 07, 2019, 01:20:48 am by IanB »
I'm not an EE--what am I doing here?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf