Skip to content

Commit

Permalink
Merge pull request #112 from shahriariravanian/master
Browse files Browse the repository at this point in the history
README updated with using DifferentialEquations.jl instead of OrdinaryDiffEq.jl
  • Loading branch information
shahriariravanian authored Apr 1, 2023
2 parents cd69737 + a4e0582 commit 2707dfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CellMLToolkit"
uuid = "03cb29e0-1ef4-4721-aa24-cf58a006576f"
authors = ["Shahriar Iravanian <[email protected]>"]
version = "2.11.0"
version = "2.11.1"

[deps]
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ The rest is the same as before.

```Julia
sol = solve(prob, dtmax=1.0)
plot(sol, idxs=8) # 8 is the index of membrane₊V
plot(sol, idxs=7) # 7 is the index of membrane₊V
```

For the next example, we chose a complex model to stress the ODE solvers: [the O'Hara-Rudy left ventricular model](https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1002061). This model has 49 state variables, is very stiff, and is prone to oscillation. In the previous versions of this document, we used `CVODE_BDF` from the Sundial suite (`using Sundials`) to solve this problem. Fortunatelly, DifferentialEquations.jl has advanced signigficantly such that an efficient and pure Julia solution to the O'Hara-Rudy model is possible.
Expand All @@ -175,7 +175,7 @@ CellML specification allows for models spanning multiple XML files. In these mod
```julia
ml = CellModel("models/noble_1962/Noble_1962.cellml")
prob = ODEProblem(ml, tspan)
sol = solve(prob, TRBDF2(), dtmax = 0.5)
sol = solve(prob, dtmax=0.5)
```

Note that the syntax is exactly the same as before. However, the list of the imported files are printed during `CellModel` generation:
Expand All @@ -195,7 +195,7 @@ Note that the syntax is exactly the same as before. However, the list of the imp
Same as before, we can plot the output as

```julia
plot(sol, idxs = 2)
plot(sol, idxs=2)
```

![](figures/noble_1962.png)

0 comments on commit 2707dfc

Please sign in to comment.