///////////////////////////////////////////////////////////////////////////////// // // 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RimFractureTemplate.h" #include "cafAppEnum.h" #include "cafPdmField.h" #include "cafPdmFieldCvfVec3d.h" #include "cafPdmFieldHandle.h" #include "cafPdmObject.h" #include "cvfObject.h" #include "cvfVector3.h" #include class RigFractureGrid; //================================================================================================== /// /// //================================================================================================== class RimEllipseFractureTemplate : public RimFractureTemplate { CAF_PDM_HEADER_INIT; public: RimEllipseFractureTemplate(); ~RimEllipseFractureTemplate() override; void fractureTriangleGeometry( std::vector* nodeCoords, std::vector* polygonIndices, double wellPathDepthAtFracture ) const override; std::pair wellPathDepthAtFractureRange() const override; QString wellPathDepthAtFractureUiName() const override; void changeUnits(); cvf::cref createFractureGrid( double wellPathDepthAtFracture ) const override; void setDefaultValuesFromUnit(); double conductivity() const; double halfLength() const; double height() const; double width() const; double computeLegacyWellDepthAtFracture() const; void appendDataToResultStatistics( const QString& uiResultName, const QString& unit, MinMaxAccumulator& minMaxAccumulator, PosNegAccumulator& posNegAccumulator ) const override; void convertToUnitSystem( RiaDefines::EclipseUnitSystem neededUnit ) override; void loadDataAndUpdate() override; std::vector> uiResultNamesWithUnit() const override; private: void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override; void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override; QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override; void initAfterRead() override; void onLoadDataAndUpdateGeometryHasChanged() override; std::vector fractureBorderPolygon( double wellPathDepthAtFracture ) const; double computeHeightOffset( double wellPathDepthAtFractureRange ) const; WellFractureIntersectionData wellFractureIntersectionData( const RimFracture* fractureInstance ) const override; private: caf::PdmField m_halfLength; caf::PdmField m_height; caf::PdmField m_width; caf::PdmField m_permeability; };