#7923 Ensemble Fracture Statistics: export fracture orientation for result files (#7926)

This commit is contained in:
Kristian Bendiksen
2021-08-31 08:12:40 +02:00
committed by GitHub
parent 200d5c65a3
commit 503d946bc1
3 changed files with 48 additions and 7 deletions

View File

@@ -344,11 +344,17 @@ std::vector<QString> RimEnsembleFractureStatistics::computeStatistics()
double timeStep = 1.0;
double referenceDepth = 0.0;
RigStimPlanFractureDefinition::Orientation orientation = RigStimPlanFractureDefinition::Orientation::UNDEFINED;
if ( m_meshAlignmentType() == MeshAlignmentType::PERFORATION_DEPTH )
{
for ( auto definition : stimPlanFractureDefinitions )
{
referenceDepth += computeDepthOfWellPathAtFracture( definition );
// Take the first orientation which is defined (all the fractures
// should have the same orientation).
if ( orientation == RigStimPlanFractureDefinition::Orientation::UNDEFINED )
orientation = definition->orientation();
}
referenceDepth /= stimPlanFractureDefinitions.size();
}
@@ -421,7 +427,8 @@ std::vector<QString> RimEnsembleFractureStatistics::computeStatistics()
gridXs,
gridYsWithOffset,
timeStep,
unitSystem );
unitSystem,
orientation );
xmlFilePaths.push_back( xmlFilePath );
}