-
Notifications
You must be signed in to change notification settings - Fork 94
feat: Add functions to connect well perforation to surface elements #3359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
@CusiniM, @castelletto1, @jhuang2601, @rrsettgast please review |
elemManager.forElementSubRegions< CellElementSubRegion, FaceElementSubRegion >( [&] ( auto const & subRegion ) | ||
{ | ||
subRegion.calculateElementCenters( X ); | ||
} ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find a bit weird that a function in FaceManager
called computeGeometry
takes care of computed element centers of the subregions. Also, do the fracture elements even exist at this point? I am assuming this occurs way before the event loop in which the surfacegenerator creates the fractures.
dy = boxDims[ 1 ]; | ||
dz = boxDims[ 2 ]; | ||
|
||
if( dx < 1e-10 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the meaning of this value?
(point[0] <= std::max( p1[0], p2[0] ))) | ||
{ | ||
real64 const xIntersect = (point[1] - p1[1]) * (p2[0] - p1[0]) / (p2[1] - p1[1]) + p1[0]; | ||
if( std::abs( p1[0] - p2[0] ) < 1e-10 || point[0] <= xIntersect ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the tolerance seems a bit arbitrary, doesn't it?
} | ||
|
||
// remove duplicates | ||
std::unordered_set< Point3d, PointHash< Point3d >, PointsEqual< Point3d > > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why would there be duplicates? is it because of the duplicated nodes?
should go after #3227
calculateElementCenters
for subregions earlier intoProblemManager::generateMeshLevel
, so cell centers for surface elements are available when well perforation is processedregisterWrapper
forelementCenter
andelementVolume
inEmbeddedSurfaceSubRegion
, they already registered in the base classgetReservoirElementDimensions
/getBoundingBox
to supportSurfaceElementSubRegion
SurfaceElementSubRegion
version ofisPointInsideElement
and helper functionsisPointInPolygon2d/3d
(not super refined implementation but something to start working with)