Skip to content

Commit

Permalink
Fix example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Nov 28, 2024
1 parent 364b791 commit 244ac2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ import circulation
# Create a model
model = circulation.regazzoni2020.Regazzoni2020()

# Solve the model
results = model.solve(T=1.0, dt=1e-3, dt_eval=0.1)
# Solve the model for 5 seconds with a time step of 1 ms and an evaluation time step of 10 ms
results = model.solve(T=5.0, dt=1e-3, dt_eval=0.01)

# Print some information about the pressure, flows and volumes inside the model
circulation.print_info()
model.print_info()

# Plot the pressure-volume loop
fig, ax = plt.subplots()
ax.plot(history["V_LV"], history["p_LV"])
ax.plot(results["V_LV"], results["p_LV"])
ax.set_xlabel("V [mL]")
ax.set_ylabel("p [mmHg]")
plt.show()
Expand Down

0 comments on commit 244ac2c

Please sign in to comment.