gustavochm / phasepy

Other
85 stars 29 forks source link

Division Zero Error Zfactor #15

Open defencedog opened 1 year ago

defencedog commented 1 year ago

Running on ARM64 Android Termux perfectly

In [5] at file 2. Property calculation from Cubic EoS.ipynb

/data/data/com.termux/files/usr/lib/python3.9/site-packages/phasepy/cubic/cubicpure.py:426: RuntimeWarning: divide by zero encountered in divide zfactor = np.sqrt(a/ci*10**5/100**6)*10**-10

gustavochm commented 1 year ago

Dear Defencedog,

Apologies for the very late response. That warning is arising from a division by zero, Did you set an influence parameter ci when creating the component?

Gustavo