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

:bug: SingularMatrixException during flash calculations

Sviatose opened this issue · comments

Describe the bug
The flash calculations in the test at /workspaces/neqsim/src/test/java/neqsim/thermodynamicOperations/flashOps/GudrunDegasser.java encounter an error with specific input flash parameters (5.9061164855957 bara and 79.8487854003906 C). The issue occurs during the flash calculations. The flash calc is between lines 100-160 of the code.

To Reproduce
Steps to reproduce the behavior:

  1. Go to /workspaces/neqsim/src/test/java/neqsim/thermodynamicOperations/flashOps/GudrunDegasser.java
  2. Start test

Expected behavior
The gas flow rate should be around 0.02 kg/hr. No exception.

Additional context
If pressure or temperature slightly changed the problem disappears. That is shown in the test