2013-06-07 09:32:06 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-06-07 09:32:06 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-06-07 09:32:06 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-06-07 09:32:06 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "RimOilField.h"
|
|
|
|
|
|
2018-11-23 13:33:59 +01:00
|
|
|
#include "RimAnnotationCollection.h"
|
2018-12-13 19:49:37 +01:00
|
|
|
#include "RimCompletionTemplateCollection.h"
|
2015-06-25 13:36:15 +02:00
|
|
|
#include "RimEclipseCaseCollection.h"
|
2021-05-26 12:10:45 +02:00
|
|
|
#include "RimEnsembleWellLogsCollection.h"
|
2016-08-24 08:30:12 +02:00
|
|
|
#include "RimFormationNamesCollection.h"
|
2017-02-07 11:08:56 +01:00
|
|
|
#include "RimFractureTemplateCollection.h"
|
2016-12-16 14:05:11 +01:00
|
|
|
#include "RimGeoMechModels.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "RimMeasurement.h"
|
2017-09-14 15:44:01 +02:00
|
|
|
#include "RimObservedDataCollection.h"
|
2017-09-06 16:32:46 +02:00
|
|
|
#include "RimSummaryCaseMainCollection.h"
|
2020-01-03 13:49:12 +01:00
|
|
|
#include "RimSurfaceCollection.h"
|
2016-12-16 14:05:11 +01:00
|
|
|
#include "RimWellPathCollection.h"
|
2013-06-07 09:32:06 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_SOURCE_INIT( RimOilField, "ResInsightOilField" );
|
2013-06-07 09:32:06 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2013-06-07 09:32:06 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
RimOilField::RimOilField( void )
|
2013-06-07 09:32:06 +02:00
|
|
|
{
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitObject( "Oil Field" );
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2022-01-07 08:31:52 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &analysisModels, "AnalysisModels", "Grid Models", ":/GridModels.png" );
|
|
|
|
|
CAF_PDM_InitFieldNoDefault( &geoMechModels, "GeoMechModels", "Geo Mech Models", ":/GridModels.png" );
|
|
|
|
|
CAF_PDM_InitFieldNoDefault( &wellPathCollection, "WellPathCollection", "Well Paths", ":/WellCollection.png" );
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &completionTemplateCollection, "CompletionTemplateCollection", "" );
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2022-01-07 08:31:52 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &summaryCaseMainCollection, "SummaryCaseCollection", "Summary Cases", ":/GridModels.png" );
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &formationNamesCollection, "FormationNamesCollection", "Formations" );
|
2022-01-07 08:31:52 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &observedDataCollection, "ObservedDataCollection", "Observed Data", ":/Cases16x16.png" );
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &annotationCollection, "AnnotationCollection", "Annotations" );
|
|
|
|
|
CAF_PDM_InitFieldNoDefault( &ensembleWellLogsCollection, "EnsembleWellLogsCollection", "Ensemble Well Logs" );
|
2019-09-06 10:40:57 +02:00
|
|
|
|
|
|
|
|
CAF_PDM_InitFieldNoDefault( &m_fractureTemplateCollection_OBSOLETE,
|
|
|
|
|
"FractureDefinitionCollection",
|
2021-11-14 14:15:12 +01:00
|
|
|
"Defenition of Fractures" );
|
2017-08-21 15:24:20 +02:00
|
|
|
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &measurement, "Measurement", "Measurement" );
|
2018-12-19 14:41:17 +01:00
|
|
|
measurement = new RimMeasurement();
|
2019-01-03 07:06:37 +01:00
|
|
|
measurement.xmlCapability()->disableIO();
|
2018-12-19 14:41:17 +01:00
|
|
|
|
2021-11-14 14:15:12 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault( &surfaceCollection, "SurfaceCollection", "Surfaces" );
|
2020-01-03 13:49:12 +01:00
|
|
|
surfaceCollection = new RimSurfaceCollection();
|
2020-08-24 11:09:22 +02:00
|
|
|
surfaceCollection->setAsTopmostFolder();
|
2020-01-03 13:49:12 +01:00
|
|
|
|
|
|
|
|
completionTemplateCollection = new RimCompletionTemplateCollection;
|
|
|
|
|
analysisModels = new RimEclipseCaseCollection();
|
|
|
|
|
wellPathCollection = new RimWellPathCollection();
|
|
|
|
|
summaryCaseMainCollection = new RimSummaryCaseMainCollection();
|
|
|
|
|
observedDataCollection = new RimObservedDataCollection();
|
|
|
|
|
formationNamesCollection = new RimFormationNamesCollection();
|
|
|
|
|
annotationCollection = new RimAnnotationCollection();
|
2021-05-26 12:10:45 +02:00
|
|
|
ensembleWellLogsCollection = new RimEnsembleWellLogsCollection();
|
2018-12-13 19:49:37 +01:00
|
|
|
|
|
|
|
|
m_fractureTemplateCollection_OBSOLETE = new RimFractureTemplateCollection;
|
2019-09-06 10:40:57 +02:00
|
|
|
m_fractureTemplateCollection_OBSOLETE.xmlCapability()->setIOWritable( false );
|
2013-06-07 09:32:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2013-06-07 09:32:06 +02:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2020-02-12 11:13:38 +01:00
|
|
|
RimOilField::~RimOilField( void )
|
|
|
|
|
{
|
|
|
|
|
}
|
2018-12-13 19:49:37 +01:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimFractureTemplateCollection* RimOilField::fractureDefinitionCollection()
|
|
|
|
|
{
|
|
|
|
|
return completionTemplateCollection()->fractureTemplateCollection();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
const RimFractureTemplateCollection* RimOilField::fractureDefinitionCollection() const
|
|
|
|
|
{
|
|
|
|
|
return completionTemplateCollection()->fractureTemplateCollection();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimValveTemplateCollection* RimOilField::valveTemplateCollection()
|
|
|
|
|
{
|
|
|
|
|
return completionTemplateCollection()->valveTemplateCollection();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
const RimValveTemplateCollection* RimOilField::valveTemplateCollection() const
|
|
|
|
|
{
|
|
|
|
|
return completionTemplateCollection()->valveTemplateCollection();
|
2013-06-07 09:32:06 +02:00
|
|
|
}
|
2013-06-12 09:36:50 +02:00
|
|
|
|
2018-12-13 19:49:37 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
void RimOilField::initAfterRead()
|
|
|
|
|
{
|
|
|
|
|
RimFractureTemplateCollection* fractureTemplateCollection = m_fractureTemplateCollection_OBSOLETE.value();
|
2019-09-06 10:40:57 +02:00
|
|
|
if ( !fractureTemplateCollection->fractureTemplates().empty() )
|
2018-12-13 19:49:37 +01:00
|
|
|
{
|
2022-05-31 13:08:07 +02:00
|
|
|
m_fractureTemplateCollection_OBSOLETE.removeChild( fractureTemplateCollection );
|
2019-09-06 10:40:57 +02:00
|
|
|
completionTemplateCollection->setFractureTemplateCollection( fractureTemplateCollection );
|
2018-12-13 19:49:37 +01:00
|
|
|
}
|
|
|
|
|
}
|