2016-12-16 03:15:23 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil 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.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-02-07 02:09:00 -06:00
|
|
|
#include "RimFractureTemplate.h"
|
|
|
|
|
2016-12-16 03:15:23 -06:00
|
|
|
#include "cafAppEnum.h"
|
|
|
|
#include "cafPdmField.h"
|
2017-01-06 06:55:26 -06:00
|
|
|
#include "cafPdmFieldHandle.h"
|
2016-12-16 03:15:23 -06:00
|
|
|
#include "cafPdmObject.h"
|
2017-01-19 04:02:44 -06:00
|
|
|
#include "cafPdmFieldCvfVec3d.h"
|
2016-12-16 03:15:23 -06:00
|
|
|
|
2017-01-13 01:58:36 -06:00
|
|
|
#include "cvfBase.h"
|
2017-06-01 04:31:34 -05:00
|
|
|
#include "cvfObject.h"
|
2017-01-13 01:58:36 -06:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2017-06-01 04:31:34 -05:00
|
|
|
class RigFractureGrid;
|
2016-12-16 03:15:23 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-02-07 02:09:00 -06:00
|
|
|
class RimEllipseFractureTemplate : public RimFractureTemplate
|
2016-12-16 03:15:23 -06:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2018-02-21 12:53:22 -06:00
|
|
|
RimEllipseFractureTemplate();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimEllipseFractureTemplate() override;
|
2017-06-01 04:31:34 -05:00
|
|
|
|
2018-08-10 07:28:52 -05:00
|
|
|
void fractureTriangleGeometry(std::vector<cvf::Vec3f>* nodeCoords, std::vector<cvf::uint>* polygonIndices) const override;
|
2018-01-10 00:44:26 -06:00
|
|
|
|
2018-02-21 12:53:22 -06:00
|
|
|
void changeUnits();
|
|
|
|
const RigFractureGrid* fractureGrid() const override;
|
|
|
|
void setDefaultValuesFromUnit();
|
|
|
|
double conductivity() const;
|
2018-06-29 03:57:26 -05:00
|
|
|
|
|
|
|
double halfLength() const;
|
|
|
|
double height() const;
|
|
|
|
double width() const;
|
2018-02-21 12:53:22 -06:00
|
|
|
|
|
|
|
void appendDataToResultStatistics(const QString& uiResultName,
|
|
|
|
const QString& unit,
|
|
|
|
MinMaxAccumulator& minMaxAccumulator,
|
|
|
|
PosNegAccumulator& posNegAccumulator) const override;
|
2018-02-06 05:42:13 -06:00
|
|
|
|
2018-02-21 12:53:22 -06:00
|
|
|
void convertToUnitSystem(RiaEclipseUnitTools::UnitSystem neededUnit) override;
|
2018-02-20 08:15:06 -06:00
|
|
|
|
2018-02-21 12:53:22 -06:00
|
|
|
void loadDataAndUpdate() override;
|
|
|
|
std::vector<std::pair<QString, QString>> uiResultNamesWithUnit() const override;
|
2018-02-20 08:15:06 -06:00
|
|
|
|
2018-09-13 01:32:27 -05:00
|
|
|
private:
|
2018-02-21 12:53:22 -06:00
|
|
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2018-10-19 08:28:06 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
|
2018-01-10 00:44:26 -06:00
|
|
|
|
2018-09-13 01:32:27 -05:00
|
|
|
void onLoadDataAndUpdateGeometryHasChanged() override;
|
|
|
|
|
|
|
|
void createFractureGridAndAssignConductivities();
|
2018-08-10 07:28:52 -05:00
|
|
|
std::vector<cvf::Vec3f> fractureBorderPolygon() const;
|
2017-02-14 02:49:14 -06:00
|
|
|
|
2018-09-24 08:10:46 -05:00
|
|
|
WellFractureIntersectionData wellFractureIntersectionData(const RimFracture* fractureInstance) const override;
|
2018-02-14 06:35:35 -06:00
|
|
|
|
2017-06-01 04:31:34 -05:00
|
|
|
private:
|
2018-01-10 00:44:26 -06:00
|
|
|
cvf::ref<RigFractureGrid> m_fractureGrid;
|
|
|
|
|
2018-02-16 01:26:36 -06:00
|
|
|
caf::PdmField<double> m_halfLength;
|
|
|
|
caf::PdmField<double> m_height;
|
|
|
|
caf::PdmField<double> m_width;
|
2018-08-03 06:03:37 -05:00
|
|
|
caf::PdmField<double> m_permeability;
|
2016-12-16 03:15:23 -06:00
|
|
|
};
|