equinor / neqsim

NeqSim is a library for calculation of fluid behavior, phase equilibrium and process simulation

Home Page:https://equinor.github.io/neqsimhome/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

characterization of plus fraction fails when mole fraction of a component is 0

EvenSol opened this issue · comments

Describe the bug
characterization of plus fraction fails when mole fraction of a component is 0

Eg. if molefraction of a component in a fluid is 0 - the command

fluid.getCharacterization().characterisePlusFraction()

throws and exception.

To Reproduce
fluid.getCharacterization().characterisePlusFraction()
throws and exception.

Expected behavior
PlusCharacterization should work even if a component has 0 mole fraction

Screenshots