Skip to content

CPA example please #239

Answered by pw0908
ianhbell asked this question in Q&A
Dec 12, 2023 · 15 comments · 6 replies
Discussion options

You must be logged in to vote

Hi Ian,
I briefly gave it a shot in the following example:

julia> model = CPA(["[EMIM][BF4]"]; userlocations=(;
            a = [10.6863/1e1],
            b = [182.0037/1e3],
            c1 = [0.8413],
            Mw = [1.],
            Tc = [643.2],
            Pc = [1e6],
            n_H = [1],
            n_e = [1],
            epsilon_assoc = Dict((("[EMIM][BF4]","H"),("[EMIM][BF4]","e"))=>2679.3736/1e2*8.314),
            bondvol = Dict((("[EMIM][BF4]","H"),("[EMIM][BF4]","e"))=>0.0912*1e3)),
       alpha_userlocations=(;
            c1 = [0.8413],
            Tc = [643.2]))

julia> 1/volume(model,1e5,333.)
100.84175953851668

Our implementation doesn't seem to agree with the author's…

Replies: 15 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pw0908
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ianhbell
Comment options

@ianhbell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ianhbell
Comment options

Comment options

You must be logged in to vote
1 reply
@ianhbell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@longemen3000
Comment options

@ianhbell
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants