mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4550 Add python method to get simulation wells with status and cells info.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "PdmObject.proto";
|
||||
import "Definitions.proto";
|
||||
|
||||
package rips;
|
||||
|
||||
@@ -60,12 +61,6 @@ message GridCount
|
||||
int32 count = 1;
|
||||
}
|
||||
|
||||
message Vec3i {
|
||||
int32 i = 1;
|
||||
int32 j = 2;
|
||||
int32 k = 3;
|
||||
}
|
||||
|
||||
message CellCount
|
||||
{
|
||||
int32 active_cell_count = 1;
|
||||
|
||||
@@ -9,4 +9,11 @@ message Empty
|
||||
message ClientToServerStreamReply
|
||||
{
|
||||
int64 accepted_value_count = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message Vec3i {
|
||||
int32 i = 1;
|
||||
int32 j = 2;
|
||||
int32 k = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ syntax = "proto3";
|
||||
|
||||
package rips;
|
||||
|
||||
import "Definitions.proto";
|
||||
import "Case.proto";
|
||||
|
||||
service Grid
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "Definitions.proto";
|
||||
|
||||
package rips;
|
||||
|
||||
service SimulationWell
|
||||
{
|
||||
rpc GetSimulationWellStatus(SimulationWellRequest) returns (SimulationWellStatus) {}
|
||||
rpc GetSimulationWellCells(SimulationWellRequest) returns (SimulationWellCellInfoArray) {}
|
||||
}
|
||||
|
||||
message SimulationWellRequest {
|
||||
int32 case_id = 1;
|
||||
string well_name = 2;
|
||||
int32 timestep = 3;
|
||||
}
|
||||
|
||||
message SimulationWellStatus
|
||||
{
|
||||
string well_type = 1;
|
||||
bool is_open = 2;
|
||||
}
|
||||
|
||||
message SimulationWellCellInfo {
|
||||
Vec3i ijk = 1;
|
||||
int32 grid_index = 2;
|
||||
bool is_open = 3;
|
||||
int32 branch_id = 4;
|
||||
int32 segment_id = 5;
|
||||
}
|
||||
|
||||
message SimulationWellCellInfoArray
|
||||
{
|
||||
repeated SimulationWellCellInfo data = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user