mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 05:53:25 -06:00
70 lines
4.4 KiB
C++
70 lines
4.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2023- Equinor ASA
|
|
//
|
|
// 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 "RigFaultReactivationModel.h"
|
|
#include "RigGriddedPart3d.h"
|
|
|
|
#include "RimFaultReactivationModel.h"
|
|
|
|
#include <map>
|
|
#include <ostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
//==================================================================================================
|
|
///
|
|
//==================================================================================================
|
|
class RifFaultReactivationModelExporter
|
|
{
|
|
public:
|
|
static std::pair<bool, std::string> exportToStream( std::ostream& stream, const RimFaultReactivationModel& model );
|
|
static std::pair<bool, std::string> exportToFile( const std::string& filePath, const RimFaultReactivationModel& model );
|
|
|
|
private:
|
|
static std::pair<bool, std::string> printHeading( std::ostream& stream, const std::string& applicationNameAndVersion );
|
|
static std::pair<bool, std::string>
|
|
printParts( std::ostream& stream,
|
|
const RigFaultReactivationModel& model,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames,
|
|
const std::vector<std::pair<RigGriddedPart3d::BorderSurface, std::string>>& borders,
|
|
const std::map<std::pair<RigFaultReactivationModel::GridPart, RigGriddedPart3d::BorderSurface>, int>& faces,
|
|
const std::map<RigGriddedPart3d::Boundary, std::string>& boundaries,
|
|
const std::pair<cvf::Vec3d, cvf::Vec3d>& orientation );
|
|
|
|
static std::pair<bool, std::string> printAssembly( std::ostream& stream,
|
|
const RigFaultReactivationModel& model,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames );
|
|
|
|
static std::pair<bool, std::string> printMaterials( std::ostream& stream );
|
|
|
|
static std::pair<bool, std::string> printInteractionProperties( std::ostream& stream, double faultFriction );
|
|
static std::pair<bool, std::string> printBoundaryConditions( std::ostream& stream,
|
|
const RigFaultReactivationModel& model,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames,
|
|
const std::map<RigGriddedPart3d::Boundary, std::string>& boundaries );
|
|
static std::pair<bool, std::string> printPredefinedFields( std::ostream& stream,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames );
|
|
static std::pair<bool, std::string> printSteps( std::ostream& stream,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames );
|
|
static std::pair<bool, std::string> printInteractions( std::ostream& stream,
|
|
const std::map<RigFaultReactivationModel::GridPart, std::string>& partNames,
|
|
const std::vector<std::pair<RigGriddedPart3d::BorderSurface, std::string>>& borders );
|
|
};
|