2019-05-20 06:21:02 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
import "Case.proto";
|
2019-08-13 06:15:58 -05:00
|
|
|
import "Definitions.proto";
|
2019-05-20 06:21:02 -05:00
|
|
|
|
|
|
|
package rips;
|
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
/*
|
|
|
|
* The Commands service handles generic ResInsight RicfCommandObject-commands
|
|
|
|
* The CommandParams is used to deduce command name from the chosen oneof-message
|
|
|
|
* .. and the parameters are in the oneof-message itself. */
|
2019-05-20 06:21:02 -05:00
|
|
|
service Commands
|
|
|
|
{
|
2019-05-23 09:46:50 -05:00
|
|
|
rpc Execute(CommandParams) returns(CommandReply) {}
|
2019-05-20 06:21:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message FilePathRequest
|
|
|
|
{
|
|
|
|
string path = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReplaceCaseRequest
|
|
|
|
{
|
|
|
|
string newGridFile = 1;
|
|
|
|
int32 caseId = 2;
|
|
|
|
}
|
|
|
|
|
2019-07-16 10:12:08 -05:00
|
|
|
message ReplaceCaseRequests
|
|
|
|
{
|
|
|
|
repeated ReplaceCaseRequest casePairs = 1;
|
|
|
|
}
|
|
|
|
|
2019-05-20 06:21:02 -05:00
|
|
|
message ReplaceSourceCasesRequest
|
|
|
|
{
|
|
|
|
string gridListFile = 1;
|
2019-06-03 14:11:27 -05:00
|
|
|
int32 caseGroupId = 2;
|
2019-05-20 06:21:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message ExportMultiCaseRequest
|
|
|
|
{
|
|
|
|
string gridListFile = 1;
|
|
|
|
}
|
|
|
|
|
2019-05-24 01:58:04 -05:00
|
|
|
enum SnapshotType
|
|
|
|
{
|
|
|
|
VIEWS = 0;
|
|
|
|
PLOTS = 1;
|
|
|
|
ALL = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExportSnapshotsRequest
|
|
|
|
{
|
|
|
|
SnapshotType type = 1;
|
|
|
|
string prefix = 2;
|
2019-08-21 08:11:29 -05:00
|
|
|
int32 caseId = 3;
|
2019-09-23 04:50:33 -05:00
|
|
|
int32 viewId = 4;
|
2019-05-24 01:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message ExportPropertyRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
int32 timeStep = 2;
|
|
|
|
string property = 3;
|
|
|
|
string eclipseKeyword = 4;
|
|
|
|
double undefinedValue = 5;
|
|
|
|
string exportFile = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExportPropertyInViewsRequest
|
|
|
|
{
|
2019-09-23 04:50:33 -05:00
|
|
|
int32 caseId = 1;
|
|
|
|
repeated int32 viewIds = 2;
|
|
|
|
double undefinedValue = 3;
|
2019-05-24 01:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
enum CompdatExportSplit
|
|
|
|
{
|
|
|
|
UNIFIED_FILE = 0;
|
|
|
|
SPLIT_ON_WELL = 1;
|
|
|
|
SPLIT_ON_WELL_AND_COMPLETION_TYPE = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum CompdatExportType
|
|
|
|
{
|
|
|
|
TRANSMISSIBILITIES = 0;
|
|
|
|
WPIMULT_AND_DEFAULT_CONNECTION_FACTORS = 1;
|
|
|
|
NO_COMPLETIONS = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum CompdatCombinationMode
|
|
|
|
{
|
|
|
|
INDIVIDUALLY = 0;
|
2019-09-23 04:50:33 -05:00
|
|
|
COMBINED = 1;
|
2019-05-24 01:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message ExportWellPathCompRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
int32 timeStep = 2;
|
|
|
|
repeated string wellPathNames = 3;
|
|
|
|
CompdatExportSplit fileSplit = 4;
|
|
|
|
CompdatExportType compdatExport = 5;
|
|
|
|
bool includePerforations = 6;
|
|
|
|
bool includeFishbones = 7;
|
|
|
|
bool excludeMainBoreForFishbones = 8;
|
|
|
|
CompdatCombinationMode combinationMode = 9;
|
|
|
|
}
|
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
message ExportSimWellPathFracRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
2019-09-23 04:50:33 -05:00
|
|
|
int32 viewId = 2;
|
2019-05-24 04:13:12 -05:00
|
|
|
int32 timeStep = 3;
|
|
|
|
repeated string simulationWellNames = 4;
|
|
|
|
CompdatExportSplit fileSplit = 5;
|
|
|
|
CompdatExportType compdatExport = 6;
|
|
|
|
}
|
2019-05-24 01:58:04 -05:00
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
message ExportMswRequest
|
2019-05-24 01:58:04 -05:00
|
|
|
{
|
2019-05-24 04:13:12 -05:00
|
|
|
int32 caseId = 1;
|
|
|
|
string wellPath = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExportWellPathRequest
|
|
|
|
{
|
|
|
|
repeated string wellPathNames = 1;
|
|
|
|
double mdStepSize = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExportVisibleCellsRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
2019-09-23 04:50:33 -05:00
|
|
|
int32 viewId = 2;
|
2019-05-24 04:13:12 -05:00
|
|
|
string exportKeyword = 3;
|
|
|
|
int32 visibleActiveCellsValue = 4;
|
|
|
|
int32 hiddenActiveCellsValue = 5;
|
|
|
|
int32 inactiveCellsValue = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ExportFolderType {
|
|
|
|
COMPLETIONS = 0;
|
|
|
|
SNAPSHOTS = 1;
|
|
|
|
PROPERTIES = 2;
|
|
|
|
STATISTICS = 3;
|
|
|
|
WELLPATHS = 4;
|
|
|
|
CELLS = 5;
|
|
|
|
LGRS = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetExportFolderRequest
|
|
|
|
{
|
|
|
|
ExportFolderType type = 1;
|
|
|
|
string path = 2;
|
|
|
|
bool createFolder = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RunOctaveScriptRequest
|
|
|
|
{
|
|
|
|
string path = 1;
|
|
|
|
repeated int32 caseIds = 2;
|
2019-05-24 01:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetMainWindowSizeParams
|
|
|
|
{
|
|
|
|
int32 height = 1;
|
|
|
|
int32 width = 2;
|
|
|
|
}
|
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
message ComputeCaseGroupStatRequest
|
|
|
|
{
|
|
|
|
repeated int32 caseIds = 1;
|
2019-07-29 05:55:02 -05:00
|
|
|
int32 caseGroupId = 2;
|
2019-05-24 04:13:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetTimeStepParams
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
2019-09-23 04:50:33 -05:00
|
|
|
int32 viewId = 2;
|
|
|
|
int32 timeStep = 3;
|
2019-05-24 04:13:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message ScaleFractureTemplateRequest
|
|
|
|
{
|
|
|
|
int32 id = 1;
|
|
|
|
double halfLength = 2;
|
|
|
|
double height = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetFracContainmentRequest
|
|
|
|
{
|
|
|
|
int32 id = 1;
|
|
|
|
int32 topLayer = 2;
|
|
|
|
int32 baseLayer = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum MultipleFracAction
|
|
|
|
{
|
|
|
|
NONE = 0;
|
|
|
|
APPEND_FRACTURES = 1;
|
|
|
|
REPLACE_FRACTURES = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateMultipleFracRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
int32 templateId = 2;
|
|
|
|
repeated string wellPathNames = 3;
|
|
|
|
double minDistFromWellTd = 4;
|
|
|
|
int32 maxFracturesPerWell = 5;
|
|
|
|
int32 topLayer = 6;
|
|
|
|
int32 baseLayer = 7;
|
|
|
|
int32 spacing = 8;
|
|
|
|
MultipleFracAction action = 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum LgrSplitType
|
|
|
|
{
|
|
|
|
LGR_PER_CELL = 0;
|
|
|
|
LGR_PER_COMPLETION = 1;
|
|
|
|
LGR_PER_WELL = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateLgrForCompRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
int32 timeStep = 2;
|
|
|
|
repeated string wellPathNames = 3;
|
|
|
|
int32 refinementI = 4;
|
|
|
|
int32 refinementJ = 5;
|
|
|
|
int32 refinementK = 6;
|
|
|
|
LgrSplitType splitType = 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSatPressPlotRequest
|
|
|
|
{
|
|
|
|
repeated int32 caseIds = 1;
|
|
|
|
}
|
2019-05-24 01:58:04 -05:00
|
|
|
|
2019-07-18 03:53:59 -05:00
|
|
|
message CreateGridCaseGroupRequest
|
|
|
|
{
|
|
|
|
repeated string casePaths = 1;
|
|
|
|
}
|
|
|
|
|
2019-07-19 06:54:15 -05:00
|
|
|
message CreateStatisticsCaseRequest
|
|
|
|
{
|
|
|
|
int32 caseGroupId = 1;
|
|
|
|
}
|
|
|
|
|
2019-07-30 04:27:25 -05:00
|
|
|
message ExportFlowInfoRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
repeated int32 timeSteps = 2;
|
|
|
|
repeated string injectors = 3;
|
|
|
|
repeated string producers = 4;
|
|
|
|
string fileName = 5;
|
|
|
|
double minimumCommunication = 6;
|
|
|
|
double aquiferCellThreshold = 7;
|
|
|
|
}
|
|
|
|
|
2019-08-23 04:25:00 -05:00
|
|
|
message CreateViewRequest
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CloneViewRequest
|
|
|
|
{
|
|
|
|
int32 viewId = 1;
|
|
|
|
}
|
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
/* CommandParams handles both command name and parameters in one.
|
|
|
|
* The message type and content is used as parameters and
|
|
|
|
* the name of the variable is used to find the command name. */
|
2019-05-20 06:21:02 -05:00
|
|
|
message CommandParams
|
|
|
|
{
|
2019-05-24 04:13:12 -05:00
|
|
|
/* Since only one of these oneof-parameters can be set, we know which
|
|
|
|
* command to run from the name of parameter. I.e. if openProject is set
|
|
|
|
* we will run the RicfOpenProject command with the parameters set in
|
|
|
|
* the FilePathRequest message. */
|
2019-05-20 06:21:02 -05:00
|
|
|
oneof params
|
|
|
|
{
|
2019-05-24 01:58:04 -05:00
|
|
|
FilePathRequest openProject = 1;
|
|
|
|
Empty closeProject = 2;
|
|
|
|
FilePathRequest setStartDir = 3;
|
|
|
|
FilePathRequest loadCase = 4;
|
|
|
|
ReplaceCaseRequest replaceCase = 5;
|
|
|
|
ReplaceSourceCasesRequest replaceSourceCases = 6;
|
|
|
|
ExportMultiCaseRequest exportMultiCaseSnapshots = 7;
|
|
|
|
ExportSnapshotsRequest exportSnapshots = 8;
|
|
|
|
ExportPropertyRequest exportProperty = 9;
|
|
|
|
ExportPropertyInViewsRequest exportPropertyInViews = 10;
|
|
|
|
ExportWellPathCompRequest exportWellPathCompletions = 11;
|
2019-05-24 04:13:12 -05:00
|
|
|
ExportSimWellPathFracRequest exportSimWellFractureCompletions = 12;
|
|
|
|
ExportMswRequest exportMsw = 13;
|
|
|
|
ExportWellPathRequest exportWellPaths = 14;
|
|
|
|
ExportVisibleCellsRequest exportVisibleCells = 15;
|
|
|
|
SetExportFolderRequest setExportFolder = 16;
|
|
|
|
RunOctaveScriptRequest runOctaveScript = 17;
|
2019-05-24 01:58:04 -05:00
|
|
|
SetMainWindowSizeParams setMainWindowSize = 18;
|
2019-05-24 04:13:12 -05:00
|
|
|
ComputeCaseGroupStatRequest computeCaseGroupStatistics = 19;
|
2019-05-24 01:58:04 -05:00
|
|
|
SetTimeStepParams setTimeStep = 20;
|
2019-05-24 04:13:12 -05:00
|
|
|
ScaleFractureTemplateRequest scaleFractureTemplate = 21;
|
|
|
|
SetFracContainmentRequest setFractureContainment = 22;
|
|
|
|
CreateMultipleFracRequest createMultipleFractures = 23;
|
|
|
|
CreateLgrForCompRequest createLgrForCompletions = 24;
|
|
|
|
CreateSatPressPlotRequest createSaturationPressurePlots = 25;
|
2019-07-16 10:12:08 -05:00
|
|
|
ReplaceCaseRequests replaceMultipleCases = 26;
|
2019-07-18 03:53:59 -05:00
|
|
|
CreateGridCaseGroupRequest createGridCaseGroup = 27;
|
2019-07-19 06:54:15 -05:00
|
|
|
CreateStatisticsCaseRequest createStatisticsCase = 28;
|
|
|
|
ExportFlowInfoRequest exportFlowCharacteristics = 29;
|
2019-08-23 04:25:00 -05:00
|
|
|
CreateViewRequest createView = 30;
|
|
|
|
CloneViewRequest cloneView = 31;
|
2019-05-20 06:21:02 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-18 03:53:59 -05:00
|
|
|
message GridCaseGroupResult
|
|
|
|
{
|
|
|
|
int32 groupId = 1;
|
|
|
|
string groupName = 2;
|
|
|
|
}
|
|
|
|
|
2019-07-19 06:54:15 -05:00
|
|
|
message CreateStatisticsCaseResult
|
|
|
|
{
|
|
|
|
int32 caseId = 1;
|
|
|
|
}
|
|
|
|
|
2019-08-23 04:25:00 -05:00
|
|
|
message CreateViewResult
|
|
|
|
{
|
|
|
|
int32 viewId = 1;
|
|
|
|
}
|
|
|
|
|
2019-05-24 04:13:12 -05:00
|
|
|
/* Command reply handles the return values for the generic command
|
|
|
|
* The name of the variable is used to map to the cafPdmObject classKeyword */
|
2019-05-23 09:46:50 -05:00
|
|
|
message CommandReply
|
|
|
|
{
|
|
|
|
oneof result
|
|
|
|
{
|
2019-07-19 06:54:15 -05:00
|
|
|
Empty emptyResult = 1;
|
|
|
|
CaseRequest loadCaseResult = 2;
|
|
|
|
GridCaseGroupResult createGridCaseGroupResult = 3;
|
|
|
|
CreateStatisticsCaseResult createStatisticsCaseResult = 4;
|
2019-08-23 04:25:00 -05:00
|
|
|
CreateViewResult createViewResult = 5;
|
2019-05-23 09:46:50 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|