2015-11-05 11:45:18 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-11-05 11:45:18 +01: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
|
|
|
//
|
2015-11-05 11:45:18 +01: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>
|
2015-11-05 11:45:18 +01:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfVector3.h"
|
2019-02-11 14:07:05 +01:00
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
2016-10-26 17:05:39 +02:00
|
|
|
#include <array>
|
2019-02-11 14:07:05 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
2015-11-05 11:45:18 +01:00
|
|
|
|
|
|
|
class RigGeoMechCaseData;
|
2019-02-11 14:07:05 +01:00
|
|
|
class RigFemResultAddress;
|
2015-11-05 11:45:18 +01:00
|
|
|
|
2016-10-26 17:14:11 +02:00
|
|
|
class RiuFemTimeHistoryResultAccessor
|
2015-11-05 11:45:18 +01:00
|
|
|
{
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RiuFemTimeHistoryResultAccessor( RigGeoMechCaseData* geomData,
|
|
|
|
RigFemResultAddress femResultAddress,
|
|
|
|
size_t gridIndex,
|
|
|
|
int elementIndex,
|
|
|
|
int face,
|
|
|
|
const cvf::Vec3d& intersectionPointInDomain );
|
|
|
|
|
|
|
|
RiuFemTimeHistoryResultAccessor( RigGeoMechCaseData* geomData,
|
|
|
|
RigFemResultAddress femResultAddress,
|
|
|
|
size_t gridIndex,
|
|
|
|
int elementIndex,
|
|
|
|
int face,
|
|
|
|
const cvf::Vec3d& intersectionPointInDomain,
|
|
|
|
const std::array<cvf::Vec3f, 3>& m_intersectionTriangle );
|
2016-10-26 17:05:39 +02:00
|
|
|
|
2017-04-04 16:08:42 +02:00
|
|
|
QString geometrySelectionText() const;
|
2015-11-05 11:45:18 +01:00
|
|
|
std::vector<double> timeHistoryValues() const;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
|
|
|
int closestNodeId() const;
|
2015-11-05 11:45:18 +01:00
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
void computeTimeHistoryData();
|
2015-11-05 11:45:18 +01:00
|
|
|
|
|
|
|
private:
|
2019-02-11 14:07:05 +01:00
|
|
|
RigGeoMechCaseData* m_geoMechCaseData;
|
|
|
|
std::unique_ptr<RigFemResultAddress> m_femResultAddress;
|
2015-11-05 11:45:18 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
size_t m_gridIndex;
|
|
|
|
int m_elementIndex;
|
|
|
|
int m_face;
|
|
|
|
int m_closestNodeId;
|
2015-11-05 11:45:18 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
cvf::Vec3d m_intersectionPointInDomain;
|
2015-11-05 11:45:18 +01:00
|
|
|
|
2016-10-26 17:05:39 +02:00
|
|
|
bool m_hasIntersectionTriangle;
|
|
|
|
std::array<cvf::Vec3f, 3> m_intersectionTriangle;
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
std::vector<double> m_timeHistoryValues;
|
2015-11-05 11:45:18 +01:00
|
|
|
};
|