Skip to content

Commit 06cddfc

Browse files
kspieksmjohnson541
authored andcommitted
use functions to get T and P
1 parent 7d00985 commit 06cddfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Simulation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function getconcentrationsensitivity(bsol::Simulation{Q,W,L,G}, numerator::Strin
201201
s = svals[indnum]
202202
V = getV(bsol,t)
203203
c = bsol.sol(t)[indnum]/V
204-
val = (s-c*sum(svals)*R*bsol.domain.T/bsol.domain.P)/(c*V) #known T and P
204+
val = (s-c*sum(svals)*R*getT(bsol,t)/getP(bsol,t))/(c*V) #known T and P
205205
if t == 0
206206
return 0.0
207207
else
@@ -244,7 +244,7 @@ function getconcentrationsensitivity(bsol::Simulation{Q,W,L,G}, numerator::Strin
244244
C = getC(bsol,t)
245245
c = bsol.sol(t)[indnum]/V
246246
k = bsol.domain.p[inddeno+length(bsol.domain.phase.species)]
247-
val = k*(s-c*sum(svals)*R*bsol.domain.T/bsol.domain.P)/(c*V) #known T and P
247+
val = k*(s-c*sum(svals)*R*T/P)/(c*V) #known T and P
248248
if t == 0
249249
return 0.0
250250
else

0 commit comments

Comments
 (0)