mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
96 lines
4.9 KiB
C++
96 lines
4.9 KiB
C++
|
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
//
|
||
|
|
// Copyright (C) 2022 - Equinor ASA
|
||
|
|
//
|
||
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
||
|
|
// it under the terms of the GNU General Public License as published by
|
||
|
|
// the Free Software Foundation, either version 3 of the License, or
|
||
|
|
// (at your option) any later version.
|
||
|
|
//
|
||
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
||
|
|
//
|
||
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||
|
|
// for more details.
|
||
|
|
//
|
||
|
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
#include "RigThermalFractureResultUtil.h"
|
||
|
|
|
||
|
|
#include "RigFractureGrid.h"
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
RigThermalFractureResultUtil::RigThermalFractureResultUtil()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
RigThermalFractureResultUtil::~RigThermalFractureResultUtil()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
std::vector<std::vector<double>>
|
||
|
|
RigThermalFractureResultUtil::getDataAtTimeIndex( std::shared_ptr<const RigThermalFractureDefinition> fractureDefinition,
|
||
|
|
const QString& resultName,
|
||
|
|
const QString& unitName,
|
||
|
|
size_t timeStepIndex )
|
||
|
|
{
|
||
|
|
return std::vector<std::vector<double>>();
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
void RigThermalFractureResultUtil::createFractureTriangleGeometry(
|
||
|
|
std::shared_ptr<const RigThermalFractureDefinition> fractureDefinition,
|
||
|
|
double xScaleFactor,
|
||
|
|
double yScaleFactor,
|
||
|
|
double wellPathIntersectionAtFractureDepth,
|
||
|
|
std::vector<cvf::Vec3f>* vertices,
|
||
|
|
std::vector<cvf::uint>* triangleIndices )
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
std::vector<double>
|
||
|
|
RigThermalFractureResultUtil::fractureGridResults( std::shared_ptr<const RigThermalFractureDefinition> fractureDefinition,
|
||
|
|
const QString& resultName,
|
||
|
|
const QString& unitName,
|
||
|
|
size_t timeStepIndex )
|
||
|
|
{
|
||
|
|
return std::vector<double>();
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
cvf::cref<RigFractureGrid>
|
||
|
|
RigThermalFractureResultUtil::createFractureGrid( std::shared_ptr<const RigThermalFractureDefinition> fractureDefinition,
|
||
|
|
const QString& resultName,
|
||
|
|
int activeTimeStepIndex,
|
||
|
|
double xScaleFactor,
|
||
|
|
double yScaleFactor,
|
||
|
|
double wellPathIntersectionAtFractureDepth,
|
||
|
|
RiaDefines::EclipseUnitSystem requiredUnitSet )
|
||
|
|
{
|
||
|
|
cvf::ref<RigFractureGrid> fractureGrid = new RigFractureGrid;
|
||
|
|
std::vector<RigFractureCell> stimPlanCells;
|
||
|
|
fractureGrid->setFractureCells( stimPlanCells );
|
||
|
|
// fractureGrid->setWellCenterFractureCellIJ( wellCenterStimPlanCellIJ );
|
||
|
|
// fractureGrid->setICellCount( this->m_Xs.size() - 2 );
|
||
|
|
// fractureGrid->setJCellCount( this->m_Ys.size() - 2 );
|
||
|
|
// fractureGrid->ensureCellSearchTreeIsBuilt();
|
||
|
|
|
||
|
|
return cvf::cref<RigFractureGrid>( fractureGrid.p() );
|
||
|
|
}
|