2014-08-06 08:14:01 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2014-08-06 08:14:01 -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
|
|
|
//
|
2014-08-06 08:14:01 -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>
|
2014-08-06 08:14:01 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-08-07 07:20:20 -05:00
|
|
|
#include "RigResultAccessor.h"
|
2014-08-06 08:14:01 -05:00
|
|
|
|
|
|
|
#include "cvfCollection.h"
|
|
|
|
|
|
|
|
class RigGridBase;
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2014-08-06 08:14:01 -05:00
|
|
|
//==================================================================================================
|
2014-08-07 06:22:09 -05:00
|
|
|
class RigCombTransResultAccessor : public RigResultAccessor
|
2014-08-06 08:14:01 -05:00
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
explicit RigCombTransResultAccessor( const RigGridBase* grid );
|
2014-08-06 08:14:01 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setTransResultAccessors( RigResultAccessor* xTransAccessor,
|
|
|
|
RigResultAccessor* yTransAccessor,
|
|
|
|
RigResultAccessor* zTransAccessor );
|
2014-08-06 08:14:01 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
double cellScalar( size_t gridLocalCellIndex ) const override;
|
|
|
|
double cellFaceScalar( size_t gridLocalCellIndex, cvf::StructGridInterface::FaceType faceId ) const override;
|
|
|
|
double cellScalarGlobIdx( size_t globCellIndex ) const override;
|
|
|
|
double cellFaceScalarGlobIdx( size_t globCellIndex, cvf::StructGridInterface::FaceType faceId ) const override;
|
2015-08-30 14:25:31 -05:00
|
|
|
|
2014-08-06 08:14:01 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
double neighborCellTran( size_t gridLocalCellIndex,
|
|
|
|
cvf::StructGridInterface::FaceType faceId,
|
|
|
|
const RigResultAccessor* transAccessor ) const;
|
2015-08-30 14:25:31 -05:00
|
|
|
|
2014-08-07 08:30:12 -05:00
|
|
|
cvf::ref<RigResultAccessor> m_xTransAccessor;
|
|
|
|
cvf::ref<RigResultAccessor> m_yTransAccessor;
|
|
|
|
cvf::ref<RigResultAccessor> m_zTransAccessor;
|
|
|
|
|
2014-08-06 08:14:01 -05:00
|
|
|
const RigGridBase* m_grid;
|
|
|
|
};
|