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