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