Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

molar_mass not getting cleared #1815

Closed
ianhbell opened this issue Apr 5, 2019 · 0 comments
Closed

molar_mass not getting cleared #1815

ianhbell opened this issue Apr 5, 2019 · 0 comments
Milestone

Comments

@ianhbell
Copy link
Contributor

ianhbell commented Apr 5, 2019

When setting mole fractions, the molar mass doesn't get reset:

import CoolProp.CoolProp as CP, numpy as np
AS = CP.AbstractState('HEOS','Propane&H2S')
for z0 in np.linspace(0.1, 0.9, 7):
    AS.set_mole_fractions([z0, 1-z0])
    print(z0, AS.molar_mass())

yields

0.1 0.035082354
0.23333333333333334 0.035082354
0.3666666666666667 0.035082354
0.5 0.035082354
0.6333333333333333 0.035082354
0.7666666666666666 0.035082354
0.9 0.035082354
@ibell ibell closed this as completed in 590cc7c Apr 6, 2019
This was referenced Apr 6, 2019
ibell added a commit that referenced this issue Apr 6, 2019
@jowr jowr added this to the v6.3.0 milestone May 17, 2019
zmeri pushed a commit to zmeri/CoolProp that referenced this issue Mar 29, 2020
zmeri pushed a commit to zmeri/CoolProp that referenced this issue Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants