Open TotoGaz opened 1 year ago
- On the
InternalWell
element, remove thenumElementsPerSegment
. The number of elements should be automatically calculated depending on how the well trajectory intersects the mesh and where the perforations are located.The well polyline should be discretised by working out where it intersects the domain mesh and generate the well elements accordingly. Instead of depending on the size of the cell in which the perforation is located, this should dome with its own length.
Is there existing practice/research showing benefits of this? To the best of my knowledge, discretization of the wellbore is intentionally kept separate from the reservoir mesh as the accuracy requirements of the wellbore solve are different from those of the reservoir. While it's true that keeping an extremely coarse wellbore while refining the mesh may lead to inconsistent results, I don't think that fully automating this and taking away control from the user is the way (but I don't talk to reservoir engineers so happy to be corrected). On the other hand, perforation intervals and auto computing locations sounds like a great thing to have. But "perforation" != "well element".
Is there existing practice/research showing benefits of this? To the best of my knowledge, discretization of the wellbore is intentionally kept separate from the reservoir mesh as the accuracy requirements of the wellbore solve are different from those of the reservoir.
I agree in that we should maintain the flexibility to discretise the well independently of the mesh. My suggestion to remove numElementsPerSegment
was aimed at addressing 2 issues that we have found a bit frustrating
Whereas you can resolve the first issue by increasing numElementsPerSegment
, that almost invariably means you fall into the second issue.
I find the reservoir engineers prefer pragmatic solutions that don't require them to fiddle with their data. I would suggest:
I do not reallu understand what is needed by the solver. Is it the 3d position of the perforation and the transmisibility ? On the mesh domain hand what should theoretically be associated to the reservoir mesh for the solver ? The well element, the well vertex position ? The geometric position of a perforation is completely independent of the discretization of the well. A perforation could then be associated to a well element but also to a well vertex. So why are not both associated to the so called reservoir mesh ?
@TotoGaz let's make sure these items are either completed, re-assigned, or discarded. Thanks!
Isn't this the role of the architecture and operations committees as described in https://github.com/GEOS-DEV/GEOS/pull/3178 ?
This issue proposes a work plan to improve the definition of wells in
geosx
.Wait for DFNs to be done
imporField*
patterns.Some name changes should be done
ABC
suffixes that are pointless to consumers.CellBlockManager
,MeshGenerator,
WellBlock
,...
into more meaningful classes.Split the
WellElementSubRegion::generate
and move the geometrical part behind theCellBlockManagerABC
curtain:WellElementSubRegion::assignUnownedElementsInReservoir
. Move thecellBlock
/subRegion
into theCellBlockManagerABC
region. Keep theregion
management outside. Be consistent with what was done for the binding betweenCellBlocks
andsub regions
. (e.g. seeElementRegionManager::getCellBlockToSubRegionMap
)WellElementSubRegion::checkPartitioningValidity
,WellElementSubRegion::collectLocalAndBoundaryNodes
,WellElementSubRegion::updateNodeManagerSize
,WellElementSubRegion::constructSubRegionLocalElementMaps
are geometrical validations that can be moved in the geometrical part.constructSubRegionLocalElementMaps
(in the current case,radius
andvolume
) and move it to business domain. Be consistent with the management forDFNs
with the element aperture (e.g.). Implement theimportField
onWellBlocks
(forradius
andvolume
first).WellElementSubRegion::updateNodeManagerNodeToElementMap
with care. It surely can be split, because there’s obviously theer
,esr
,ei
triplet which can hint into interweaved business/geometrical management.Eventually trim
WellBlockABC
to get the new reduced abstraction.From this point, it should be possible to change the (currently unique) source of data more easily, and add the
vtk
support.InternalWellGenerator
below for a better taste of those computations).FaceBlock
can be a good example. If not, make it evolve to ensure consistency.@dkachuma also proposes an improvement about the wells' definitions for
InternalWellGenerator
. The main motivation is that well perforations should be specified by an interval as opposed to a precise location (point) in the mesh. This allows more independence between the well mesh and the reservoir mesh. This also allows the length of intersection between the well and the mesh to be independent of the cell sizes for cases in which the mesh is refined for example. Proposed changes:InternalWell
element, rename thepolylineSegmentConn
field tobranches
. This should still be a list of lists of node indices but will instead specify the nodes that make up the different branches of the well. An example:This defines a well with 4 branches. The main branch is made up of the first 7 nodes. Off of this, 2 branches start at node 3 and another branch starting at node 5. The
branches
field should be optional and if not speficied, it should be assumed that the well has a single branch with all the nodes specified in sequence. Is the branched well already implemented?InternalWell
element, add an optionalmeasuredDepth
field. This should be a list of real non-negative values which should correspond to the measured depth of each node in thepolylineNodeCoords
field. This should give the true measured depth of the point, usually the length of the well from the starting point of drilling to the current point. In the absence of this data, the measured depth of the first point should be assumed to be 0 and should increase as the length of the polyline.InternalWell
element, remove thenumElementsPerSegment
. The number of elements should be automatically calculated depending on how the well trajectory intersects the mesh and where the perforations are located.Perforation
element, remove thedistanceFromHead
field and replace with two fields:startMeasuredDepth
andstopMeasuredDepth
. These 2 should define the segment of the well which has been perforated instead of a single point.Perforation
element add an optionalbranch
field indicating the branch on which the perforation is located. This will be relevant when the branched well is implemented. Further ideas:
PS: Note that wells & EDFM should receive a quite similar treatment. @herve-gross