Skip to content

Commit

Permalink
Merge pull request #341 from jaakkor2/patch-1
Browse files Browse the repository at this point in the history
Add capacitor initial voltage to README.md example
  • Loading branch information
ChrisRackauckas authored Nov 11, 2024
2 parents 5ff27c8 + 362b137 commit 807006a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ The following is the [RC Circuit Demonstration](https://docs.sciml.ai/ModelingTo
using ModelingToolkit, OrdinaryDiffEq, Plots
using ModelingToolkitStandardLibrary.Electrical
using ModelingToolkitStandardLibrary.Blocks: Constant
using ModelingToolkit: t_nounits as t

R = 1.0
C = 1.0
V = 1.0
@variables t
systems = @named begin
resistor = Resistor(R = R)
capacitor = Capacitor(C = C)
capacitor = Capacitor(C = C, v = 0.0)
source = Voltage()
constant = Constant(k = V)
ground = Ground()
Expand Down

0 comments on commit 807006a

Please sign in to comment.