Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PREDICTION OF GAS CONCENTRATIONS IN A SUBTERRANEAN FORMATION
Document Type and Number:
WIPO Patent Application WO/2024/064790
Kind Code:
A1
Abstract:
A method for estimating a formation gas concentration while drilling includes making first gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore or second gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore while drilling the wellbore. The first gas concentration measurements or the second gas concentration measurements may be evaluated with a model to estimate the formation gas concentration.

Inventors:
YARMAN CAN EVREN (FR)
Application Number:
PCT/US2023/074737
Publication Date:
March 28, 2024
Filing Date:
September 21, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SCHLUMBERGER TECHNOLOGY CORP (US)
SCHLUMBERGER CA LTD (CA)
SERVICES PETROLIERS SCHLUMBERGER (FR)
SCHLUMBERGER TECHNOLOGY BV (NL)
International Classes:
E21B49/08; E21B21/06; E21B33/06; E21B43/12
Foreign References:
US20160123141A12016-05-05
US5710726A1998-01-20
US20160273353A12016-09-22
US20110288842A12011-11-24
US20070112547A12007-05-17
Attorney, Agent or Firm:
DAE, Michael et al. (US)
Download PDF:
Claims:
PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT CLAIMS What is claimed is: 1. A method for estimating a formation gas concentration while drilling, the method comprising: making first gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) or second gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore (gas-in) while drilling the wellbore; and estimating a formation gas concentration by evaluating the first gas-out measurements or the second gas-in measurements with a model. 2. The method of claim 1, wherein the model includes a surface model coupled with a subsurface model such that output from the surface model is received as input to the subsurface model or output from the subsurface model is received as input to the surface model. 3. The method of claim 2, wherein the surface model comprises a first order delay differential equation. 4. The method of claim 1, wherein the model comprises: a surface model configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in gas concentrations; and PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT a subsurface model configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from a formation during drilling and output gas-out gas concentrations. 5. The method of claim 4, wherein the subsurface model estimates a quantity of the formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration. 6. The method of claim 4, wherein the subsurface model estimates a quantity of the formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling. 7. The method of claim 6, further comprising: measuring the rate of penetration while drilling; and wherein the estimating further comprises evaluating the first gas-out measurements or the second gas-in measurements and the measured rate of penetration with the model to estimate the formation gas concentration.

PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT 8. The method of claim 4, wherein the subsurface model further accounts for mixing of an annular flow of the drilling fluid and a booster line flow of the drilling fluid at a blowout preventer. 9. The method of claim 4, wherein the model comprises (i) a second order differential equation or (ii) a system of at least first and second first order differential equations. 10. The method of claim 1, wherein the estimating comprises: using a surface model to predict gas-in concentrations from the gas-out measurements; using a subsurface model to predict gas-out concentrations from the predicted gas-in concentrations, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; iteratively comparing the predicted gas-out concentrations with the gas-out measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. 11. The method of claim 1, wherein the estimating comprises: PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT using a subsurface model to predict gas-out concentrations from the gas-in measurements, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; using a surface model to predict gas-in concentrations from the predicted gas-out concentrations; iteratively comparing the predicted gas-in concentrations with the gas-in measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. 12. The method of claim 1, wherein the gas-out measurements and the second gas-in measurements comprise measurements of an alkane gas concentration. 13. A surface system configured for use on a drilling rig, the surface system comprising: a gas measurement module configured to make first gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) or second gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore (gas-in) while drilling a wellbore; and a processor configured to: receive the first gas-out measurements or the second gas-in measurements; and PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT estimate a formation gas concentration by evaluating the first gas-out measurements or the second gas-in measurements with a model. 14. The system of claim 13, wherein the model comprises: a surface model configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in concentrations; and a subsurface model configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from the formation during drilling and output gas-out concentrations. 15. The system of claim 14, wherein the subsurface model estimates a quantity of formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling. 16. A method for estimating a formation gas concentration while drilling, the method comprising: making gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) while drilling; using a surface model to predict gas concentrations in the drilling fluid before the drilling fluid enters the wellbore (gas-in) from the gas-out measurements; PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT using a subsurface model to predict gas-out concentrations from the predicted gas-in concentrations, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; iteratively comparing the predicted gas-out concentrations with the gas-out measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. 17. The method of claim 16, wherein the iteratively comparing comprises: time shifting the gas-out measurements or the predicted gas-out concentrations by an estimated drilling fluid circulation time to obtain synchronized gas-out measurements and predicted gas-out concentrations; and iteratively comparing the synchronized gas-out measurements and predicted gas-out concentrations while adjusting the estimated formation gas concentration in the subsurface model. 18. The method of claim 16, further comprising: measuring a rate of penetration while drilling; and PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT wherein the using the subsurface model to predict gas-out concentrations further comprises evaluating the predicted gas-in concentrations and the rate of penetration with the subsurface model to predict the corresponding gas-out concentrations, the predicted gas-out concentrations being related to the estimated formation gas concentration and the rate of penetration in the subsurface model. 19. The method of claim 16, wherein: the surface model is configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in concentrations; and the subsurface model is configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from the formation during drilling and output gas-out concentrations. 20. The method of claim 19, wherein the subsurface model estimates a quantity of formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling.

