@@ -7,13 +7,20 @@ package rips;
77service WellPath {
88 rpc GetCompletionData (SimulatorTableRequest )
99 returns (SimulatorTableData ) {}
10+ rpc GetCompletionDataUnified (SimulatorTableUnifiedRequest )
11+ returns (SimulatorTableData ) {}
1012}
1113
1214message SimulatorTableRequest {
1315 string wellpath_name = 1 ;
1416 int32 case_id = 2 ;
1517}
1618
19+ message SimulatorTableUnifiedRequest {
20+ repeated string wellpath_names = 1 ;
21+ int32 case_id = 2 ;
22+ }
23+
1724message SimulatorCompdatEntry {
1825 string well_name = 1 ;
1926 int32 grid_i = 2 ;
@@ -49,8 +56,87 @@ message SimulatorWelspecsEntry {
4956 optional int32 fip_region = 13 ;
5057}
5158
59+ message SimulatorWelsegsHeaderEntry {
60+ string well_name = 1 ;
61+ double top_depth = 2 ;
62+ double top_length = 3 ;
63+ optional double wellbore_volume = 4 ;
64+ string info_type = 5 ;
65+ optional string pressure_omponents = 6 ;
66+ optional string flow_model = 7 ;
67+ }
68+
69+ message SimulatorWelsegsRowEntry {
70+ int32 segment_1 = 1 ;
71+ int32 segment_2 = 2 ;
72+ int32 branch = 3 ;
73+ int32 join_segment = 4 ;
74+ double length = 5 ;
75+ double depth = 6 ;
76+ optional double diameter = 7 ;
77+ optional double roughness = 8 ;
78+ optional string description = 9 ;
79+ }
80+
81+ message SimulatorWelsegsEntry {
82+ SimulatorWelsegsHeaderEntry header = 1 ;
83+ repeated SimulatorWelsegsRowEntry row = 2 ;
84+ }
85+
86+ message SimulatorCompsegsEntry {
87+ int32 i = 1 ;
88+ int32 j = 2 ;
89+ int32 k = 3 ;
90+ int32 branch = 4 ;
91+ double distance_start = 5 ;
92+ double distance_end = 6 ;
93+ optional string grid_name = 7 ;
94+ }
95+
96+ message SimulatorWsegvalvEntry {
97+ string well_name = 1 ;
98+ int32 segment_number = 2 ;
99+ double cv = 3 ;
100+ double area = 4 ;
101+ optional double extra_length = 5 ;
102+ optional double pipe_d = 6 ;
103+ optional double roughness = 7 ;
104+ optional double pipe_a = 8 ;
105+ optional string status = 9 ;
106+ optional double max_a = 10 ;
107+ }
108+
109+ message SimulatorWsegaicdEntry {
110+ string well_name = 1 ;
111+ int32 segment_1 = 2 ;
112+ int32 segment_2 = 3 ;
113+ double strength = 4 ;
114+ optional double length = 5 ;
115+ optional double density_cali = 6 ;
116+ optional double viscosity_cali = 7 ;
117+ optional double critical_value = 8 ;
118+ optional double width_trans = 9 ;
119+ optional double max_visc_ratio = 10 ;
120+ optional int32 method_scaling_factor = 11 ;
121+ double max_abs_rate = 12 ;
122+ double flow_rate_exponent = 13 ;
123+ double visc_exponent = 14 ;
124+ optional string status = 15 ;
125+ optional double oil_flow_fraction = 16 ;
126+ optional double water_flow_fraction = 17 ;
127+ optional double gas_flow_fraction = 18 ;
128+ optional double oil_visc_fraction = 19 ;
129+ optional double water_visc_fraction = 20 ;
130+ optional double gas_visc_fraction = 21 ;
131+ optional string description = 22 ;
132+ }
133+
52134message SimulatorTableData {
53135 repeated SimulatorCompdatEntry compdat = 1 ;
54136 repeated SimulatorWelspecsEntry welspecs = 2 ;
137+ repeated SimulatorWelsegsEntry welsegs = 3 ;
138+ repeated SimulatorCompsegsEntry compsegs = 4 ;
139+ repeated SimulatorWsegvalvEntry wsegvalv = 5 ;
140+ repeated SimulatorWsegaicdEntry wsegaicd = 6 ;
55141}
56142
0 commit comments