phasepy icon indicating copy to clipboard operation
phasepy copied to clipboard

Division Zero Error Zfactor

Open defencedog opened this issue 3 years ago • 1 comments
trafficstars

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

defencedog avatar Nov 08 '22 04:11 defencedog

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

gustavochm avatar Feb 21 '23 15:02 gustavochm