Skip to content

Commit

Permalink
Fix component fugacity
Browse files Browse the repository at this point in the history
  • Loading branch information
pw0908 committed May 23, 2024
1 parent 5a76149 commit 34839fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/ClapeyronMultiComponentFlashExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ module ClapeyronMultiComponentFlashExt
end

function M.component_fugacity(model::C.EoSModel, cond, i, Z = C.compressibility_factor(model,cond.p,cond.T,cond.z), forces = nothing, s_v = nothing)
lnϕᵢ = M.component_fugacity_coefficient(model, cond, i, Z, forces, scalars)
return exp(lnϕᵢ)*p*z[i]
lnϕᵢ = M.component_fugacity_coefficient(model, cond, i, Z, forces, s_v)
return exp(lnϕᵢ)*cond.p*cond.z[i]
end

if isdefined(M,:eostype)
Expand Down

0 comments on commit 34839fc

Please sign in to comment.