-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi there
Any idea why the following gives a root in the liquid phase? I'd like to use this for determining the phase (and density) for differing P and T, but seems that it's not able?
import numpy as np
from pint import UnitRegistry
import pyforfluids as pff
model = pff.models.GERG2008()
ureg = UnitRegistry()
Q_ = ureg.Quantity
fluid = pff.Fluid(model, {"carbon_dioxide": 1.0}, temperature=Q_(0, ureg.celsius).to(ureg.kelvin).m, pressure=Q_('1 atm').to('Pa').m)The last line gives a UserWarning: Two roots were found! Vapor-phase value will be used.
Ref the diagram below, 0 Celsius and 1 atm looks to me like it's well within the gas phase, so why is a fluid phase root being determined?
>>> fluid.density_iterator(Q_('1 atm').to('Pa').m)
(20.16256859062894, 0.044918356427274264, False)Metadata
Metadata
Assignees
Labels
No labels