Description:
PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT PREDICTION OF GAS CONCENTRATIONS IN A SUBTERRANEAN FORMATION CROSS REFERENCE TO RELATED APPLICATIONS [0001] This application claims priority to European Patent Application No. 22306386.8, which was filed on September 21, 2022, and is incorporated herein by reference in its entirety. BACKGROUND [0002] When drilling a well for the production of hydrocarbons, drilling fluid is often circulated through the well for a number of purposes. For example, drilling fluid is commonly intended to provide pressure to the subterranean formation, cool and lubricate the drill bit, flush cuttings away from the drill bit and carry them to the surface, and provide hydraulic power to various downhole tools. Drilling fluids also commonly carry formation fluids and dissolved formation gasses to the surface. Such gasses may be liberated by the drill bit as it cuts the formation and may include various alkane gasses such as methane, ethane, propane, butane, pentane, and the like. [0003] Gas concentration measurements are commonly made at one or more surface locations, for example, as the gas emerges from the wellbore and prior to being pumped back PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT downhole. The measured gas concentrations are sometimes referred to in the industry as gas- out (fluid emerging from the wellbore) and gas-in (just prior to the fluid being re-circulated downhole). Such measurements may provide valuable information to a mud logger, for example, indicating fluid degassing rates and which types of gases are present in the drilled formations. However, there is room for further improvement. For example, there is a need in the industry to further estimate gas concentrations in the formation (e.g., in the rock itself) for both land and offshore drilling rigs. BRIEF DESCRIPTION OF THE DRAWINGS [0004] For a more complete understanding of the disclosed subject matter, and advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which: [0005] FIG. 1 depicts an example drilling rig including a system for predicting formation gas concentrations. [0006] FIG. 2 depicts a block diagram of an example model for predicting formation gas concentrations. [0007] FIG. 3 depicts a flow chart of one example method for predicting formation gas concentrations while drilling. [0008] FIG. 4 depicts a fluid flow diagram of another example model for predicting formation gas concentrations. PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0009] FIGS.5A and 5B (collectively FIG.5) depict flow charts of other example methods for predicting formation gas concentrations while drilling. DETAILED DESCRIPTION [0010] Embodiments of this disclosure include methods and systems for estimating a formation gas concentration while drilling. In one example embodiment, a method for estimating a formation gas concentration includes making first (gas-out) gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore or second (gas-in) gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore while drilling the wellbore and estimating the formation gas concentration by evaluating the first gas-out measurements or the second gas-in measurements with a model. In certain example embodiments, the model may include coupled surface and subsurface models in which the surface model is configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in concentrations and a subsurface model configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from the formation during drilling and to output gas-out concentrations. [0011] FIG. 1 depicts an example drilling rig 20 including a system 60 for estimating formation gas concentrations while drilling. The drilling rig 20 may be positioned over a subterranean formation (not shown). The rig may include, for example, a derrick and a hoisting apparatus (also not shown) for raising and lowering a drill string 30, which, as shown, extends PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT into wellbore 40 and includes, for example, a drill bit 32 and one or more downhole measurement tools 50 (e.g., a logging while drilling tool and/or a measurement while drilling tool). [0012] Drilling rig 20 further includes a surface system 80 for controlling the flow of drilling fluid used on the rig (e.g., used in drilling the wellbore 40). In the example rig depicted, drilling fluid 35 is pumped downhole (as depicted at 92) via a mud pump 82. The drilling fluid 35 may be pumped, for example, through a standpipe 83 and mud hose 84 in route to the drill string 30. The drilling fluid typically emerges from the drill string 30 at or near the drill bit 32 and creates an upward flow 94 of mud through the wellbore annulus (the annular space between the drill string and the wellbore wall). The drilling fluid then flows through a return conduit 88 and solids control equipment to a mud pit 81. It will be appreciated that the terms drilling fluid and mud are used synonymously herein. [0013] While FIG. 1 depicts a land rig 20, it will be appreciated that the disclosed embodiments are equally well suited for land rigs or offshore rigs. As described in more detail below, and as known to those of ordinary skill, offshore rigs commonly include a platform deployed atop a riser that extends from the sea floor to the surface. The drill string extends downward from the platform, through the riser, and into the wellbore through a blowout preventer (BOP) located on the sea floor. As described in more detail below with respect to FIG. 4, example embodiments disclosed herein may make use of a model that is configured for use with either a land rig or an offshore rig. PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0014] System 60 may be located on the rig site or at an offsite location. The system may include substantially any suitable computer hardware and software configured to process gas concentration measurements using a mathematical model. To perform these functions, the hardware may include one or more processors (e.g., microprocessors) which may be connected to one or more data storage devices (e.g., hard drives or solid state memory). The hardware may further include a network interface to enable communication with one or more gas measurement modules 70. Such computer hardware is well known and ubiquitous. It will, of course, be understood that the disclosed embodiments are not limited to the use of or the configuration of any particular computer hardware and/or software. [0015] As further depicted in FIG. 1, surface system 80 may include one or more gas measurement modules 70 (e.g., gas chromatographs and/or mass spectrometers) configured, for example, to measure concentrations of various alkane gases in the drilling fluid (such as methane, ethane, propane, butane, pentane, and the like). The measurement module(s) 70 may be located in a rig laboratory or may include portable instruments located adjacent to the surface equipment (e.g., adjacent to a degasser). The measurement module(s) 70 are generally configured to measure gas concentrations in the fluid as it exits the wellbore 40 (referred to herein as gas-out) and prior to re-entering the wellbore 40 (referred to herein as gas-in). [0016] FIG.2 depicts a block diagram of an example model 100 for predicting formation gas concentrations. The formation gas concentrations may be predicted, for example, from surface measurements of gas concentrations in the circulating drilling fluid. Such surface PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT measurements may include gas-out measurements or gas-in measurements. The depicted model 100 may include a surface model 110 coupled with a subsurface model 120. By coupled it is meant that the output from the surface model 110 is the input to the subsurface model 120 and/or that the output from the subsurface model 120 is the input to the surface model 110. In the example embodiment shown, the input to the surface model 110 (and the output from the subsurface model 120) may be gas-out ^^^^ ^^^^ ^^^^ ^^^^ . The input to the subsurface model 120 (and the output from the subsurface model 110) may gas-in ^^^^ ^^^^ ^^^^ . [0017] In example embodiments disclosed herein, the surface model 110 may be configured, for example, to relate ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ ^^^^ such that ^^^^ ^^^^ ^^^^ may be predicted from ^^^^ ^^^^ ^^^^ ^^^^ measurements or that ^^^^ ^^^^ ^^^^ ^^^^ may be back-predicted from ^^^^ ^^^^ ^^^^ measurements. Likewise, the subsurface model 120 may be configured, for example, to relate ^^^^ ^^^^ ^^^^ ^^^^ to ^^^^ ^^^^ ^^^^ , the formation gas concentrations ^^^^ ^^^^ , and the volume rate of drilling ^^^^ ^^^^ ^^^^ ^^^^ such that ^^^^ ^^^^ may be estimated from either ^^^^ ^^^^ ^^^^ or ^^^^ ^^^^ ^^^^ ^^^^ measurements made at the surface. For example, the surface and subsurface models may be expressed as follows: ^^^^ ^^^^ ^^^^ = ℒ ^^^^ ^^^^ ( ^^^^ ^^^^ ^^^^ ^^^^ , ^^^^ ^^^^ ^^^^ ) (1) ^^^^ ^^^^ ^^^^ ^^^^ = ℒ ^^^^ ^^^^ ^^^^ ( ^^^^ ^^^^ ^^^^ , ^^^^ ^^^^ ^^^^ ^^^^ , ^^^^ ^^^^ ) (2) [0018] where ℒ ^^^^ ^^^^ and ℒ ^^^^ ^^^^ ^^^^ represent surface model and subsurface model operators that transform ^^^^ ^^^^ ^^^^ ^^^^ to ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ to ^^^^ ^^^^ ^^^^ ^^^^ , respectively, ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ ^^^^ represent surface and subsurface model parameters that are independent of the formation and ^^^^ ^^^^ represent formation PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT related subsurface parameters. The surface parameters ^^^^ ^^^^ ^^^^ may include, for example, the rig configuration, rig equipment, environmental factors such as temperature, barometric pressure, and other weather parameters, and drilling fluid properties. The subsurface parameters ^^^^ ^^^^ ^^^^ ^^^^ may include, for example, drilling fluid flow rates, rig configuration such as land versus offshore, drilling fluid properties, wellbore geometry, and drilling parameters such as rate of penetration, weight on bit, and drill string rotation rate. The formation parameters ^^^^ ^^^^ may include, for example, the formation porosity ^^^^, formation gas concentration ^^^^ ^^^^ , and gas types. [0019] FIG.3 depicts a flow chart of one example method 150 for predicting formation gas concentrations while drilling. The method 150 includes measuring gas-out or gas-in concentrations while drilling at 152. The gas-out or gas-in concentration measurements may then be evaluated using a model, for example, including coupled surface and subsurface models, to estimate the gas concentration in the subterranean formation at 154. For example only, gas-out measurements made while drilling may be evaluated using the surface model 110 (FIG. 2) to predict corresponding gas-in values. The predicted gas-in values may be further evaluated using the subsurface model 120 (FIG. 2) to predict gas-out values. The predicted gas-out values may be compared with the gas-out measurements to estimate the formation gas concentration. The disclosed embodiments are now described in more detail by way of the following example implementations. [0020] FIG. 4 depicts a fluid flow diagram of another example model 200 for predicting formation gas concentrations. The depicted flow diagram is configured for an offshore drilling PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT rig, but may also be utilized for land operations (as described in more detail below). The depicted model includes four distinct nodes, labelled herein as: ^^^^ ^^^^, ^^^^ ^^^^ ^^^^, ^^^^ ^^^^ ^^^^, and ^^^^ ^^^^ ^^^^ with five distinct edges (or flow paths) connecting the nodes. The depicted flow paths include the drill string that connects ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^, the wellbore annulus that connects ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^, a booster line that connects ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^, the riser that connects ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^, and a surface transit path that connects ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^. It will be appreciated that model 200 may be thought of as including a surface model 210 (the surface transit path) and a subsurface model 220 (the drill string, wellbore annulus, booster line, and riser paths) that are coupled at the ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ nodes with the subsurface model 220 further including first and second additional mixing nodes (the ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ nodes in FIG.4). [0021] As is known to those of ordinary skill in the drilling industry, an offshore rig commonly includes a platform deployed on a riser that extends to a blowout preventer (BOP) located on the sea floor. The drill string extends from the platform, through the riser and BOP, and into wellbore. During a drilling operation, drilling fluid emerges from the drill bit at the bottom of the wellbore where it mixes with drill cuttings and formation gas that are generated during drilling. Offshore rigs commonly further include a supplementary booster flow line extending from the mud tank system to the BOP. The fluid pumped down through the booster line mixes with the upwardly flowing fluid in the annulus and then flows to the surface through the riser. The booster flow is commonly employed to assist raising drill cuttings to the surface (particularly in deep water operations). PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0022] With continued reference to FIG. 4, the surface model 210 transforms the gas concentrations and flow rates coming out of the well to gas concentrations and flow rates going in to the well. For example, the surface model 210 may be thought of as a transfer function that models (or predicts) gas transport and degassing of the drilling fluid at the surface (e.g., in the mud tank system 81 depicted on FIG. 1). In example embodiments, such a transfer function may be configured to output predicted formation gas concentrations corresponding to gas-out measurements made at the surface. Irrespective of the form of the surface model 210, the aim of modelling mud flow at the surface is to relate the gas concentrations and flow rates coming out of the well ^^^^ ^^^^ ^^^^ to the gas concentration and flow rate going into the well ^^^^ ^^^^. [0023] It will be appreciated that the gas-out concentration ^^^^ ^^^^ ^^^^ ^^^^ generally decreases as it moves through the surface equipment, e.g., owing to its interaction with the equipment and its exposure to the air. Pressure differences between the mud and air at the surface, as well as the mechanical interaction of the mud with the surface equipment and other components of the circulation system facilitate degassing of the mud. By the time the mud is pumped out of the mud tank system down into the wellbore, the gas concentration may be significantly reduced. One aspect of the disclosed embodiments was the realization that the gas-in concentration ^^^^ ^^^^ ^^^^ may be modelled using an ordinary first order differential equation, for example, as follows: ^ ^^^ ^^^^ ^^̃^^ ^^^^ ^^^^( ^^^^) = ^^^^ ^^^^ − Δ ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ^ ^^^ ^^^^ ^^^^� ^^^^ ( ^^^) � ^^^^01( ^^^^) − ^^̃^^ ^^^^ ^^^^( ^^^^) ^^^^1( ^^^^) (3) ^^^^ ^^^^ ^^^^ ^ PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0024] where ^^̃^^ ^^^^ ^^^^ ( ^^^^ ) represents the modeled gas-in, with ^^^^ ^^^^ ^^̃^^ ^^^^ ^^^^ ( ^^^^ ) representing the first derivative of ^^̃^^ ^^^^ ^^^^ ( ^^^^ ) with respect to time, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) represents the measured gas-out, and ^^^^1 ( ^^^^ ) , ^^^^01 ( ^^^^ ) , Δ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) , and ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) represent model parameters. In Eq. (3), ^^^^1 ( ^^^^ ) ≥ 0 to a stationary degassing rate at the mud tank system. The parameter ^^^^01( ^^^^) = ^^^^01( ^^^^) · ^^^^1( ^^^^) ∈ [0, ^^^^1( ^^^^)] and is related to a dilution rate of gas-out and thereby represents a fraction ^^^^01 of gas-out contributing to gas-in. The parameter Δ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ≥ 0 represents the delay associated with surface transit time (STT) of the drilling fluid. Larger ^^^^ 1 ( ^^^^) values indicate higher stationary degassing rates while smaller ^^^^ 01 ( ^^^^) values indicate higher degassing rates of gas- out until it mixes with gas-in. In addition to delay and dilution rates, the parameter ^^^^ ^^^^ ^^^^ ^^^^ ≥ 1 is intended to accommodate dispersion that may result in peak widening of gas-in peaks with respect to corresponding gas-out peaks. [0025] Although it is not explicitly recited in Eq. (3), the model parameters may implicitly depend on numerous drilling conditions including, for example, various mud properties (e.g., rheology, density, etc.), the specific gas being measured (e.g., methane, ethane, propane, butane, pentane, etc.), the environmental conditions (e.g., temperature, atmospheric pressure, etc.), and certain operational factors (e.g., flow rate, rig design, status of surface equipment, etc.). This association may be represented mathematically, for example, as follows: ^ ^^^1 = ^^^1^ ( ^^^^ ) ; ^^^^01 = ^^^0^ 1 ( ^^^^ ) ; Δ ^^^^ ^^^^ ^^^^ ^^^^ = ^^^Δ^ t ( ^^^^ ) ; ^^^^ ^^^^ ^^^^ ^^^^ = ^^^ ^^^^^ ( ^^^^ ) PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0026] where ^^^ 1 ^( ^^^^), ^^^ 0 ^ 1 ( ^^^^), ^^^ Δ ^ t ( ^^^^), ^^^ ^ ^ ^^^ ( ^^^^) indicate that the model parameters ^^^^ 1 , ^^^^ 01 , Δ ^^^^ ^^^^ ^^^^ ^^^^ , and ^^^^ ^^^^ ^^^^ ^^^^ are functions of or related to the drilling conditions ^^^^. For example, considering the four drilling conditions: flow rate ( ^^^^ ( ^^^^ ) ∈ ℝ + ), density ( ^^^^ ( ^^^^ ) ∈ ℝ + ), temperature ( ^^^^ ( ^^^^ ) ∈ ℝ), and a binary degasser status ( ^^^^ ^^^^ ( ^^^^ ) { 0,1 } ), the model parameters may be captured by the following relationship: ^^^^ 1 ( ^^^^) = ^^^ 1 ^� ^^^^( ^^^^), ^^^^( ^^^^), ^^^^( ^^^^), ^^^^ ^^^^( ^^^^)� � [0027] where ^^^ 1 ^(∙), ^^^ 0 ^ 1 ^^^^ 1 ( ^^^^), ^^^^ 01 ( ^^^^), and Δ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) are functions of or related to the flow rate, density, status. In this example ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) is taken to be equal to unity such that there is no dispersion of the gas- out disclosed embodiments are, of course, not limited in this regard. [0028] With continued reference to FIG.4, the subsurface model 220 may be configured to transform the gas concentrations and flow rates going into the well to gas concentrations and flow rates coming out of the well (i.e., to transform gas-in to gas-out as described above). The aim of modelling mud flow in the subsurface is to relate gas concentrations and flow rates going into the well at ^^^^ ^^^^ to the gas concentration of rates coming out of the well at ^^^^ ^^^^ ^^^^. In the analysis that follows, let ^^^^( ^^^^, ^^^^) and ^^^^( ^^^^, ^^^^) denote the gas concentration and flow rate at PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT time ^^^^ and position ^^^^ in the circulation system. The subsurface as a whole may be modelled, for example, as described above with respect to Eq. (2), as follows: ℒ ^^^^ ^^^^ ^^^^ ∶ [ ^^^^( ^^^^, ^^^^ ^^^^ ^^^^ ), ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^, ^^^^ ^^^^ ^^^^ ), ^^^^ ^^^^ ( ^^^^) → ^^^^( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ), ^^^^( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ )] (4) [0029] ^^^^ ^^^^ . Drilling fluid circulation in the subsurface model 220 may be sub-modelled in terms of the four flow paths described above: (i) the drill string, (ii) the wellbore annulus, (iii) the booster line, and (iv) the riser. [0030] The drill string may be modelled, for example, as follows: ℒ ^^^^ ^^^^ ∶ [ ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) , ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) → ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) , ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) )] (5) [0031] where concentration and flow rate at ^^^^ ^^^^ to the gas concentration and flow rate at ^^^^ ^^^^ ^^^^, ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) represents the gas concentration in the fluid pumped downhole (e.g., as measured in the mud pit prior to pumping the fluid downhole or as estimated using the surface model 210 from gas- out measurements), and ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) represents the flow rate of the drilling fluid pumped into the drill string (e.g., by mud pumps). In Eq. (5), ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) and ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) represent the gas concentration and the flow rate of the drilling fluid as it arrives at the drill bit. In example embodiments, ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) may be taken to be equal to ^^^^ ^^^^ ^^^^ ( ^^^^) and ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) may be taken to be equal to a delayed version of ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) such that ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) = ^^^^ 1 ( ^^^^ − ^^^^ ^^^^( ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)), ^^^^ ^^^^ ^^^^ ). Moreover, flows ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) and ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) may be equal or PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT proportional to one another depending on the relative cross-sectional areas of the flow channels in the upper drill string and bottom hole assembly (BHA). [0032] The annulus may be modelled, for example, as follows: ℒ ^^^^ ^^^^ ∶ [ ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)), ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) → ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ), ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ )] (6) [0033] where ℒ ^^^^ ^^^^ represents the modelling operator in the annulus that maps the gas concentration and flow rate at the bit rock interface ^^^^ ^^^^ ^^^^ to the gas concentration and flow rate at ^^^^ ^^^^ ^^^^, ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) represents the gas concentration at the bit rock interface ^^^^ ^^^^ ^^^^, and ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ) represents the flow rate at the bit rock interface ^^^^ ^^^^ ^^^^. In example embodiments, ^^^^2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) may be taken to be equal to a delayed version of ^^^^2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) . [0034] At the bit rock interface, formation gas (e.g., gas that is trapped or dissolved in the formation) mixes with the drilling fluid as the formation rock is crushed during drilling. Assuming that the volume of rock that is crushed (the volume rate of penetration) is proportional to the rate of penetration (ROP) and the cross-sectional area of the wellbore (or bit), the mixing at the rock bit interface may be modelled, for example, as follows: ^ ^^^ ^^^^ ^^^^( ^^^^) · ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) + ^^^^1( ^^^^, ^^^^ ^ ( ^^^^)) · ^^^^ ( ^^^^, ^^^^ ( ^^^^)) 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^)) = ^^^ ^^^^ ^^^^ 1 ^^^^ ^^^^ ^^^^ (7) [0035] ^^^^) ⋅ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) is the volume of extracted gas with ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) representing the volume rate of penetration which in certain embodiments may be given as follows: ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) = ^^^^ ^^^^ ^^^^( ^^^^) · ^^^^ ( ^^^^ℎ ^^^^ ^^^^ ^^^^ )2 , and ^^^^ ( ^^^^ ) ∈ [0,1] is a fraction that may be, for example, related to the porosity of PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT the drilled formation. It will be appreciated that ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) and ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)) may be proportional to one another with a proportionality constant equal to a ratio of the bit opening to the cross section of the well. The volume rate of penetration (and therefore the volume of extracted gas) is commonly much less than the flow rates ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) and ^^^^2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) and can often be ignored in the denominator of Eq. (7). However, because ^^^^ ^^^^ ( ^^^^) may be comparable to or even considerably larger than ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ) the product ^^^^ ^^^^ ( ^^^^) · ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) may be comparable to the product ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) · ^^^^1 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ) . Those of ordinary skill will readily appreciate that ^^^^ ^^^^ ^^^^( ^^^^) is commonly measured at the surface using traveling block position measurements made while drilling (e.g., by differentiating the traveling block position with time). [0036] The booster line may be modelled, for example, as follows: ℒ ^^^^ ^^^^ ∶ [ ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ), ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ) → ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ), ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ )] (8) [0037] where concentration and flow rate at ^^^^ ^^^^ to the gas concentration and flow rate at the blowout preventer ^^^^ ^^^^ ^^^^. Note that in many rig configurations ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ) = ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) since the drilling fluid is pumped into the drill string and into the booster line from the same mud pit. However, in many rig configurations ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ) ≠ ^^^^ 1 ( ^^^^, ^^^^ ^^^^ ^^^^ ) as distinct pumps are often used to feed the drill string and booster line. Moreover, in example embodiments, ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) may be taken to be equal to a delayed version of ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ). PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0038] The riser may be modelled, for example, as follows: ℒ ^^^^ ^^^^ ∶ [ ^^^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) , ^^^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) → ^^^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) , ^^^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ )] (9) [0039] where ℒ ^^^^ ^^^^ represents the modelling operator in the riser that maps the gas concentration and flow rate at BOP to the gas concentration and flow rate at OUT, ^^^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) represents the gas concentration at the blowout preventer ^^^^ ^^^^ ^^^^, and ^^^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) represents the flow rate at the blowout preventer ^^^^ ^^^^ ^^^^. In example embodiments, ^^^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) may be taken to be equal to a delayed version of ^^^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ). [0040] The mixing of annular and booster line flows and concentrations at ^^^^ ^^^^ ^^^^ may be modelled, for example, as follows: ^^^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) = ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) + ^^^^ 3 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) (10) ^ ^^^ ^^^^2( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^) · ^^^^2( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^) + ^^^^3( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^) · ^^^^3( ^^^^, ^^^^ ^^^^ ^^ ) 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^) = ^^ ^^^^ ^ ^^^ ^^^^ (11) [0041] the subsurface model 220 maps the gas concentration and fluid flows from node ^^^^ ^^^^ to node ^^^^ ^^^^ ^^^^ and accounts for mixing of formation gas into the circulating drilling fluid at node ^^^^ ^^^^ ^^^^. Moreover, the quantity of formation gas mixed into the fluid at node ^^^^ ^^^^ ^^^^ may be directly proportional to the gas concentration in the formation ^^^^ ^^^^ ( ^^^^) and to the volume rate of penetration of drilling ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^), which is in turn directly proportional to the rate of penetration of drilling ^^^^ ^^^^ ^^^^( ^^^^). It will therefore be appreciated that the model may be configured to process PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT a set of gas-in or gas-out measurements and ^^^^ ^^^^ ^^^^( ^^^^) to estimate the gas concentration in the formation ^^^^ ^^^^ ( ^^^^). [0042] In certain embodiments, the surface model 210 and the subsurface model 220 may be expressed as a set of differential equations (e.g., as described above for the surface model and in more detail below for one particular subsurface model configuration). In such embodiments, the model may be calibrated (or optimized) using a set of gas-in or gas-out measurements and ^^^^ ^^^^ ^^^^( ^^^^) to estimate the gas concentration in the formation ^^^^ ^^^^ ( ^^^^). For example, in one embodiment, the model may be configured to process differences between first and second gas-out measurements (temporally separated by a circulation time of the drilling fluid) to calibrated the model and estimate the gas concentration in the formation ^^^^ ^^^^ ( ^^^^). In another example embodiment, gas-out measurements may be processed using the surface model 210 to estimate subsequent gas-in values. The estimated gas-in values may then be processed using the subsurface model 220 to predict gas-out from the modelled ^^̃^^ 4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ), for example, as follows: ^ ^^^ ^^^^ ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) = ^^̃^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) ^^^^40 ( ^^^^ ) − ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) ^^^^0 ( ^^^^ ) (12) [0043] where ^^̃^^ ^^^^ ^^^^ ^^^^ ( derivative of ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^) with respect to time, and ^^^^ 40 ( ^^^^) = ^^^^ 40 ( ^^^^) · ^^^^ 0 ( ^^^^). As noted above, in example embodiments, ^^̃^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) may be taken to be equal to a riser delayed ^^^^4 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) (e.g. as given in Eq. (11)) and ^^^^ 2 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) may be taken to be equal to an annulus delayed PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT ^^^^ 2 � ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^)� (e.g., as given in in Eq. (7)) which is in turn related to ^^^^ ^^^^ ( ^^^^) and ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^). The model parameters and ^^^^ ^^^^ ( ^^^^) may then be adjusted such that the predicted gas-out is within a threshold of the measured gas-out to estimate ^^^^ ^^^^ ( ^^^^). [0044] It will be appreciated that subsurface model 220 is a general model that may be used for both offshore drilling rigs and land-based drilling rigs. For example, for a land rig, the flow rate in the booster line and the height of the riser may both be set equal to zero. In other words, for a land rig ^^^^3 ( ^^^^, ^^^^ ^^^^ ^^^^ ) = ^^^^3 ( ^^^^, ^^^^ ^^^^ ^^^^ ^^^^ ) = 0 in Eq. (8) and ^^^^ ^^^^ ^^^^ ^^^^ = ^^^^ ^^^^ ^^^^ ^^^^ in Eqs. (8) and (9). These conditions simplify the subsurface model 220 such that it includes only a single node at ^^^^ ^^^^ ^^^^ and two distinct flow path edges, the first of which connects ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^ and the second of which connects ^^^^ ^^^^ ^^^^ and ^^^^ ^^^^ ^^^^. This simplified model may be used as described above to process a set of gas-in or gas-out measurements and ^^^^ ^^^^ ^^^^ ( ^^^^ ) to estimate ^^^^ ^^^^ ( ^^^^). [0045] One example land rig solution is now described in more detail below. As described above, drilling fluid may be mixed with formation gases and liquids during its interaction with the formation. In the absence of such mixing, a measured gas-out is observed as a delayed version of the measured (or modelled) gas-in. The time delay is the circulation time (CT) that it takes the mud to go down through the drill string and circulate back to the well head. [0046] In the presence of mixing, the drilling fluid acquires additional gas at the bit (e.g., an increased concentration of the measured gasses) as it circulates through the wellbore (thereby resulting in a change or increase in gas-out as compared to gas-in). This change in gas-out may PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT be modeled as another delay first order ordinary differential equation. For example, the change in gas-out for a land rig such as depicted on FIG 2 may be modeled as follows: ^^^^ ^^^^ ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^) = ^^̃^^ ^^^^ ^^^^ ( ^^^^ − Δ ^^^^ ^^^^ ^^^^ ) ^^^^ 10 ( ^^^^) + ^^̃^^ ^^^^ ( ^^^^ − Δ ^^^^ ^^^^ ^^^^ ) ^^^^ ^^^^0 ( ^^^^) − ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ^^^^ 0 ( ^^^^) (13) [0047] derivative of ^^̃^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) with respect to time, ^^^^ ^^^^ ^^^^ ( ^^^^ ) represents gas-in (e.g., as modeled in Eq. (3)), and ^^̃^^ ^^^^ ( ^^^^) represents the modeled concentration of the formation gas. Δ ^^^^ ^^^^ ^^^^ represents the delay associated with the circulation time of the drilling fluid through the well and Δ ^^^^ ^^^^ ^^^^ represents the lag time it takes for the drilling fluid to reach the surface after passing through the drill bit jets at the bottom of the wellbore. The model parameter ^^^^ 0 ( ^^^^) represents the degassing rate at the gas-out measurement. The model parameters and ^^^^ 10 ( ^^^^) = ^^^^ 10 ( ^^^^) · ^^^^ 0 ( ^^^^) ∈ [0, ^^^^ 0 ( ^^^^)] and ^^^^ ^^^^0 ( ^^^^) = ^^^^ ^^^^0 ( ^^^^) · ^^^^ 0 ( ^^^^) ∈ [0, ^^^^ 0 ( ^^^^)] are model parameters representing the fractions ^^^^ 10 and ^^^^ ^^^^0 of gas-in and formation gas contributing to gas-out. The gas fractions ^^^^ 10 and ^^^^ ^^^^0 represent ratio mixing proportions (or fractions) of gas-in and the formation gas such that ^^^^ ^^^^0 ( ^^^^), ^^^^ 10 ( ^^^^) ≥ 0 and ^^^^ ^^^^0 ( ^^^^) + ^^^^ 10 ( ^^^^) = 1 and are related to the rate of penetration, for example, as follows: ^ ^^^1( ^^^^ − Δ ^^^^ ^^^^ ^^ , ^^^^ ( ^^^^ − Δ ^^^^ )) ^^^^ ^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ 1 0 ( ^^^^) = ^ ^^^ ^^^^ ^^^^ ^^^^( ^^^^ − Δ ^^^^ ^^^^ ^^^^) + ^^^^1( ^^^^ − Δ ^^^^ ^^^^ ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^ − Δ ^^^^ ^^^^ ^^^^)) ^ ^^^ ^^^^ ^ ( ^^^^ − Δ ^^^^ ) ^^^^ ( ^^^^) = ^^^ ^^^^ ^^^^ ^^^^ ^^^^0 ^^^^ ^^^^ ^^^^ ^^^^( ^^^^ − Δ ^^^^ ^^^^ ^^^^) + ^^^^1( ^^^^ − Δ ^^^^ ^^^^ ^^^^, ^^^^ ^^^^ ^^^^ ^^^^( ^^^^ − Δ ^^^^ ^^^^ ^^^^)) PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0048] The modeled concentration of the formation gas ^^̃^^ ^^^^ ( ^^^^ ) may be estimated either by treating the two delay first order ODEs (Eqs. (3) and (13)) as a system of equations or by combining them to obtain a delay second order ordinary differential equation. In either case there is no need for one of the gas-in or gas-out measurements. [0049] A delay second order ordinary differential equation may be obtained by rearranging Eq. (13) (the delay first order ODE predicting gas-out) and substituting it into Eq. (3) (the delay first order ODE predicting gas-in). For example, Eq. (13), may be rearranged as follows: ^ ^̃^^ ^^^^ ^^^^0 ^^^^ 1 ^ ^^^ ^^^^( ^^^^ − Δt ^^^^ ^^^^) = ^^^^ ^^^^( ^^^^ − Δ ^^^^ ^^^^ ^^^^) ^^^^ − ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) 0 ^ ^^^ − ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) [0050] second order ODE: ^ ^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ^^^^1( ^^^^) = ^^^^ ^^^^ ^^^^ ^^^^( ^^^^ − [Δ ^^^^ ^^^^ ^^^^ ^^^^ + Δ ^^^^ ^^^^ ^^^^]) ^^^^3( ^^^^) − ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) ^^^^2( ^^^^) − ^^^^2 ^^^^ ^^^^ ^^^^ ^^^^ ^^^^( ^^^^) + ^^^^4( ^^^^) to Eq. (3), ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) and ^^^^ ^ 2 ^ ^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) represent first and second derivatives thereof with respect to time ^^^^, and Δ ^^^^ ^^^^ ^^^^ ^^^^ and Δ ^^^^ ^^^^ ^^^^ are as defined above. With continued reference to Eq. (14), ^^^^ 1 ( ^^^^), ^^^^ 2 ( ^^^^), ^^^^ 3 ( ^^^^), and ^^^^ 4 ( ^^^^) may be further defined below with respect to quantities defined above with respect to Eqs. (3) and (13): ^^^^ 1 ( ^^^^) = ^^^^ 0 ( ^^^^) + ^^^^ 1 (t) ^^^^ 2 ( ^^^^) = ^^^^ 0 ( ^^^^) · ^^^^ 1 (t) PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT ^^^^ 3 ( ^^^^) = ^^^^ 01 ( ^^^^) · ^^^^ 10 ( ^^^^) = ^^^^ 01 ^^^^ 1 ( ^^^^) · ^^^^ 10 ^^^^ 0 (t) ^^^^ 4 ( ^^^^) = [ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) + ^^^^ ^^^^ ( ^^^^) ^^^^ 1 ( ^^^^)](1 − ^^^^ 10 ) ^^^^ 0 ( ^^^^) [0052] where ^^^^0 ( ^^^^ ) , ^^^^1 ( t ) , ^^^^10, and ^^^^01 are as defined above with respect to Eqs. (3) and (13), ^^^^ ^^^^ ( ^^^^ ) represents the modeled concentration of the formation gas, and ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) represents the first derivative of the modeled concentration of the formation gas with respect to time. [0053] In certain example embodiments, it may be assumed that that the formation gas concentration doesn’t change with time (e.g., within a particular formation layer or reservoir), i.e., that ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ ) = 0 and ^^^^ ^^^^ ( ^^^^ ) = ^^^^ ^^^^, then ^^^^4 may be simplified as follows: ^^^^4 ( ^^^^ ) = ^^^^ ^^^^ ( 1 − ^^^^10 ) ^^^^2 ( ^^^^ ) = ^^^^ ^^^^ ^^^^ ^^^^0 ^^^^2 ( ^^^^ ) (15) [0054] where ^^^^ 10 represents the gas-in fraction of the gas concentration and ^^^^ ^^^^0 represents the fraction of the gas concentration introduced by the formation as described above with respect to Eq. (13). [0055] The model coefficients ^^^^ 1 ( ^^^^), ^^^^ 2 ( ^^^^), ^^^^ 3 ( ^^^^), and ^^^^ 4 ( ^^^^) may be calibrated using the gas-out measurements ^^^^ 0 ( ^^^^), for example, via by minimizing a second order cost function/norm such as the following: ^ ^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ − [Δ ^^^^ ^^^^ ^^^^ ^^^^ + Δ ^^^^ ^^^^ ^^^^ ]) ^^^^ 3 ( ^^^^) − ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ^^^^ 2 ( ^^^^) − ^^^^ ^ 2 ^ ^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) + ^^^^ 4 ( ^^^^) − ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ^^^^ 1 ( ^^^^) ( ^^^^ ) values, for example, as follows: PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT ^ ^^^ ^^^^ ( ^^^^) +� ^^^^ ( ^^^^)2 − 4 ^^^ ( ) 0 ( ^^^^) = 1 1 ^2 ^^^^ 2 ^ ^^^) [0057] Upon calibration of the formation gas ^^^^ ^^^^ may be estimated, for example, using Eq. (15) provided that ^^^^ 10 and/or ^^^^ ^^^^0 are known (or may be estimated). These gas fractions may be estimated, for example, as given above with respect to Eq. (13). [0058] In a related example embodiment, model coefficients ^^^^ 1 ( ^^^^), ^^^^ 2 ( ^^^^), and ^^^^ 3 ( ^^^^) may be calibrated during a time period in which no formation gas is generated (or expected), i.e., when ^^^^ ^^^^ = 0, ^^^^ 01 = 1 and ^^^^ 4 ≈ 0). This may be accomplished, for example, when drilling a formation that is not gas bearing or when circulating drilling fluid through the wellbore with the drill bit off bottom. In this other embodiment, ^^^^1( ^^^^), ^^^^2 ( ^^^^ ) , and ^^^^3 ( ^^^^ ) may be calibrated by minimizing the second order cost function/norm such as the following: ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^ − [Δ ^^^^ ^^^^ ^^^^ ^^^^ + Δ ^^^^ ^^^^ ^^^^ ]) ^^^^ 3 ( ^^^^) − ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ^^^^ 2 ( ^^^^) − ^^^^ ^ 2 ^ ^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) − ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ( ^^^^) ^^^^ 1 (17) example methods 250 and 260 for predicting formation gas concentrations while drilling are shown. In FIG. 5A, method 250 includes making a plurality of sequential gas-out measurements at 252 while drilling, for example, at some time interval while drilling. The gas- out measurements are then processed at 254, for example, using surface model 210 to estimate PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT corresponding gas-in values. The gas-in values are then processed at 256, for example, using subsurface model 220 to estimate corresponding gas-out values. The formation gas concentration is estimated at 258 by iteratively comparing (e.g., by minimizing a difference between) the gas-out estimates obtained at 256 and the gas-out measurements made at 252. It will be appreciated that the estimated gas-out values obtained in 256 are time delayed with respect to the gas-out measurements made at 252 (e.g., by a circulation time of the drilling fluid). Therefore, the comparison in 258 may include time shifting the gas-out measurements or the predicted gas-out values by an estimated drilling fluid circulation time to obtain synchronized gas-out measurements and predicted gas-out values and then comparing the synchronized gas-out measurements and predicted gas-out values. A formation gas concentration estimate may be selected and output, for example, when the comparison yields a difference that is less than a predetermined threshold (or that minimizes the difference). [0060] In FIG. 5B, method 260 includes making a plurality of sequential gas-in measurements at 262 while drilling, for example, at some time interval while drilling. The gas- in measurements are then processed at 264, for example, using subsurface model 220 to estimate corresponding gas-out values. The estimated gas-out values are then processed at 266, for example, using surface model 210 to estimate corresponding gas-in values. The formation gas concentration is estimated at 268 by iteratively comparing (e.g., computing a difference between) the gas-in estimates obtained at 266 and the gas-in measurements made at 262. It will be appreciated that the estimated gas-in values obtained in 266 are time delayed with respect PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT to the gas-in measurements made at 262 (e.g., by a circulation time of the drilling fluid). Therefore, the comparison in 268 may include time shifting the gas-in measurements or the predicted gas-in values by an estimated drilling fluid circulation time to obtain synchronized gas-in measurements and predicted gas-in values and then comparing the synchronized gas-in measurements and predicted gas-in values. A formation gas concentration estimate may be selected and output, for example, when the comparison yields a difference that is less than a predetermined threshold (or that minimizes the difference). [0061] It will be appreciated that models 100 and 200 shown on FIGS.2 and 4 and methods 150, 250, and 260 (flow charts of which are shown on FIGS.3 and 5) may be used to estimate formation gas concentrations of substantially any gases found in a subterranean formation, for example, including alkane gases such as methane, ethane, propane, butane, pentane, and the like and alkene gases such as ethylene, propylene, butylene, and the like. Moreover, the disclosed embodiments may be used to evaluate multiple formation gases. [0062] It will be understood that the present disclosure includes numerous embodiments. These embodiments include, but are not limited to, the following embodiments. [0063] In a first embodiment, a method for estimating a formation gas concentration while drilling includes making first gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) or second gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore (gas-in) while drilling the wellbore; and PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT estimating the formation gas concentration by evaluating the first gas-out measurements or the second gas-in measurements with a model. [0064] A second embodiment may include the first embodiment, wherein the model includes a surface model coupled with a subsurface model such that output from the surface model is received as input to the subsurface model or output from the subsurface model is received as input to the surface model. [0065] A third embodiment may include the second embodiment, wherein the surface model comprises a first order delay differential equation. [0066] A fourth embodiment may include any one of the first through third embodiments, wherein the model comprises a surface model configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in gas concentrations; and a subsurface model configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from a formation during drilling and output gas-out gas concentrations. [0067] A fifth embodiment may include the fourth embodiment, wherein the subsurface model estimates a quantity of the formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration. [0068] A sixth embodiment may include any one of the fourth through fifth embodiments, wherein the subsurface model estimates a quantity of the formation gas that mixes with the PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling. [0069] A seventh embodiment may include the sixth embodiment, further comprising measuring the rate of penetration while drilling; and wherein the estimating further comprises evaluating the first gas-out measurements or the second gas-in measurements and the measured rate of penetration with the model to estimate the formation gas concentration. [0070] An eighth embodiment may include any one of the fourth through seventh embodiments, wherein the subsurface model further accounts for mixing of an annular flow of the drilling fluid and a booster line flow of the drilling fluid at a blowout preventer. [0071] A ninth embodiment may include any one of the fourth through eighth embodiments, wherein the model comprises (i) a second order differential equation or (ii) a system of at least first and second first order differential equations. [0072] A tenth embodiment may include any one of the first through ninth embodiments, wherein the estimating comprises using a surface model to predict gas-in concentrations from the gas-out measurements; using a subsurface model to predict gas-out concentrations from the predicted gas-in concentrations, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; iteratively comparing the predicted gas-out concentrations with the gas-out measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. [0073] An eleventh embodiment may include any one of the first through tenth embodiments, wherein the estimating comprises using a subsurface model to predict gas-out concentrations from the gas-in measurements, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; using a surface model to predict gas-in concentrations from the predicted gas-out concentrations; iteratively comparing the predicted gas-in concentrations with the gas-in measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. [0074] A twelfth embodiment may include any one of the first through eleventh embodiments, wherein the gas-out measurements and the second gas-in measurements comprise measurements of an alkane gas concentration. [0075] In a thirteenth embodiment, a surface system configured for use on a drilling rig comprises a gas measurement module configured to make first gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) or second gas concentration measurements in drilling fluid before the drilling fluid is pumped into the wellbore (gas-in) while drilling a wellbore; and a processor configured to receive the first gas- out measurements or the second gas-in measurements; and estimate a formation gas PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT concentration by evaluating the first gas-out measurements or the second gas-in measurements with a model. [0076] A fourteenth embodiment may include the thirteenth embodiment, wherein the model comprises a surface model configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in concentrations; and a subsurface model configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from the formation during drilling and output gas-out concentrations. [0077] A fifteenth embodiment may include the fourteenth embodiment, wherein the subsurface model estimates a quantity of formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling. [0078] In a sixteenth embodiment, a method for estimating a formation gas concentration while drilling comprises making gas concentration measurements in drilling fluid as the drilling fluid exits a wellbore (gas-out) while drilling; using a surface model to predict gas concentrations in the drilling fluid before the drilling fluid enters the wellbore (gas-in) from the gas-out measurements; using a subsurface model to predict gas-out concentrations from the predicted gas-in concentrations, wherein the predicted gas-out concentrations are related to the estimated formation gas concentration in the subsurface model; iteratively comparing the predicted gas-out concentrations with the gas-out measurements while adjusting the estimated formation gas concentration in the subsurface model; and outputting the estimated PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT formation gas concentration that minimizes a difference between the predicted gas-out concentrations and the gas-out measurements. [0079] A seventeenth embodiment may include the sixteenth embodiment, wherein the iteratively comparing comprises time shifting the gas-out measurements or the predicted gas- out concentrations by an estimated drilling fluid circulation time to obtain synchronized gas- out measurements and predicted gas-out concentrations; and iteratively comparing the synchronized gas-out measurements and predicted gas-out concentrations while adjusting the estimated formation gas concentration in the subsurface model. [0080] An eighteenth embodiment may include any one of the sixteenth through seventeenth embodiments, further comprising measuring a rate of penetration while drilling; and wherein the using the subsurface model to predict gas-out concentrations further comprises evaluating the predicted gas-in concentrations and the rate of penetration with the subsurface model to predict the corresponding gas-out concentrations, the predicted gas-out concentrations being related to the estimated formation gas concentration and the rate of penetration in the subsurface model. [0081] A nineteenth embodiment may include any one of the sixteenth through eighteenth embodiments, wherein the surface model is configured to estimate gas transport and degassing of the drilling fluid in surface equipment and to output gas-in concentrations; and the subsurface model is configured to estimate formation gas mixing with the drilling fluid as the formation gas is released from the formation during drilling and output gas-out concentrations. PATENT APPLICATION Attorney Docket No. IS21.4289-WO-PCT [0082] A twentieth embodiment may include the nineteenth embodiment, wherein the subsurface model estimates a quantity of formation gas that mixes with the drilling fluid as being proportional to the formation gas concentration and a rate of penetration while drilling. [0083] Although prediction of gas concentrations in a subterranean formation has been described in detail, it should be understood that various changes, substitutions and alternations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims.