2015-04-23 06:24:15 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
2015-04-30 02:31:33 -05:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
2015-04-23 06:24:15 -05:00
|
|
|
#include <vector>
|
2015-04-30 02:31:33 -05:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2015-04-23 06:24:15 -05:00
|
|
|
|
2015-04-27 03:25:04 -05:00
|
|
|
class RigFemPartCollection;
|
2015-04-23 06:24:15 -05:00
|
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
// Data interface base class
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RifGeoMechReaderInterface : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RifGeoMechReaderInterface();
|
|
|
|
virtual ~RifGeoMechReaderInterface();
|
|
|
|
|
2015-05-06 06:22:09 -05:00
|
|
|
virtual bool openFile(const std::string& fileName, std::string* errorMessage = 0) = 0;
|
2015-05-04 07:29:14 -05:00
|
|
|
|
2015-05-04 04:03:20 -05:00
|
|
|
virtual bool readFemParts(RigFemPartCollection* geoMechCase) = 0;
|
2015-04-30 06:59:34 -05:00
|
|
|
virtual std::vector<std::string> stepNames() = 0;
|
|
|
|
virtual std::vector<double> frameTimes(int stepIndex) = 0;
|
|
|
|
|
2015-05-04 07:29:14 -05:00
|
|
|
virtual std::map<std::string, std::vector<std::string> > scalarNodeFieldAndComponentNames() = 0;
|
|
|
|
virtual std::map<std::string, std::vector<std::string> > scalarElementNodeFieldAndComponentNames() = 0;
|
|
|
|
virtual std::map<std::string, std::vector<std::string> > scalarIntegrationPointFieldAndComponentNames() = 0;
|
2015-04-30 06:59:34 -05:00
|
|
|
|
|
|
|
virtual void readScalarNodeField(const std::string& fieldName, const std::string& componmentName, int partIndex, int stepIndex, int frameIndex, std::vector<float>* resultValues) = 0;
|
2015-05-07 02:23:48 -05:00
|
|
|
virtual void readScalarElementNodeField(const std::string& fieldName, const std::string& componmentName, int partIndex, int stepIndex, int frameIndex, std::vector<float>* resultValues) = 0;
|
|
|
|
virtual void readScalarIntegrationPointField(const std::string& fieldName, const std::string& componmentName, int partIndex, int stepIndex, int frameIndex, std::vector<float>* resultValues) = 0;
|
|
|
|
virtual void readDisplacements(int partIndex, int stepIndex, int frameIndex, std::vector<cvf::Vec3f>* displacements) = 0;
|
2015-04-24 08:53:50 -05:00
|
|
|
|
2015-04-23 06:24:15 -05:00
|
|
|
private:
|
|
|
|
};
|