mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Equivalent to GetDynamicNNCValues and GetStaticNNCValues in Octave. Also adds support for generated values which is currently not in Octave.
58 lines
1.0 KiB
Protocol Buffer
58 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "Case.proto";
|
|
import "Definitions.proto";
|
|
|
|
package rips;
|
|
|
|
service NNCProperties
|
|
{
|
|
rpc GetAvailableNNCProperties(CaseRequest) returns (AvailableNNCProperties) {}
|
|
rpc GetNNCConnections(CaseRequest) returns (stream NNCConnections) {}
|
|
rpc GetNNCValues(NNCValuesRequest) returns (stream NNCValues) {}
|
|
}
|
|
|
|
enum NNCPropertyType
|
|
{
|
|
NNC_DYNAMIC = 0;
|
|
NNC_STATIC = 1;
|
|
NNC_GENERATED = 2;
|
|
}
|
|
|
|
message AvailableNNCProperty
|
|
{
|
|
string name = 1;
|
|
NNCPropertyType property_type = 2;
|
|
}
|
|
|
|
message AvailableNNCProperties
|
|
{
|
|
repeated AvailableNNCProperty properties = 1;
|
|
}
|
|
|
|
message NNCConnection
|
|
{
|
|
int32 cell_grid_index1 = 1;
|
|
int32 cell_grid_index2 = 2;
|
|
Vec3i cell1 = 3;
|
|
Vec3i cell2 = 4;
|
|
}
|
|
|
|
message NNCConnections
|
|
{
|
|
repeated NNCConnection connections = 1;
|
|
}
|
|
|
|
message NNCValuesRequest
|
|
{
|
|
int32 case_id = 1;
|
|
string property_name = 2;
|
|
NNCPropertyType property_type = 3;
|
|
int32 time_step = 4;
|
|
}
|
|
|
|
message NNCValues
|
|
{
|
|
repeated double values = 1;
|
|
}
|