Skip to content

Commit

Permalink
subtract Pout from P
Browse files Browse the repository at this point in the history
  • Loading branch information
alemelis committed Jul 3, 2024
1 parent 4122682 commit aa3310c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "openBF"
uuid = "e815b1a4-10eb-11ea-25f1-272ff651e618"
authors = ["alessandro <alessandro_melis@rocketmail.com>"]
version = "2.7.0"
version = "2.7.1"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Expand Down
2 changes: 1 addition & 1 deletion src/output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function save_waveforms(idx::Int64, t::Float64, v::Vessel)
elseif k == "P"
# TODO
# this ---------------------------v should be a call to compute_pressure instead and handle time
v.waveforms[k][idx, :] = [t, [pressure(v.A[i], v.A0[i], v.beta[i], v.Pext) for i=(1, v.node2, v.node3, v.node4, v.M)]...]
v.waveforms[k][idx, :] = [t, [pressure(v.A[i], v.A0[i], v.beta[i], v.Pext) - v.Pout for i=(1, v.node2, v.node3, v.node4, v.M)]...]
end
end
end
Expand Down

0 comments on commit aa3310c

Please sign in to comment.