mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#14334 Fix formation dip sign when aligning fracture with formation dip
The sign of the projected formation direction vector flips with the fracture direction normal, which follows the well drilling direction, while the fracture azimuth defining the dip rotation in RimFracture::transformMatrix() is only defined mod 180 degrees. Canonicalize the formation direction against the fracture azimuth direction before computing the dip, so a positive dip means the formation descends toward the azimuth direction. Restore std::abs() in calculateFormationDipFromHorizontal() so the StimPlan model formation dip (BedDipDeg in the Asymmetric FRK export) keeps the non-negative convention from #8877.
This commit is contained in:
1 parent
6b7f87e260
commit
6357cef1ab
7 files changed
+118
-4
No files matched your search
@@ -539,6 +539,14 @@ void RimFracture::setAzimuth( double azimuth )
|
||||
m_azimuth = azimuth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFracture::azimuth() const
|
||||
{
|
||||
return m_azimuth();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -101,7 +101,8 @@ public:
|
||||
void setTilt( double tilt );
|
||||
double tilt() const;
|
||||
|
||||
void setAzimuth( double azimuth );
|
||||
void setAzimuth( double azimuth );
|
||||
double azimuth() const;
|
||||
|
||||
void setFractureTemplateNoUpdate( RimFractureTemplate* fractureTemplate );
|
||||
void setFractureTemplate( RimFractureTemplate* fractureTemplate );
|
||||
|
||||
Reference in new issue
Block a user