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

Components without density break mixing behavior #1

Open
saNistoRoboto opened this issue Sep 25, 2020 · 0 comments
Open

Components without density break mixing behavior #1

saNistoRoboto opened this issue Sep 25, 2020 · 0 comments

Comments

@saNistoRoboto
Copy link
Collaborator

H2O = Component('H2O',volume=1.0,density=1.0)
Glycerol = Component('Glycerol',mass=1.0,density=1.26) # @todo: had to add density here or glycerol has a volume of none which borks later. Should instantiate with a default value of density.

    target_solution = Mixture([H2O,Glycerol])
    
    print(target_solution)
    print(target_solution.components.items())
    target_solution.volume = 1.0
    target_solution.set_volume_fractions({Glycerol:conc,H2O:1-conc})

If density blank, get error that number of components does not match between specification and real Mixture.

@martintb

martintb pushed a commit that referenced this issue Sep 8, 2024
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

1 participant