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
|
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.
|
|
|
|
|
//
|
|
|
|
|
// 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.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "RimOilField.h"
|
|
|
|
|
|
2015-06-25 13:36:15 +02:00
|
|
|
#include "RimEclipseCaseCollection.h"
|
2016-08-24 08:30:12 +02:00
|
|
|
#include "RimFormationNamesCollection.h"
|
2016-12-16 14:38:27 +01:00
|
|
|
#include "RimFractureDefinitionCollection.h"
|
2016-12-20 15:28:37 +01:00
|
|
|
|
2016-12-16 14:05:11 +01:00
|
|
|
#include "RimGeoMechModels.h"
|
|
|
|
|
#include "RimSummaryCaseCollection.h"
|
|
|
|
|
#include "RimWellPathCollection.h"
|
|
|
|
|
|
2013-06-07 09:32:06 +02:00
|
|
|
|
|
|
|
|
CAF_PDM_SOURCE_INIT(RimOilField, "ResInsightOilField");
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimOilField::RimOilField(void)
|
|
|
|
|
{
|
2013-06-07 14:54:02 +02:00
|
|
|
CAF_PDM_InitObject("Oil Field", "", "", "");
|
|
|
|
|
|
2013-06-07 09:32:06 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&analysisModels, "AnalysisModels", "Grid Models", ":/GridModels.png", "", "");
|
2015-04-20 09:02:33 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&geoMechModels, "GeoMechModels", "Geo Mech Models", ":/GridModels.png", "", "");
|
2013-06-07 14:54:02 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&wellPathCollection, "WellPathCollection", "Well Paths", ":/WellCollection.png", "", "");
|
2016-12-16 14:38:27 +01:00
|
|
|
CAF_PDM_InitFieldNoDefault(&fractureDefinitionCollection, "FractureDefinitionCollection", "Defenition of fractures", "", "", "");
|
2016-05-31 13:42:27 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&summaryCaseCollection,"SummaryCaseCollection","Summary Cases",":/GridModels.png","","");
|
2016-08-24 08:30:12 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault(&formationNamesCollection,"FormationNamesCollection","Formations","","","");
|
|
|
|
|
|
2016-12-16 14:38:27 +01:00
|
|
|
fractureDefinitionCollection = new RimFractureDefinitionCollection();
|
2015-06-25 12:11:06 +02:00
|
|
|
analysisModels = new RimEclipseCaseCollection();
|
2015-11-30 15:07:54 +01:00
|
|
|
wellPathCollection = new RimWellPathCollection();
|
2016-05-31 13:42:27 +02:00
|
|
|
summaryCaseCollection = new RimSummaryCaseCollection();
|
2013-06-07 09:32:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
RimOilField::~RimOilField(void)
|
|
|
|
|
{
|
|
|
|
|
if (wellPathCollection()) delete wellPathCollection();
|
2016-12-16 14:38:27 +01:00
|
|
|
if (fractureDefinitionCollection()) delete fractureDefinitionCollection();
|
2015-04-20 09:02:33 +02:00
|
|
|
if (geoMechModels()) delete geoMechModels();
|
2013-06-07 09:32:06 +02:00
|
|
|
if (analysisModels()) delete analysisModels();
|
2016-05-31 13:42:27 +02:00
|
|
|
if (summaryCaseCollection()) delete summaryCaseCollection();
|
2016-08-24 08:30:12 +02:00
|
|
|
if (formationNamesCollection()) delete formationNamesCollection();
|
2013-06-07 09:32:06 +02:00
|
|
|
}
|
2013-06-12 09:36:50 +02:00
|
|
|
|