Wellbore temperature prediction method and system based on digital twinning
By constructing a wellbore thermal disturbance operation chain and thermal retention memory using a digital twin wellbore model, a continuous heat flux field in the wellbore is generated, which solves the problem of continuous reception of thermal disturbance and heat retention in wellbore temperature prediction and improves the continuity and adaptability of temperature prediction.
Patent Information
- Application Number
- CN202611366308.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-20
AI Technical Summary
Existing wellbore temperature prediction technologies are unable to continuously handle the thermal disturbances and heat retention processes of the preceding operation stages, resulting in a lack of continuity and well depth adaptability in temperature prediction results at different operation times.
A digital twin wellbore model is used to construct a wellbore thermal disturbance operation chain, thermal hysteresis memory, and wellbore heat flux segment. A continuous heat flux field in the wellbore is generated through thermal memory constraint configuration to deduce temperature changes.
It achieves time-depth continuity and well depth adaptability in wellbore temperature prediction, reduces temperature prediction breakage issues, and improves the accuracy of continuous operation phases of temperature prediction.
Smart Images

Figure CN123139577A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wellbore temperature field prediction, and in particular to a wellbore temperature prediction method and system based on digital twins. Background Technology
[0002] Wellbore temperature prediction is a crucial technical aspect of drilling, completion, well testing, well workover, and continuous downhole operations. During continuous operations, the target wellbore is affected by various factors, including circulating medium flow, displacement changes, pump start-up and shutdown, operational mode switching, formation heat replenishment, and wellbore heat exchange. Temperature variations at different well depths are not the result of a single moment, direction, or heat source, but rather a dynamic manifestation of the combined effects of downhole operational parameters, circulating medium temperature data, wellbore temperature monitoring data, formation thermal properties data, and wellbore structural data. Existing wellbore temperature prediction methods typically use wellbore structure, formation stratification, geothermal gradient, circulating medium inlet temperature, circulating medium outlet temperature, and downhole operational parameters as inputs to establish a wellbore temperature calculation model. Based on the heat exchange conditions at the current operational moment or well depth, the wellbore temperature is then calculated or predicted.
[0003] Existing technologies, when dealing with wellbore temperature changes during continuous operation phases, typically focus on calculating the temperature response under the current operational state, failing to adequately represent the thermal disturbances, heat retention processes, and subsequent heat release processes left over from previous operational phases as continuously inherited thermal states. When operational states such as circulation start-up, displacement change, circulation medium temperature change, and circulation shutdown occur consecutively, the residual thermal effects generated in the previous operational phase do not immediately disappear after the operation switch, but continue to be transmitted, retained, or released along the depth direction of the target wellbore. If existing technologies only calculate temperature based on real-time circulation status or a single operational segment, they easily overlook the heat retention effects of previous operations on subsequent operational phases, resulting in a lack of a continuous basis for temperature changes at the same well depth at different operational times. Summary of the Invention
[0004] One objective of this invention is to propose a wellbore temperature prediction method and system based on digital twins. This invention fully utilizes digital twin wellbore models, wellbore thermal disturbance operation chains, wellbore thermal retention memory, and continuous wellbore heat flux fields, possessing advantages such as strong thermal state adaptability, good well depth adaptability, and continuous temperature prediction process.
[0005] A wellbore temperature prediction method based on digital twin according to an embodiment of the present invention includes the following steps: Acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data; Based on the basic data of the wellbore thermal state, determine the timing parameters of wellbore thermal disturbance during the continuous operation phase, and construct the wellbore thermal disturbance operation chain; The wellbore thermal disturbance operation chain is extended along the depth direction of the target wellbore, and the arrival sequence of thermal disturbance, heat retention interval and heat release direction in the continuous operation stage are bound to the wellbore depth to form a wellbore thermal retention memory. Using the wellbore thermal retention memory as the target for well depth segmentation, the wellbore heat flux segments are divided along the well depth direction of the target wellbore. The dominant heat exchange factors of each wellbore heat flux segment are identified, and wellbore heat flux segment data is generated. Perform thermal memory constraint configuration on the wellbore heat flux segment data, determine the thermal memory constraint factor for each wellbore heat flux segment, and generate thermal memory constrained heat flux segment data; In the digital twin wellbore model, boundary stitching is performed on the thermal memory constrained heat flux segment data to determine the heat release connection relationship, heat flux transfer direction and temperature change delay state between adjacent wellbore heat flux segments, thereby generating a continuous heat flux field in the wellbore. Based on the continuous heat flux field of the wellbore, the temperature changes of the target wellbore at different depths and at different operating times are extrapolated in the digital twin wellbore model, generating wellbore temperature prediction results.
[0006] Optionally, acquire the wellbore thermal state twin source data of the target wellbore. The wellbore thermal state twin source data includes wellbore structure data, formation layer data, formation thermal property data, downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data. Construct a digital twin wellbore model based on the wellbore structure data, and map the wellbore thermal state twin source data to the digital twin wellbore model to generate basic wellbore thermal state data.
[0007] Optionally, the construction of the wellbore thermal disturbance operation chain specifically includes: The downhole operation parameters, circulating medium temperature data and wellbore temperature monitoring data in the wellbore thermal state basic data are aligned according to the operation time to form the thermal state time sequence of continuous operation phase. The thermal state timing of the continuous operation phase is calibrated to determine the cycle start time, cycle stop time, discharge change time, circulating medium temperature change time and wellbore temperature response time, thus forming the operation thermal disturbance nodes. Using adjacent thermal disturbance nodes as boundaries, the thermal state time sequence of the continuous operation phase is defined as the thermal disturbance segment. The locations of thermal disturbance nodes and segments during the operation are determined, and the timing parameters of thermal disturbance during well operation are generated. Based on the time-depth connection relationship between the thermal disturbance nodes, thermal disturbance segments, and well depth locations in the well operation thermal disturbance time sequence parameters, a wellbore thermal disturbance operation chain is constructed.
[0008] Optionally, the formation of the wellbore thermal retention memory specifically includes: Based on the wellbore thermal disturbance operation chain, the arrival order of the operation thermal disturbance nodes at different well depths is tracked along the well depth direction of the target wellbore to determine the arrival order of the thermal disturbance. The start time, end time, and duration of the thermal disturbance section at different depths along the target wellbore are tracked to determine the heat retention range. The thermal state transfer path of the thermal disturbance section along the depth direction of the target wellbore is traced in the direction of the tubing descends and the annulus returns to determine the direction of heat release. The arrival order of thermal disturbances, heat retention intervals and heat release directions corresponding to the same well depth are bound to the well depth to form thermal retention memory units at the corresponding well depth locations. These thermal retention memory units are then arranged according to the well depth direction of the target wellbore to form a wellbore thermal retention memory body.
[0009] Optionally, the generation of the wellbore heat flux segment data specifically includes: Using the wellbore thermal retention memory as the target for well depth segmentation, the thermal memory segmentation traction point is determined along the well depth direction of the target wellbore. Arrange the thermal memory segment traction points with the wellbore structure boundary, formation stratification, formation thermal property change, and wellbore heat transfer state change locations in the wellbore thermal state basic data at the same well depth to form wellbore heat flux segment boundaries. The well depth interval between adjacent wellbore heat flux segment boundaries is taken as wellbore heat flux segment, and the arrival order of heat disturbance, heat retention interval and heat release direction of the corresponding well depth interval in the wellbore heat retention memory are configured to the wellbore heat flux segment. The dominant factors of each wellbore heat flux segment are ranked to determine the dominant factors of heat exchange in each segment, and wellbore heat flux segment data is generated.
[0010] Optionally, the generation of the thermal memory-constrained heat flux fragment data specifically includes: Well depth adjacency locking is performed on each wellbore heat flux segment in the wellbore heat flux segment data to form a wellbore heat flux segment sequence; Based on the wellbore heat flux segment sequence, the preceding heat retention term is determined; Based on the wellbore heat flux segment sequence, determine the heat release term for this segment; Based on the wellbore heat flux segment sequence, determine the subsequent thermal delay term; The preceding heat retention term, the current heat release term, and the subsequent heat delay term are configured as thermal memory constraint factors and embedded with the wellbore heat flux segment to generate thermal memory constrained heat flux segment data.
[0011] Optionally, the generation of the continuous heat flux field in the wellbore specifically includes: The thermal memory constrained heat flux segment data is input into the digital twin wellbore model, and the ends of the heat flux segments of adjacent wellbores are aligned to determine the segment boundary stitching position; At the segment boundary stitching position, the thermal memory constraint factor of the adjacent wellbore heat flux segment is called to determine the heat release connection relationship between the adjacent wellbore heat flux segments; By combining the heat release connection relationship, heat release direction and dominant heat exchange factors between adjacent wellbore heat flux segments, the direction of heat flux transfer between adjacent wellbore heat flux segments can be determined. By combining the heat release succession relationship between adjacent wellbore heat flux segments, subsequent heat delay term and preceding heat retention term, the temperature change delay state between adjacent wellbore heat flux segments is determined; According to the heat release bearing relationship, heat flux transfer direction and temperature change delay state, heat flux boundary stitching is performed on the adjacent wellbore heat flux segments on both sides of the segment boundary stitching position to form boundary stitched heat flux segments. The boundary stitched heat flux segment is connected to the digital twin wellbore model along the depth direction of the target wellbore to generate a continuous heat flux field in the wellbore.
[0012] Optionally, the generation of the wellbore temperature prediction results specifically includes: The continuous heat flux field of the wellbore is loaded into the digital twin wellbore model. The time-depth temperature extrapolation grid is formed according to the well depth of the target wellbore and the operation time of the continuous operation stage. The grid cells are coupled to form the grid cell heat exchange state. Based on the chronological order of operations during the continuous operation phase, and according to the heat exchange state of the lattice cells, the temperature changes of the lattice cells at different depths at the same well depth are deduced, thus forming a well depth temperature evolution sequence. Time-depth continuation is performed on the well depth temperature evolution sequence corresponding to different well depth locations to generate a time-depth temperature change surface, which is then mapped to a digital twin wellbore model to generate wellbore temperature prediction results.
[0013] A wellbore temperature prediction system based on digital twin according to an embodiment of the present invention includes: The data mapping module is used to acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data. The thermal disturbance operation chain construction module is used to determine the timing parameters of thermal disturbance operations in the wellbore based on the basic data of the thermal state of the wellbore, and to construct the thermal disturbance operation chain in the wellbore. The thermal retention memory forming module is used to deploy the wellbore thermal disturbance operation chain along the well depth direction of the target wellbore to form a wellbore thermal retention memory; The heat flux segment generation module is used to generate wellbore heat flux segment data by using the wellbore thermal retention memory as the well depth segmentation traction object; The thermal memory constraint configuration module is used to perform thermal memory constraint configuration on wellbore heat flux segment data and generate thermal memory constrained heat flux segment data. The heat flux field stitching module is used to stitch the boundaries of thermal memory constrained heat flux fragment data in the digital twin wellbore model to generate a continuous heat flux field in the wellbore. The temperature prediction module is used to extrapolate the temperature changes of the target wellbore at different well depths and at different operating times in a digital twin wellbore model based on the continuous heat flux field of the wellbore, and generate wellbore temperature prediction results.
[0014] The beneficial effects of this invention are: This invention maps twin source data of wellbore thermal state to a digital twin wellbore model to form basic wellbore thermal state data. It further constructs wellbore thermal disturbance operation chains, wellbore thermal retention memory, and wellbore heat flux segment data, enabling the arrival sequence of thermal disturbances, heat retention intervals, and heat release trends during continuous operation phases to be continuously received along the depth direction of the target wellbore. Therefore, the thermal state of the target wellbore during circulation start-up, displacement changes, circulating medium temperature changes, pump shutdown, and operation switching is no longer processed as temperature data at isolated operation moments. Instead, it is transformed into a wellbore thermal state expression that reflects preceding thermal effects, current heat release, and subsequent thermal delays. This makes wellbore temperature prediction more consistent with the actual process of heat transfer and retention along the depth direction during continuous operation phases.
[0015] This invention generates thermally memory-constrained heat flux segment data by performing thermal memory constraint configuration on wellbore heat flux segment data, and then performs boundary stitching in a digital twin wellbore model to form a continuous wellbore heat flux field. This ensures that the heat release continuity, heat flux transfer direction, and temperature change delay state between adjacent wellbore heat flux segments remain continuous within the same prediction chain. Based on this continuous wellbore heat flux field, temperature changes at different well depths and operating times are extrapolated, which reduces the temperature prediction breakage problem caused by neglecting preceding heat retention, well section heat exchange differences, and segment boundary thermal delays in existing technologies. This results in wellbore temperature prediction results with better temporal and depth continuity, well depth adaptability, and operational status continuity. Attached Figure Description
[0016] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is an overall flowchart of a wellbore temperature prediction method and system based on digital twin proposed in this invention; Figure 2 This is a comparison chart of prediction deviations during the operation phase of a wellbore temperature prediction method and system based on digital twins proposed in this invention. Detailed Implementation
[0017] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0018] refer to Figures 1-2 A wellbore temperature prediction method based on digital twins includes the following steps: Acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data; Based on the basic data of the wellbore thermal state, determine the timing parameters of wellbore thermal disturbance during the continuous operation phase, and construct the wellbore thermal disturbance operation chain; The wellbore thermal disturbance operation chain is extended along the depth direction of the target wellbore, and the arrival sequence of thermal disturbance, heat retention interval and heat release direction in the continuous operation stage are bound to the wellbore depth to form a wellbore thermal retention memory. Using the wellbore thermal retention memory as the target for well depth segmentation, the wellbore heat flux segments are divided along the well depth direction of the target wellbore. The dominant heat exchange factors of each wellbore heat flux segment are identified, and wellbore heat flux segment data is generated. Perform thermal memory constraint configuration on the wellbore heat flux segment data, determine the thermal memory constraint factor for each wellbore heat flux segment, and generate thermal memory constrained heat flux segment data; In the digital twin wellbore model, boundary stitching is performed on the thermal memory constrained heat flux segment data to determine the heat release connection relationship, heat flux transfer direction and temperature change delay state between adjacent wellbore heat flux segments, thereby generating a continuous heat flux field in the wellbore. Based on the continuous heat flux field of the wellbore, the temperature changes of the target wellbore at different depths and at different operating times are extrapolated in the digital twin wellbore model, generating wellbore temperature prediction results.
[0019] In this embodiment, wellbore thermal state twin source data is acquired. This data includes wellbore structural data, formation layering data, formation thermal property data, downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data. A digital twin wellbore model is constructed based on the wellbore structural data. This model includes a wellbore spatial structure layer, a formation thermal boundary layer, an operation state driving layer, a circulating medium heat exchange layer, and a temperature monitoring mapping layer. The wellbore spatial structure layer characterizes the target wellbore's depth, diameter, casing location, open hole location, tubing string location, and annulus location. The thermal boundary layer represents the formation stratification location, formation thermal conductivity, formation specific heat capacity, and geothermal gradient at different well depths. The operation state driving layer represents the drilling state, circulation state, pump stop state, and operation switching state during continuous operation. The circulating medium heat exchange layer represents the flow path, inlet temperature, outlet temperature, and heat exchange state of the circulating medium in the tubing and annulus. The temperature monitoring mapping layer represents the correspondence between wellbore temperature monitoring data at well depth and operation time. The wellbore thermal state twin source data is mapped to the digital twin wellbore model to generate basic wellbore thermal state data.
[0020] In this embodiment, the construction of the wellbore thermal disturbance operation chain specifically includes: The downhole operation parameters, circulating medium temperature data and wellbore temperature monitoring data in the wellbore thermal state basic data are aligned according to the operation time to form the thermal state time sequence of continuous operation phase. The process of forming the thermal state time sequence during the continuous operation phase is as follows: Using the well depth coordinates and operation time of the target wellbore as a unified index, the downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data in the wellbore thermal state basic data are time-series aligned. The target wellbore depth ranges from 0m to 4200m, and well depth alignment positions are set at 50m intervals along the well depth direction. The duration of the continuous operation phase is 6 hours, and operation times are set at 30s intervals. The drilling pressure, rotation speed, pump pressure, displacement, circulation start / stop status, and operation switching status in the downhole operation parameters are arranged to the corresponding operation times. At each step, the inlet temperature, outlet temperature, and well depth temperature of the circulating medium are arranged to the corresponding operation time. The wellbore temperature monitoring data are mapped to the corresponding well depth alignment position according to the temperature monitoring location and operation time. When there is a time difference in the acquisition of downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data, the 30-second operation time is used as the alignment benchmark. The parameter values in adjacent acquisition times are merged into the same operation time, so that the circulation state, discharge state, circulating medium temperature state, and wellbore temperature state at the same operation time form a corresponding relationship, and the thermal state time sequence of the continuous operation stage is obtained. The thermal state timing of the continuous operation phase is calibrated to determine the cycle start time, cycle stop time, discharge change time, circulating medium temperature change time and wellbore temperature response time, thus forming the operation thermal disturbance nodes. The process of forming operational thermal disturbance nodes is as follows: Downhole operational parameters, circulating medium temperature data, and wellbore temperature monitoring data are read sequentially along the thermal state timeline of the continuous operational phase. The operational time corresponding to the pump pressure increasing from 0MPa to 8MPa and the discharge rate increasing from 0L / s to 22L / s is marked as the cycle start time; the operational time corresponding to the pump pressure decreasing from 8MPa to 0MPa and the discharge rate decreasing from 22L / s to 0L / s is marked as the cycle stop time; the operational time corresponding to the discharge rate change reaching 3L / s between adjacent operational times is marked as the discharge rate change time; the operational time corresponding to the circulating medium inlet temperature change reaching 2℃ between adjacent operational times is marked as the circulating medium temperature change time; and the first operational time corresponding to the cumulative change in wellbore temperature at the same well depth reaching 0.5℃ within three consecutive operational times is marked as the wellbore temperature response time. The operational start time, cycle stop time, discharge rate change time, circulating medium temperature change time, and wellbore temperature response time are arranged in chronological order to form operational thermal disturbance nodes. Using adjacent thermal disturbance nodes as boundaries, the thermal state time sequence of the continuous operation phase is defined as the thermal disturbance segment. The process of defining the thermal disturbance segment during operation is as follows: Arrange the thermal disturbance nodes according to the operation time from front to back, and use adjacent thermal disturbance nodes as the segment start and end boundaries, respectively, to define intervals for the thermal state time sequence of the continuous operation phase; within each interval, retain the pump pressure, displacement, rotation speed, drilling pressure, and circulation start / stop status from the downhole operation parameters, retain the inlet temperature, outlet temperature, and well depth temperature from the circulating medium temperature data, and retain the temperature change at the corresponding well depth position from the wellbore temperature monitoring data; when the continuous operation phase lasts for 6 hours and the operation time interval is 30 seconds... When the well depth alignment interval is 50m, all operation times and corresponding well depth positions between adjacent operation thermal disturbance nodes are classified into the same operation thermal disturbance segment, and the start time, end time, duration, circulation status, discharge status, circulation medium temperature change, and wellbore temperature change within the segment are calibrated for the operation thermal disturbance segment. When the time interval between two adjacent operation thermal disturbance nodes is less than 60s, the thermal state changes corresponding to the two adjacent operation thermal disturbance nodes are classified into the same operation thermal disturbance segment, forming an operation thermal disturbance segment that is continuously connected to the operation thermal disturbance node. The locations of thermal disturbance nodes and segments during the operation are determined, and the timing parameters of thermal disturbance during well operation are generated. The specific process for generating wellbore operation thermal disturbance time series parameters is as follows: Based on the target wellbore depth range of 0m to 4200m and a 50m well depth alignment position, the well depth is determined for each operation thermal disturbance node, including the cycle start time, cycle stop time, displacement change time, circulating medium temperature change time, and wellbore temperature response time. The segment start time, segment end time, segment duration, segment circulation state, segment displacement state, segment circulating medium temperature change, and segment wellbore temperature change are then aligned to the corresponding well depth alignment position for each operation thermal disturbance segment. When the same operation thermal disturbance segment covers multiple well depth alignment positions, the operation thermal disturbance segments are sequentially arranged to the corresponding well depth alignment positions according to the flow direction of the circulating medium in the tubing and annulus. When the same well depth alignment position corresponds to multiple operation thermal disturbance segments, the corresponding operation thermal disturbance segments are arranged according to the chronological order of the operation time, establishing a time-depth connection between operation thermal disturbance nodes, operation thermal disturbance segments, and well depth positions, thus generating wellbore operation thermal disturbance time series parameters. Based on the time-depth connection relationship between the thermal disturbance nodes, thermal disturbance segments, and well depth locations in the well operation thermal disturbance time sequence parameters, a wellbore thermal disturbance operation chain is constructed. The specific process of constructing the wellbore thermal disturbance operation chain is as follows: using the 30s operation time and 50m well depth position as the arrangement benchmark, the time sequence between the operation thermal disturbance nodes and operation thermal disturbance segments is established according to the order of operation time. The depth sequence between the same operation thermal disturbance segment at different well depth positions is established according to the well depth direction from 0m to 4200m in the target wellbore, forming a time-depth connection relationship. The time-depth connection relationship is the corresponding relationship in which the operation thermal disturbance segment continues to evolve along the operation time direction after the operation thermal disturbance node is triggered, and is sequentially transmitted along the well depth position direction. When the operation thermal disturbance node is formed at the time of circulation start-up, the time of displacement change, or the time of circulation medium temperature change, the operation thermal disturbance segment corresponding to the operation thermal disturbance node is sequentially connected to the corresponding well depth position according to the tubing down direction or the annulus up direction. The arrival order of thermal disturbance, the duration range of thermal state, and the direction of thermal state transmission between adjacent well depth positions are recorded, forming a wellbore thermal disturbance operation chain continuously connected by operation thermal disturbance nodes, operation thermal disturbance segments, and well depth positions.
[0021] In this embodiment, the formation of the wellbore thermal retention memory specifically includes: Based on the wellbore thermal disturbance operation chain, the arrival order of the operation thermal disturbance nodes at different well depths is tracked along the well depth direction of the target wellbore to determine the arrival order of the thermal disturbance. The process of determining the arrival order of thermal disturbances is as follows: Based on the wellbore thermal disturbance operation chain, along the well depth direction from 0m to 4200m in the target wellbore, with a well depth alignment interval of 50m, the arrival time of the operation thermal disturbance node at each well depth position is tracked; when the circulation start time is at 0min, the flow rate increases from 0L / s to 22L / s and continues to enter the circulation state, the arrival times of the operation thermal disturbance node at 0m, 500m, 1000m, 1500m, 2000m, 2500m, and 3000m are recorded sequentially according to the direction of tubing descent. The order of well depths of 3500m and 4200m was determined; when the circulation stopped at 180 minutes and the discharge rate decreased from 22L / s to 0L / s, the return influence sequence of the thermal disturbance node at the well depths of 4200m to 0m was recorded in the annular return direction; the same well depth direction tracking was performed for the discharge rate change time, the circulating medium temperature change time, and the wellbore temperature response time, and the order in which different thermal disturbance nodes were received at the same well depth was arranged to determine the arrival order of thermal disturbances in the continuous operation phase; The start time, end time, and duration of the thermal disturbance section at different depths along the target wellbore are tracked to determine the heat retention range. The process of determining the heat residence interval is as follows: Read the start time, end time, and duration of the temperature response at each depth along the target wellbore for the thermal disturbance segment. Determine the time range within which the temperature of the same thermal disturbance segment at the same depth continuously changes in the same direction or slowly decreases as the heat residence interval. Within the target wellbore depth range of 0m to 4200m, set well depth positions at 50m intervals, and read the thermal state sequence of the continuous operation phase at 30s intervals. When the thermal disturbance segment starts at the 10:00:00 cycle start time and reaches 300m... When a temperature response occurs at a well depth of 300m at 10:08:00, begins to decline at 10:22:30, and returns to the temperature state before the start of the thermal disturbance phase at 10:31:00, the period from 10:08:00 to 10:31:00 is defined as the heat retention period corresponding to the 300m well depth. When a temperature response occurs at a well depth of 350m at 10:10:00, begins to decline at 10:26:00, and returns to the temperature state before the start of the thermal disturbance phase at 10:36:30, the period from 10:10:00 to 10:36:30 is defined as the heat retention period corresponding to the 350m well depth. The thermal state transfer path of the thermal disturbance section along the depth direction of the target wellbore is traced in the direction of the tubing descends and the annulus returns to determine the direction of heat release. The process of determining the heat release direction is as follows: For each operational thermal disturbance section, the circulating medium inlet temperature, circulating medium outlet temperature, flow direction within the tubing string, annular upward return direction, wellbore heat transfer state, and formation thermal properties are processed to correspond to the well depth. The circulation state with an inlet temperature of 32℃ and a flow rate of 22L / s is taken as the downward heating state of the tubing string. The return process after the circulating medium temperature rises to 51℃ at 4200m at the bottom of the well is taken as the upward heating state of the annulus. This is combined with the formation temperature gradient of 2.8℃ / 100m, the casing section from 0m to 1800m, and the bare... The wellbore heat exchange state corresponding to the wellbore section from 1800m to 4200m is determined, and the continuous heat transfer path in the operational thermal disturbance section is determined: the heat is transferred from the circulating medium inside the tubing to the bottom of the well, returns from the bottom of the well with the annulus, and is released from the annulus to the wellbore and formation. When the pump discharge rate is 0L / s after pump shutdown and the wellbore temperature monitoring data continues to rise at the well depth of 2400m to 3200m, the heat release path from the wellbore and adjacent formation to the wellbore interior is included in the same operational thermal disturbance section, and the heat release direction of the operational thermal disturbance section is determined between the tubing downward direction, the annulus upward direction, and the radial heat exchange direction of the wellbore. The arrival order of thermal disturbances, heat retention interval and heat release direction corresponding to the same well depth are bound to the well depth to form a thermal retention memory unit corresponding to the well depth. The thermal retention memory units are arranged according to the well depth direction of the target wellbore to form a wellbore thermal retention memory. The process of forming a wellbore thermal retention memory is as follows: using the same well depth as the thermal memory loading location, the arrival order of thermal disturbances, the heat residence interval, and the heat release direction corresponding to the well depth location are simultaneously sealed as thermal retention memory units; each thermal retention memory unit retains the sequential identifiers of the thermal disturbances entering the well depth location, the start and end boundaries of the heat residence, and the direction of heat transfer leaving the well depth location, so that the thermal retention memory unit represents the thermal state that the well depth location has already experienced, is releasing, and continues to delay during the continuous operation phase; the thermal retention memory units are arranged along the well depth direction of the target wellbore, and the thermal retention memory units at adjacent well depth locations are sequentially received according to the direction of thermal disturbance transfer, and the arranged thermal retention memory units are encapsulated as a whole into a wellbore thermal retention memory.
[0022] In this embodiment, the generation of wellbore heat flux segment data specifically includes: Using the wellbore thermal retention memory as the target for well depth segmentation, the thermal memory segmentation traction point is determined along the well depth direction of the target wellbore. The process of determining the thermal memory segment traction point is as follows: read the thermal retention memory units in the thermal retention memory of the wellbore one by one along the depth direction of the target wellbore, and continuously compare the arrival order of thermal disturbances, heat retention intervals and heat release directions corresponding to adjacent well depth positions; when there is a switch in the arrival order of thermal disturbances, a change in the start and end boundaries of the heat retention interval, or a change in the heat release direction from one of the transmission modes of tubing down, annular up, and radial heat exchange of the well wall to another, the corresponding well depth position is determined as the thermal memory segment traction point; Arrange the thermal memory segment traction points with the wellbore structure boundary, formation stratification, formation thermal property change, and wellbore heat transfer state change locations in the wellbore thermal state basic data at the same well depth to form wellbore heat flux segment boundaries. The process of forming segmented boundaries for wellbore heat flux is as follows: The thermal memory segmentation traction points, wellbore structural boundary positions, formation stratification positions, formation thermophysical property change positions, and wellbore heat transfer state change positions are all projected onto the same depth scale of the target wellbore. The same depth arrangement means that all the aforementioned location points from different sources are placed within the wellbore depth coordinates from 0m to 4200m, and the depth alignment position of each location point is determined according to a 50m depth alignment interval. When the thermal memory segmentation traction points are located at 850m, 1850m, 2650m, and 3450m, the wellbore structural boundary positions include the casing section termination position at 1800m and the open hole section start position at 1800m, and the formation stratification positions include 900m, 1800m, and 2700m... At 00m and 3500m, the formation thermal property change locations include the 2700m location where the thermal conductivity changes from 1.8W / (m·K) to 2.4W / (m·K), and the wellbore heat transfer status change locations include the 1800m location where the casing section enters the open hole section. The thermal memory segment traction points, wellbore structure boundary locations, formation stratification locations, formation thermal property change locations, and wellbore heat transfer status change locations that fall into the same well depth alignment location are merged into the same segment candidate location. Duplicate segment candidate locations are removed in order from shallow to deep well depth, and the thermal memory traction source, wellbore structure source, formation stratification source, formation thermal property source, and wellbore heat transfer source corresponding to each segment candidate location are retained to form the wellbore heat flux segment boundary. The well depth interval between adjacent wellbore heat flux segment boundaries is taken as wellbore heat flux segment, and the arrival order of heat disturbance, heat retention interval and heat release direction of the corresponding well depth interval in the wellbore heat retention memory are configured to the wellbore heat flux segment. The process of determining the wellbore heat flux segment is as follows: the wellbore heat flux segment boundaries are read in order from shallow to deep well depth; the continuous well depth interval between adjacent wellbore heat flux segment boundaries is determined as a wellbore heat flux segment; and the starting and ending well depths of the continuous well depth interval are used as the segment boundaries of the wellbore heat flux segment; the heat retention memory units falling into the continuous well depth interval in the wellbore heat retention memory are called, and the arrival order of heat disturbance, heat retention interval and heat release direction in the corresponding well depth interval are configured to the wellbore heat flux segment, so that each wellbore heat flux segment simultaneously includes the well depth range, the order of heat disturbance entry, the heat retention range and the heat transfer direction; The dominant factors of each wellbore heat flux segment are ranked to determine the dominant factors of heat exchange in each wellbore heat flux segment, and wellbore heat flux segment data is generated. The process of generating wellbore heat flux segment data is as follows: For each wellbore heat flux segment, the starting depth, ending depth, arrival order of thermal disturbances, heat residence interval, and heat release direction are read. The contribution intensity corresponding to the wellbore heat exchange state, circulating medium heating state, formation reheating state, and pump shutdown heat recovery state is determined respectively. The contribution intensity corresponding to the wellbore heat exchange state is determined by the change in the temperature difference between the wellbore and the wellbore wall within the segment, the wellbore wall contact time, and the wellbore wall heat exchange direction. The contribution intensity corresponding to the circulating medium heating state is determined by the change in the temperature difference between the circulating medium inlet and outlet temperatures within the segment, the flow rate change, and the duration of the circulating medium flowing through the segment. The contribution intensity corresponding to the formation reheating state is determined by the temperature difference between the circulating medium inlet and outlet temperatures within the segment, the flow rate change, and the duration of the circulating medium flowing through the segment. The formation temperature, formation thermal property data, and the magnitude of the wellbore temperature rise back to the formation temperature were determined. The contribution intensity corresponding to the pump shutdown heat recovery state was determined by the pump shutdown duration, the wellbore temperature before pump shutdown, the magnitude of the wellbore temperature rise after pump shutdown, and the duration of the temperature rise. The dominant factors were ranked by arranging the contribution intensity of wellbore heat exchange, the contribution intensity of circulating medium heat, the contribution intensity of formation heat replenishment, and the contribution intensity of pump shutdown heat recovery in descending order of value, and the heat exchange factor corresponding to the first ranked factor was determined as the dominant heat exchange factor of the wellbore heat flux segment. The segment start depth, segment end depth, thermal disturbance arrival order, heat residence interval, heat release direction, and dominant heat exchange factor of each wellbore heat flux segment were encapsulated into wellbore heat flux segment data.
[0023] In this embodiment, the generation of thermal memory-constrained heat flux fragment data specifically includes: Well depth adjacency locking is performed on each wellbore heat flux segment in the wellbore heat flux segment data to form a wellbore heat flux segment sequence; The process of forming a wellbore heat flux segment sequence is as follows: Based on the starting and ending well depths of each wellbore heat flux segment in the wellbore heat flux segment data, the ending well depth of one wellbore heat flux segment is used to determine the end connection between the segment's ending well depth and the starting well depth of another wellbore heat flux segment; well depth adjacency locking involves identifying two wellbore heat flux segments whose ending and starting well depths are continuously connected at the boundary of the same wellbore heat flux segment as the preceding and following wellbore heat flux segments, respectively; when there is a continuity of heat release direction between adjacent wellbore heat flux segments, the connection direction is determined according to the heat release direction; when there is a change in the arrival order of thermal disturbances between adjacent wellbore heat flux segments, the connection direction is determined according to the arrival order of thermal disturbances, thus forming a continuously connected wellbore heat flux segment sequence; Based on the wellbore heat flux segment sequence, the preceding heat retention term is determined; The process of determining the preceding heat retention term is as follows: Based on the starting depth, ending depth, arrival order of thermal disturbance, heat retention range, and heat release direction of adjacent wellbore heat flux segments in the wellbore heat flux segment sequence, the segment ending depth of the preceding wellbore heat flux segment is identified in relation to the starting depth of the following wellbore heat flux segment; if the preceding wellbore heat flux segment is in the depth range of 1800m to 2350m and the following wellbore heat flux segment is in the depth range of 2350m to 2700m, and the preceding... When the heat residence interval of a wellbore heat flux segment is from 70 min to 115 min, the heat release direction points to the segment boundary at 2350 m, and the temperature difference between the wellbore temperature at the segment boundary and the initial temperature of the next wellbore heat flux segment is 2.3 °C, this temperature difference, heat residence interval, and heat release direction are used as the heat retention input of the previous wellbore heat flux segment to the next wellbore heat flux segment; the heat retention input is configured to the next wellbore heat flux segment to form the preceding heat retention term of the next wellbore heat flux segment; Based on the wellbore heat flux segment sequence, determine the heat release term for this segment; The specific process for determining this heat release item is as follows: Based on the starting depth, ending depth, arrival order of thermal disturbance, heat residence interval, heat release direction, and dominant heat exchange factor of each wellbore heat flux segment in the wellbore heat flux segment sequence, when the wellbore heat flux segment is in the wellbore depth range of 2350m to 2700m, the arrival order of thermal disturbance is the 3rd arrival, the heat residence interval is from 115min to 150min, the heat release direction is from 2350m to 2700m, and the dominant heat exchange factor is the circulating medium in a heated state, the heat release content of this wellbore heat flux segment in the ... Based on the wellbore heat flux segment sequence, determine the subsequent thermal delay term; The process of determining the subsequent thermal delay term is as follows: Based on the starting depth, ending depth, arrival order of thermal disturbance, and heat residence interval of the preceding and following wellbore heat flux segments in the wellbore heat flux segment sequence, the ending depth of the preceding wellbore heat flux segment is connected to the starting depth of the following wellbore heat flux segment, and the termination time of the heat residence interval of the preceding wellbore heat flux segment is compared with the arrival time of the thermal disturbance of the following wellbore heat flux segment; the preceding wellbore heat flux segment is 2350m. In the well depth range up to 2700m, the next wellbore heat flux segment is from 2700m to 3150m. The heat residence interval of the previous wellbore heat flux segment is from 115min to 150min. When the heat disturbance arrival order of the next wellbore heat flux segment corresponds to the arrival at 162min, the time interval between 150min and 162min, the segment boundary at 2700m, and the heat residence interval of the next wellbore heat flux segment are configured together as the subsequent heat delay term of the previous wellbore heat flux segment. The preceding heat retention term, the current heat release term, and the subsequent heat delay term are configured as thermal memory constraint factors and embedded with the wellbore heat flux segment to generate thermal memory constraint heat flux segment data. The specific process of generating thermal memory-constrained heat flux segment data is as follows: The preceding heat retention term is limited to the starting well depth of the wellbore heat flux segment; the current heat release term is limited to the area between the starting and ending well depths of the wellbore heat flux segment; and the subsequent heat delay term is limited to the ending well depth of the wellbore heat flux segment. Based on the starting and ending well depths, thermal disturbance arrival order, heat retention interval, heat release direction, and dominant heat exchange factors of the same wellbore heat flux segment, the preceding heat retention term, the current heat release term, and the current heat release term are then... The heat release term and the subsequent heat delay term are embedded in the same segment to form the thermal memory constraint factor of the wellbore heat flux segment. The embedding is to fix the preceding heat retention term, the current heat release term and the subsequent heat delay term to the front boundary, the inside of the segment and the rear boundary of the same wellbore heat flux segment, respectively, so that the thermal memory constraint factor and the wellbore heat flux segment maintain the same segment boundary, the same heat residence interval and the same heat release direction. The thermal memory constraint factor and the corresponding wellbore heat flux segment are encapsulated as a whole to generate thermal memory constrained heat flux segment data.
[0024] In this embodiment, the generation of the continuous heat flux field in the wellbore specifically includes: The thermal memory constrained heat flux segment data is input into the digital twin wellbore model, and the ends of the heat flux segments of adjacent wellbores are aligned to determine the segment boundary stitching position; The process of determining the segment boundary stitching position is as follows: After inputting the thermal memory constrained heat flux segment data into the digital twin wellbore model, the wellbore spatial structure layer in the digital twin wellbore model is called to locate the segment start depth and segment end depth of each wellbore heat flux segment in the wellbore depth coordinates of the target wellbore; the end alignment is to determine whether the segment end depth of the previous wellbore heat flux segment coincides with the segment start depth of the next wellbore heat flux segment in the wellbore spatial structure layer, and confirm that the same wellbore depth position belongs to the continuous wellbore channel by combining the casing position, open hole section position, tubing position and annulus position in the wellbore spatial structure layer; when the segment end depth of the previous wellbore heat flux segment coincides with the segment start depth of the next wellbore heat flux segment at the same wellbore depth position, the same wellbore depth position is determined as the segment boundary stitching position; At the segment boundary stitching position, the thermal memory constraint factor of the adjacent wellbore heat flux segment is called to determine the heat release connection relationship between the adjacent wellbore heat flux segments; The process of determining the heat release continuity relationship is as follows: At the segment boundary suture position, read the thermal memory constraint factor of the previous wellbore heat flux segment and the next wellbore heat flux segment; take the current heat release term of the previous wellbore heat flux segment as the heat release source at the segment boundary suture position, take the preceding heat retention term of the next wellbore heat flux segment as the heat retention interface at the segment boundary suture position, and limit the heat release source to enter the delayed state of the next wellbore heat flux segment with the subsequent heat delay term of the previous wellbore heat flux segment; when the heat release direction corresponding to the current heat release term of the previous wellbore heat flux segment points to the segment boundary suture position, and when the preceding heat retention term of the next wellbore heat flux segment takes over the residual heat influence at the segment boundary suture position, determine the continuity correspondence between the current heat release term of the previous wellbore heat flux segment, the preceding heat retention term of the next wellbore heat flux segment, and the subsequent heat delay term of the previous wellbore heat flux segment as the heat release continuity relationship between adjacent wellbore heat flux segments. By combining the heat release connection relationship, heat release direction and dominant heat exchange factors between adjacent wellbore heat flux segments, the direction of heat flux transfer between adjacent wellbore heat flux segments can be determined. The process of determining the direction of heat flux transfer is as follows: Read the heat release continuity relationship between adjacent wellbore heat flux segments, and call upon the heat release direction and dominant heat exchange factor corresponding to the preceding and following wellbore heat flux segments. When the heat release continuity relationship of the preceding wellbore heat flux segment points to the following wellbore heat flux segment, and the heat release direction of the preceding wellbore heat flux segment is connected to the heat retention interval of the following wellbore heat flux segment, the direction of heat flux transfer is determined to be from the preceding wellbore heat flux segment to the following wellbore heat flux segment. When the dominant heat exchange factor of adjacent wellbore heat flux segments is the circulating medium in a heated state, the direction of heat flux transfer is limited to the downward direction of the tubing or the upward direction of the annulus corresponding to the circulating medium flow path. When the dominant heat exchange factor of adjacent wellbore heat flux segments is the wellbore heat exchange state or the formation reheat state, the direction of heat flux transfer is limited to the radial heat exchange direction of the wellbore, thus forming the direction of heat flux transfer between adjacent wellbore heat flux segments. By combining the heat release succession relationship between adjacent wellbore heat flux segments, subsequent heat delay term and preceding heat retention term, the temperature change delay state between adjacent wellbore heat flux segments is determined; The process of determining the temperature change delay state is as follows: The heat release continuity relationship between adjacent wellbore heat flux segments is read, and the subsequent heat delay term of the preceding wellbore heat flux segment and the preceding heat retention term of the following wellbore heat flux segment are read respectively. The subsequent heat delay term of the preceding wellbore heat flux segment indicates that the heat release term of this segment ends at 150 minutes and continues to affect until 162 minutes. The preceding heat retention term of the following wellbore heat flux segment indicates that the heat release term begins at the boundary suture position of the connecting segment at 162 minutes. The residual heat effect, and when the temperature at the segment boundary suture position drops from 68.4℃ to 66.9℃ but still has a 2.1℃ difference from the initial temperature of the next wellbore heat flux segment (64.8℃), the delay process from 150 min to 162 min, the 2.1℃ boundary temperature difference, and the sequence of succession between the subsequent heat delay term of the previous wellbore heat flux segment and the preceding heat retention term of the next wellbore heat flux segment are determined as the temperature change delay state between adjacent wellbore heat flux segments; According to the heat release bearing relationship, heat flux transfer direction and temperature change delay state, heat flux boundary stitching is performed on the adjacent wellbore heat flux segments on both sides of the segment boundary stitching position to form boundary stitched heat flux segments. The process of forming a boundary-stitched heat flux segment is as follows: Read the heat flux segments of adjacent wellbores on both sides of the segment boundary stitching position, and call up the heat release continuity relationship, heat flux transfer direction, and temperature change delay state between adjacent wellbore heat flux segments; fix the segment termination depth of the previous wellbore heat flux segment and the segment starting depth of the next wellbore heat flux segment at the same segment boundary stitching position; according to the heat release continuity relationship, connect the current heat release item of the previous wellbore heat flux segment with the preceding heat retention item of the next wellbore heat flux segment; determine the heat transfer direction at the segment boundary stitching position according to the heat flux transfer direction; and limit the continuity sequence of the residual heat influence of the next wellbore heat flux segment on the previous wellbore heat flux segment according to the temperature change delay state; treat the connected adjacent wellbore heat flux segments as the same continuous segment, so that the heat release direction, heat memory constraint factor, and heat exchange dominant factor on both sides of the segment boundary stitching position are continuously connected at the same well depth boundary, forming a boundary-stitched heat flux segment. The boundary stitching heat flux segment is connected to the digital twin wellbore model along the depth direction of the target wellbore to generate a continuous heat flux field in the wellbore. The specific process of generating a continuous heat flux field in the wellbore is as follows: In the digital twin wellbore model, the well depth coordinates in the wellbore spatial structure layer are used as the spatial bearing axis of the heat flux field, and the operation time in the temperature monitoring mapping layer is used as the temporal bearing axis of the heat flux field. Each boundary-stitched heat flux segment is sequentially connected along the well depth direction of the target wellbore according to the segment's starting well depth, segment's ending well depth, and segment boundary stitching position. Within each boundary-stitched heat flux segment, the corresponding thermal memory constraint factor, heat release acceptance relationship, heat flux transfer direction, and temperature change delay state are retained. The tubing downflow direction, annular upflow direction, and wellbore radial heat transfer direction are mapped to the corresponding well depth positions through the circulating medium heat exchange layer. When adjacent boundary-stitched heat flux segments complete heat release acceptance, heat flux transfer direction connection, and temperature change delay state continuation at the segment boundary stitching position, each boundary-stitched heat flux segment is continuously distributed in the well depth direction and the operation time direction, generating a continuous heat flux field in the wellbore that characterizes the target wellbore heat flux transfer path, heat release acceptance process, and temperature change delay process.
[0025] In this embodiment, the generation of wellbore temperature prediction results specifically includes: The continuous heat flux field of the wellbore is loaded into the digital twin wellbore model. The time-depth temperature extrapolation grid is formed according to the well depth of the target wellbore and the operation time of the continuous operation stage. The grid cells are coupled to form the grid cell heat exchange state. The process of forming the lattice heat exchange state is as follows: After loading the continuous heat flux field of the wellbore onto the digital twin wellbore model, time-depth temperature extrapolation lattices are defined according to the well depth of the target wellbore and the operation time of the continuous operation phase; same-lattice coupling involves, within the same time-depth temperature extrapolation lattice, assigning the heat release inheritance relationship, heat flux transfer direction, and temperature change delay state in the continuous heat flux field of the wellbore to the corresponding well depth and operation time, and assigning the formation stratification location, formation thermal conductivity, formation specific heat capacity, and geothermal gradient in the formation thermal boundary layer. The time-depth temperature prediction grid cell is embedded in the time-depth temperature prediction grid cell. The drilling state, circulation state, pump stop state and operation switching state in the operation state driving layer are locked to the time-depth temperature prediction grid cell. The tubing flow path, annular flow path, inlet temperature, outlet temperature and well depth direction heat exchange state in the circulating medium heat exchange layer are superimposed to the time-depth temperature prediction grid cell. This allows the same time-depth temperature prediction grid cell to simultaneously undertake the heat exchange contents corresponding to the continuous heat flux field of the wellbore, the formation thermal boundary layer, the operation state driving layer and the circulating medium heat exchange layer, forming the grid cell heat exchange state. Based on the chronological order of operations during the continuous operation phase, and according to the heat exchange state of the lattice cells, the temperature changes of the lattice cells at different depths at the same well depth are deduced, thus forming a well depth temperature evolution sequence. The process of forming the well depth temperature evolution sequence is as follows: At the same well depth, the temperature prediction grid cells of each time depth are read sequentially according to the chronological order of the continuous operation phase. The temperature value of the time depth temperature prediction grid cell corresponding to the previous operation time is used as the starting temperature of the time depth temperature prediction grid cell corresponding to the current operation time. The heat exchange state of the grid cell corresponding to the current operation time is read, and the heat release inheritance relationship, heat flux transfer direction, and temperature change delay state in the continuous heat flux field of the wellbore are applied to the time depth temperature prediction grid cell. When the heat flux transfer direction points to the time depth temperature prediction grid cell, the corresponding heat flux change is incorporated into the current temperature change. When the heat release inheritance relationship indicates that the time depth temperature prediction grid cell releases heat to the next operation time or adjacent well depth location, the... The corresponding heat release change is separated from the current temperature change. When the temperature change delay state indicates that the temperature change continues across the current operation time, the incomplete temperature change is retained to the next operation time. The formation thermal boundary layer, operation state driving layer and circulating medium heat exchange layer that are already coupled with the grid cell in the grid cell heat exchange state act together on the current temperature change, so that the circulating medium heat exchange in the circulation state, the formation heat replenishment in the pump stop state and the thermal disturbance change in the operation switching state all fall into the same time-depth temperature extrapolation grid cell. The temperature change extrapolation of the time-depth temperature extrapolation grid cell corresponding to each operation time at the same well depth position is completed in the above manner, and the temperature change corresponding to each operation time is continuously carried out along the time direction to form the well depth temperature evolution sequence corresponding to the well depth position. Time-depth continuation is performed on the well depth temperature evolution sequence corresponding to different well depth locations to generate a time-depth temperature change surface, which is then mapped to a digital twin wellbore model to generate wellbore temperature prediction results. The specific process for generating wellbore temperature prediction results is as follows: In the digital twin wellbore model, the well depth temperature evolution sequence corresponding to different well depth locations is read, and the well depth temperature evolution sequence is time-depth continuation according to the well depth direction of the target wellbore. Time-depth continuation connects the temperature changes corresponding to different well depth locations at the same operating time in the well depth direction, and connects the temperature changes corresponding to different operating times at the same well depth location in the time direction, so that the temperature changes in the well depth direction and the temperature changes in the operating time direction fall into the same time-depth coordinate. After the temperature evolution sequence of each well depth completes the temperature change connection between adjacent well depth locations and the temperature change continuation between adjacent operating times, a time-depth temperature change surface covering different well depth locations and different operating times of the target wellbore is generated. The time-depth temperature change surface is mapped to the temperature monitoring mapping layer of the digital twin wellbore model, so that each well depth location and each operating time corresponds to a predicted temperature value, and the predicted temperature value is encapsulated together with the corresponding well depth location, operating time, and temperature change status to generate the wellbore temperature prediction result.
[0026] A wellbore temperature prediction system based on digital twins includes: The data mapping module is used to acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data. The thermal disturbance operation chain construction module is used to determine the timing parameters of thermal disturbance operations in the wellbore based on the basic data of the thermal state of the wellbore, and to construct the thermal disturbance operation chain in the wellbore. The thermal retention memory forming module is used to deploy the wellbore thermal disturbance operation chain along the well depth direction of the target wellbore to form a wellbore thermal retention memory; The heat flux segment generation module is used to generate wellbore heat flux segment data by using the wellbore thermal retention memory as the well depth segmentation traction object; The thermal memory constraint configuration module is used to perform thermal memory constraint configuration on wellbore heat flux segment data and generate thermal memory constrained heat flux segment data. The heat flux field stitching module is used to stitch the boundaries of thermal memory constrained heat flux fragment data in the digital twin wellbore model to generate a continuous heat flux field in the wellbore. The temperature prediction module is used to extrapolate the temperature changes of the target wellbore at different well depths and at different operating times in a digital twin wellbore model based on the continuous heat flux field of the wellbore, and generate wellbore temperature prediction results.
[0027] Example 1: In a continuous circulation operation scenario for a deep onshore well, the target wellbore depth is 4200m, with the casing section from 0m to 1800m and the open hole section from 1800m to 4200m. The wellbore is equipped with tubing and annular circulation channels. During a single continuous operation phase, the well experienced circulation start-up, flow rate change, circulating medium temperature change, pump shutdown, and circulation resumption. The circulating medium inlet temperature gradually increased from 32℃ to 38℃, the flow rate increased from 0L / s to 22L / s and then adjusted to 18L / s midway, and the pump shutdown lasted for 42 minutes. On-site temperature monitoring points were set at well depths of 900m, 1800m, 2700m, 3500m, and 4200m, with temperature recording intervals of 30s. The problem in this scenario is that the circulating heat effect before the pump is stopped does not disappear immediately after the pump is stopped. The open hole section from 2700m to 3500m is still affected by formation reheating and radial heat exchange of the well wall. If the temperature is calculated based only on the circulation state at the current operation time, the preceding heat effect will be cut off, making it difficult to reflect the temperature rise after the pump is stopped and the lag in temperature changes in the deep well section.
[0028] In this scenario, the wellbore structure data, formation layering data, formation thermal property data, downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data of the target wellbore are first acquired and mapped to a digital twin wellbore model to generate basic thermal state data for the wellbore. In the digital twin wellbore model, the wellbore spatial structure layer records the well depth, casing position, open hole section position, tubing position, and annulus position of the target wellbore; the formation thermal boundary layer records the formation thermal conductivity, specific heat capacity, and geothermal gradient corresponding to different well depths; the operation status driving layer records the circulation status, pump shutdown status, and operation switching status; the circulating medium heat exchange layer records the heat exchange status in the tubing downflow direction, annulus upflow direction, inlet temperature, outlet temperature, and well depth direction; and the temperature monitoring mapping layer records the correspondence between wellbore temperature monitoring data at well depth and operation time.
[0029] The downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data in the wellbore thermal state baseline data are aligned chronologically according to the operation time to determine the circulation start-up time, circulation stop time, discharge rate change time, circulating medium temperature change time, and wellbore temperature response time, thus constructing a wellbore thermal disturbance operation chain. After unfolding the wellbore thermal disturbance operation chain along the depth direction of the target wellbore, the arrival order of thermal disturbances, heat retention intervals, and heat release directions are bound to the wellbore depth to form a wellbore thermal retention memory. For the 1800m to 2700m well section, the thermal disturbance is mainly manifested as wellbore heat exchange generated in the open hole section after the circulating medium descends along the tubing string; for the 2700m to 3500m well section, the wellbore temperature continues to rise within 18 minutes after pump shutdown, indicating that there is a significant formation reheating state in this well section; for the 3500m to 4200m well section, the heat release direction is simultaneously affected by bottom hole heat accumulation and the annular return heat state.
[0030] After forming the wellbore thermal retention memory, the wellbore is divided into multiple wellbore heat flux segments based on the wellbore depth segmentation, taking into account the casing section termination position, open hole section start position, formation thermophysical property changes, and wellbore heat transfer state changes. The dominant factors of each segment are then ranked to generate wellbore heat flux segment data. Next, thermal memory constraint configuration is applied to the wellbore heat flux segment data, ensuring that each segment simultaneously inherits the effects of preceding thermal retention, the current heat release process, and the subsequent heat delay process, generating thermal memory-constrained heat flux segment data. This data is then used in a digital twin wellbore model for boundary stitching, determining the heat release inheritance relationship, heat flux transfer direction, and temperature change delay state between adjacent wellbore heat flux segments, generating a continuous wellbore heat flux field. Finally, based on the continuous wellbore heat flux field, temperature changes at different well depths and operating times are extrapolated to generate wellbore temperature prediction results.
[0031] To verify the beneficial effects of this embodiment, the wellbore temperature prediction results were compared with a control calculation method that does not consider wellbore thermal retention memory and thermal memory-constrained heat flux segment data. The control calculation method calculates temperature according to the current operating state and fixed well depth step, without considering previous thermal effects and segment boundary thermal delays. Field measurement data shows that within 30 minutes after pump shutdown, the temperature at a depth of 2700m rose from 63.2℃ to 64.8℃, and the temperature at a depth of 3500m rose from 69.4℃ to 71.6℃, indicating significant heat retention and delayed release in the deep open hole section. The control calculation method treats the pump shutdown state directly as a heat input interruption during this stage, thus underestimating the temperatures at depths of 2700m and 3500m. This embodiment, by incorporating wellbore thermal retention memory and a continuous wellbore heat flux field to account for previous thermal effects, makes the prediction results closer to the field measured temperatures.
[0032] Table 1 Comparison of Temperature Prediction at Different Well Depths During Continuous Operation Phase
[0033] As shown in Table 1, at well depths of 900m and 1800m, the wellbore temperature is mainly affected by the heated state of the circulating medium and the heat transfer state of the wellbore. The comparative calculation method can reflect some of the temperature changes, but due to the lack of wellbore thermal retention memory, there is still an absolute deviation of 1.8℃ to 2.4℃. In this embodiment, the wellbore thermal disturbance operation chain is unfolded along the well depth direction, and the arrival sequence of thermal disturbance, the heat retention range, and the heat release direction are bound to the corresponding well depth positions. Therefore, the absolute deviation at the 900m and 1800m positions is controlled within 0.5℃.
[0034] At well depths of 2700m, 3500m, and 4200m, wellbore temperature changes are jointly influenced by formation reheating, pump shutdown recovery, and annular upflow thermal conditions, resulting in a more pronounced lag in temperature changes. The comparative calculation method did not address the effects of preceding heat retention and the heat release continuity between adjacent wellbore heat flux segments, leading to an absolute deviation of 3.1℃ to 3.7℃. This embodiment, by constraining heat flux segment data with thermal memory and using a continuous wellbore heat flux field, addresses the continuity of heat flux transfer direction and temperature change delay between adjacent wellbore heat flux segments, keeping the prediction deviation for deep well sections within 1.1℃. This demonstrates that this embodiment can better adapt to continuous wellbore temperature changes in both the depth and timing directions during continuous operation.
[0035] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A wellbore temperature prediction method based on digital twins, characterized in that, Includes the following steps: Acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data; Based on the basic data of the wellbore thermal state, determine the timing parameters of wellbore thermal disturbance during the continuous operation phase, and construct the wellbore thermal disturbance operation chain; The wellbore thermal disturbance operation chain is extended along the depth direction of the target wellbore, and the arrival sequence of thermal disturbance, heat retention interval and heat release direction in the continuous operation stage are bound to the wellbore depth to form a wellbore thermal retention memory. Using the wellbore thermal retention memory as the target for well depth segmentation, the wellbore heat flux segments are divided along the well depth direction of the target wellbore. The dominant heat exchange factors of each wellbore heat flux segment are identified, and wellbore heat flux segment data is generated. Perform thermal memory constraint configuration on the wellbore heat flux segment data, determine the thermal memory constraint factor for each wellbore heat flux segment, and generate thermal memory constrained heat flux segment data; In the digital twin wellbore model, boundary stitching is performed on the thermal memory constrained heat flux segment data to determine the heat release connection relationship, heat flux transfer direction and temperature change delay state between adjacent wellbore heat flux segments, thereby generating a continuous heat flux field in the wellbore. Based on the continuous heat flux field of the wellbore, the temperature changes of the target wellbore at different depths and at different operating times are extrapolated in the digital twin wellbore model, generating wellbore temperature prediction results.
2. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, Acquire the wellbore thermal state twin source data, which includes wellbore structure data, formation layer data, formation thermal property data, downhole operation parameters, circulating medium temperature data, and wellbore temperature monitoring data. Construct a digital twin wellbore model based on the wellbore structure data, and map the wellbore thermal state twin source data to the digital twin wellbore model to generate basic wellbore thermal state data.
3. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The construction of the wellbore thermal disturbance operation chain specifically includes: The downhole operation parameters, circulating medium temperature data and wellbore temperature monitoring data in the wellbore thermal state basic data are aligned according to the operation time to form the thermal state time sequence of continuous operation phase. The thermal state timing of the continuous operation phase is calibrated to determine the cycle start time, cycle stop time, discharge change time, circulating medium temperature change time and wellbore temperature response time, thus forming the operation thermal disturbance nodes. Using adjacent thermal disturbance nodes as boundaries, the thermal state time sequence of the continuous operation phase is defined as the thermal disturbance segment. The locations of thermal disturbance nodes and segments during the operation are determined, and the timing parameters of thermal disturbance during well operation are generated. Based on the time-depth connection relationship between the thermal disturbance nodes, thermal disturbance segments, and well depth locations in the well operation thermal disturbance time sequence parameters, a wellbore thermal disturbance operation chain is constructed.
4. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The formation of the wellbore thermal retention memory specifically includes: Based on the wellbore thermal disturbance operation chain, the arrival order of the operation thermal disturbance nodes at different well depths is tracked along the well depth direction of the target wellbore to determine the arrival order of the thermal disturbance. The start time, end time, and duration of the thermal disturbance section at different depths along the target wellbore are tracked to determine the heat retention range. The thermal state transfer path of the thermal disturbance section along the depth direction of the target wellbore is traced in the direction of the tubing descends and the annulus returns to determine the direction of heat release. The arrival order of thermal disturbances, heat retention intervals and heat release directions corresponding to the same well depth are bound to the well depth to form thermal retention memory units at the corresponding well depth locations. These thermal retention memory units are then arranged according to the well depth direction of the target wellbore to form a wellbore thermal retention memory body.
5. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The generation of the wellbore heat flux segment data specifically includes: Using the wellbore thermal retention memory as the target for well depth segmentation, the thermal memory segmentation traction point is determined along the well depth direction of the target wellbore. Arrange the thermal memory segment traction points with the wellbore structure boundary, formation stratification, formation thermal property change, and wellbore heat transfer state change locations in the wellbore thermal state basic data at the same well depth to form wellbore heat flux segment boundaries. The well depth interval between adjacent wellbore heat flux segment boundaries is taken as wellbore heat flux segment, and the arrival order of heat disturbance, heat retention interval and heat release direction of the corresponding well depth interval in the wellbore heat retention memory are configured to the wellbore heat flux segment. The dominant factors of each wellbore heat flux segment are ranked to determine the dominant factors of heat exchange in each segment, and wellbore heat flux segment data is generated.
6. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The generation of the thermal memory-constrained heat flux fragment data specifically includes: Well depth adjacency locking is performed on each wellbore heat flux segment in the wellbore heat flux segment data to form a wellbore heat flux segment sequence; Based on the wellbore heat flux segment sequence, the preceding heat retention term is determined; Based on the wellbore heat flux segment sequence, determine the heat release term for this segment; Based on the wellbore heat flux segment sequence, determine the subsequent thermal delay term; The preceding heat retention term, the current heat release term, and the subsequent heat delay term are configured as thermal memory constraint factors and embedded with the wellbore heat flux segment to generate thermal memory constrained heat flux segment data.
7. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The generation of the continuous heat flux field in the wellbore specifically includes: The thermal memory constrained heat flux segment data is input into the digital twin wellbore model, and the ends of the heat flux segments of adjacent wellbores are aligned to determine the segment boundary stitching position; At the segment boundary stitching position, the thermal memory constraint factor of the adjacent wellbore heat flux segment is called to determine the heat release connection relationship between the adjacent wellbore heat flux segments; By combining the heat release connection relationship, heat release direction and dominant heat exchange factors between adjacent wellbore heat flux segments, the direction of heat flux transfer between adjacent wellbore heat flux segments can be determined. By combining the heat release succession relationship between adjacent wellbore heat flux segments, subsequent heat delay term and preceding heat retention term, the temperature change delay state between adjacent wellbore heat flux segments is determined; According to the heat release bearing relationship, heat flux transfer direction and temperature change delay state, heat flux boundary stitching is performed on the adjacent wellbore heat flux segments on both sides of the segment boundary stitching position to form boundary stitched heat flux segments. The boundary stitched heat flux segment is connected to the digital twin wellbore model along the depth direction of the target wellbore to generate a continuous heat flux field in the wellbore.
8. The wellbore temperature prediction method based on digital twin according to claim 1, characterized in that, The generation of the wellbore temperature prediction results specifically includes: The continuous heat flux field of the wellbore is loaded into the digital twin wellbore model. The time-depth temperature extrapolation grid is formed according to the well depth of the target wellbore and the operation time of the continuous operation stage. The grid cells are coupled to form the grid cell heat exchange state. Based on the chronological order of operations during the continuous operation phase, and according to the heat exchange state of the lattice cells, the temperature changes of the lattice cells at different depths at the same well depth are deduced, thus forming a well depth temperature evolution sequence. Time-depth continuation is performed on the well depth temperature evolution sequence corresponding to different well depth locations to generate a time-depth temperature change surface, which is then mapped to a digital twin wellbore model to generate wellbore temperature prediction results.
9. A wellbore temperature prediction system based on digital twins, comprising the wellbore temperature prediction method based on digital twins as described in any one of claims 1 to 8, characterized in that, include: The data mapping module is used to acquire the wellbore thermal state twin source data of the target wellbore and map it to the digital twin wellbore model to generate basic wellbore thermal state data. The thermal disturbance operation chain construction module is used to determine the timing parameters of thermal disturbance operations in the wellbore based on the basic data of the thermal state of the wellbore, and to construct the thermal disturbance operation chain in the wellbore. The thermal retention memory forming module is used to deploy the wellbore thermal disturbance operation chain along the well depth direction of the target wellbore to form a wellbore thermal retention memory; The heat flux segment generation module is used to generate wellbore heat flux segment data by using the wellbore thermal retention memory as the well depth segmentation traction object; The thermal memory constraint configuration module is used to perform thermal memory constraint configuration on wellbore heat flux segment data and generate thermal memory constrained heat flux segment data. The heat flux field stitching module is used to stitch the boundaries of thermal memory constrained heat flux fragment data in the digital twin wellbore model to generate a continuous heat flux field in the wellbore. The temperature prediction module is used to extrapolate the temperature changes of the target wellbore at different well depths and at different operating times in a digital twin wellbore model based on the continuous heat flux field of the wellbore, and generate wellbore temperature prediction results.
