A non-transitory computer readable medium storing instructions executable by a computer processor, the instructions comprising functionality for:
- obtaining first dynamics behavior data of a well system based on a predetermined monitoring criterion, where the first dynamics behavior data includes a plurality of measurements comprising:
- an incomplete measurement that is missing well mass flow data for a time interval;
- and
- a complete measurement that includes well pressure and well temperature performance data for the time interval;
- obtaining modeled dynamics behavior data for the well system using a physics-based model using a physics-based model that models dynamics behavior including well mass flow, well pressure, and well temperature performance, where the physics-based model includes:
- an initial stage that models dynamics behavior from a model reservoir including a reservoir flow restriction module;
- a second stage that models dynamics behavior from a constant volume midstream chamber, including a midstream flow restriction module, connected to the model reservoir;
- a connection branch stage that models dynamics behavior from the constant volume midstream chamber connected to a model well head;
- a terminal stage that models dynamics behavior from a constant volume chamber including a terminal flow restriction model in the model well head;
- and
- a valve module that corresponds to and emulates a control mechanism of the well system;
- training a physics constrained machine learning model using one or more machine learning algorithms based on the dynamics behavior data and the modeled dynamics behavior data corresponding to the first dynamics behavior data as inputs;
- obtaining second dynamics behavior data of the well system;
- updating the second dynamics behavior data to complete the missing well mass flow data of the incomplete measurement for the time interval based on the physics-based model and the physics constrained machine learning model;
- outputting updated dynamics behavior data for the well system;
- and
- adjusting the control mechanism of the well system to maintain well mass flow performance of the well system based on the updated dynamics behavior data.