opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

primary variables are not initialized in the function StandardWell::computeCurrentWellRates()

Open GitPaean opened this issue 2 years ago • 2 comments

When working on other issues, it looks like when we call the function StandardWell::computeCurrentWellRates(), the primary variables are not initialized yet and at least the bhp from the primary variables is used in the simulation.

not sure whether it is a bug or intentional. From the code, it looks like a bug. If it is intentional, we need to revise the code so that it is clear.

GitPaean avatar Jun 01 '23 09:06 GitPaean

And the cmix_s shows the fraction value primary variables are also used so the code will think it is a oil production well with only oil in the wellbore since the fractions are specified for the gas and water.

GitPaean avatar Jun 01 '23 09:06 GitPaean

this->connections_ are not initialized either. Not sure whether it is cause for the ongoing issue. Will come back to investigate.

since it is trying to initialize the well state, so hopefully, there is no chicken-egg problem involved here.

GitPaean avatar Jun 01 '23 09:06 GitPaean