| CPC E21B 21/08 (2013.01) [E21B 21/062 (2013.01); E21B 44/00 (2013.01); E21B 2200/20 (2020.05)] | 19 Claims |

|
1. A method of controlling composition of a drilling fluid, comprising:
receiving, by one or more processors, measurements of properties of a drilling fluid from one or more sensors measuring the properties of the drilling fluid;
determining, using the one or more processors executing instructions embodying a fluid model, a current concentration of each of a plurality of components of the drilling fluid by:
inputting the measured properties into the fluid model to identify a candidate concentration of each of the plurality of components, wherein the fluid model relates the properties of the drilling fluid to concentrations of each of the components,
estimating a concentration of each of the plurality of components using a mass balance equation, and
comparing the estimated concentrations with the candidate concentrations to determine the current concentration of each of the plurality of components;
determining, using the one or more processors executing instructions embodying the fluid model, a desired concentration of each of the plurality of components by inputting desired properties of the drilling fluid into the fluid model;
determining, using the one or more processors, a quantity of one or more additives to be added to the drilling fluid to achieve the desired concentration of each of the plurality of components; and
adding, using a chemical dosing apparatus controlled by the one or more processors, the determined quantity of the one or more additives to the drilling fluid to achieve the desired properties of the drilling fluid.
|