mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#6232 Simplify importing elastic properties for fracture model.
This commit is contained in:
1 parent
8dfe9bd4b5
commit
22759b201d
3 files changed
+17
-5
No files matched your search
@@ -17,6 +17,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "RimcFractureModelCollection.h"
|
||||
|
||||
#include "RicElasticPropertiesImportTools.h"
|
||||
|
||||
#include "FractureCommands/RicNewFractureModelFeature.h"
|
||||
|
||||
#include "RimFractureModel.h"
|
||||
@@ -40,6 +42,12 @@ RimcFractureModelCollection_newFractureModel::RimcFractureModelCollection_newFra
|
||||
CAF_PDM_InitObject( "Create Fracture Model", "", "", "Create a new Fracture Model" );
|
||||
CAF_PDM_InitScriptableFieldWithIONoDefault( &m_wellPath, "WellPath", "", "", "", "Well Path" );
|
||||
CAF_PDM_InitScriptableFieldWithIONoDefault( &m_md, "MeasuredDepth", "", "", "", "Measured Depth" );
|
||||
CAF_PDM_InitScriptableFieldWithIONoDefault( &m_elasticPropertiesFilePath,
|
||||
"ElasticPropertiesFilePath",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"Elastic Properties File Path" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -60,6 +68,9 @@ caf::PdmObjectHandle* RimcFractureModelCollection_newFractureModel::execute()
|
||||
if ( newFractureModel )
|
||||
{
|
||||
newFractureModel->setMD( m_md() );
|
||||
|
||||
RicElasticPropertiesImportTools::importElasticPropertiesFromFile( m_elasticPropertiesFilePath, newFractureModel );
|
||||
|
||||
self<RimFractureModelCollection>()->updateAllRequiredEditors();
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "cafPdmPtrArrayField.h"
|
||||
#include "cafPdmPtrField.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
class RimFractureModelCollection;
|
||||
class RimWellPath;
|
||||
|
||||
@@ -46,4 +48,5 @@ public:
|
||||
private:
|
||||
caf::PdmPtrField<RimWellPath*> m_wellPath;
|
||||
caf::PdmField<double> m_md;
|
||||
caf::PdmField<QString> m_elasticPropertiesFilePath;
|
||||
};
|
||||
Reference in new issue
Block a user