ansys-api-discovery 0.6.13__py3-none-any.whl → 0.6.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ansys-api-discovery might be problematic. Click here for more details.
- ansys/api/discovery/VERSION +1 -1
- ansys/api/discovery/v0/assignments/fan.proto +2 -1
- ansys/api/discovery/v0/assignments/fan_pb2.py +22 -22
- ansys/api/discovery/v0/assignments/fan_pb2.pyi +9 -4
- ansys/api/discovery/v0/conditions/current.proto +43 -0
- ansys/api/discovery/v0/conditions/current_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/current_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/current_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/current_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/localfidelity.proto +43 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/porous.proto +12 -16
- ansys/api/discovery/v0/conditions/porous_pb2.py +19 -21
- ansys/api/discovery/v0/conditions/porous_pb2.pyi +19 -38
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.py +63 -30
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.pyi +22 -12
- ansys/api/discovery/v0/conditions/rotatingfluidzone.proto +1 -1
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.py +6 -6
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.pyi +5 -5
- ansys/api/discovery/v0/conditions/symmetry.proto +35 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2.pyi +72 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2_grpc.py +101 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2_grpc.pyi +38 -0
- ansys/api/discovery/v0/conditions/voltage.proto +43 -0
- ansys/api/discovery/v0/conditions/voltage_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/voltage_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/voltage_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/voltage_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/connections/contact.proto +4 -4
- ansys/api/discovery/v0/connections/contact_pb2.py +8 -8
- ansys/api/discovery/v0/connections/contact_pb2.pyi +8 -1
- ansys/api/discovery/v0/connections/contact_pb2_grpc.py +3 -36
- ansys/api/discovery/v0/connections/contact_pb2_grpc.pyi +2 -12
- ansys/api/discovery/v0/connections/contactgroup.proto +4 -3
- ansys/api/discovery/v0/connections/contactgroup_pb2.py +8 -8
- ansys/api/discovery/v0/connections/contactgroup_pb2.pyi +8 -1
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.py +3 -3
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.pyi +2 -2
- ansys/api/discovery/v0/connections/fluidinterface.proto +17 -15
- ansys/api/discovery/v0/connections/fluidinterface_pb2.py +15 -15
- ansys/api/discovery/v0/connections/fluidinterface_pb2.pyi +23 -17
- ansys/api/discovery/v0/connections/fluidinterface_pb2_grpc.py +72 -72
- ansys/api/discovery/v0/connections/fluidinterface_pb2_grpc.pyi +24 -24
- ansys/api/discovery/v0/discoverymodels.proto +15 -1
- ansys/api/discovery/v0/discoverymodels_pb2.py +52 -48
- ansys/api/discovery/v0/discoverymodels_pb2.pyi +45 -5
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/METADATA +3 -3
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/RECORD +56 -36
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/WHEEL +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.15.dist-info}/top_level.txt +0 -0
|
@@ -15,14 +15,19 @@ class PorousStub(object):
|
|
|
15
15
|
Args:
|
|
16
16
|
channel: A grpc.Channel.
|
|
17
17
|
"""
|
|
18
|
-
self.
|
|
19
|
-
'/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
20
|
-
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
18
|
+
self.CreatePorousIsotropic = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousIsotropic',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
21
21
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
22
22
|
)
|
|
23
|
-
self.
|
|
24
|
-
'/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
25
|
-
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
23
|
+
self.CreatePorousBidirectional = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousBidirectional',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.CreatePorousOrthotropic = channel.unary_unary(
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousOrthotropic',
|
|
30
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
26
31
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
27
32
|
)
|
|
28
33
|
self.ChangePorousSpecification = channel.unary_unary(
|
|
@@ -35,9 +40,9 @@ class PorousStub(object):
|
|
|
35
40
|
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
36
41
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
37
42
|
)
|
|
38
|
-
self.
|
|
39
|
-
'/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
40
|
-
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.
|
|
43
|
+
self.ChangePorousStreamwiseFlowDirectionReference = channel.unary_unary(
|
|
44
|
+
'/ansys.api.discovery.v0.conditions.porous.Porous/ChangePorousStreamwiseFlowDirectionReference',
|
|
45
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.SerializeToString,
|
|
41
46
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
42
47
|
)
|
|
43
48
|
self.ChangePorousViscousStreamwiseMagnitude = channel.unary_unary(
|
|
@@ -100,14 +105,20 @@ class PorousStub(object):
|
|
|
100
105
|
class PorousServicer(object):
|
|
101
106
|
"""Missing associated documentation comment in .proto file."""
|
|
102
107
|
|
|
103
|
-
def
|
|
108
|
+
def CreatePorousIsotropic(self, request, context):
|
|
104
109
|
"""wall creation methods
|
|
105
110
|
"""
|
|
106
111
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
107
112
|
context.set_details('Method not implemented!')
|
|
108
113
|
raise NotImplementedError('Method not implemented!')
|
|
109
114
|
|
|
110
|
-
def
|
|
115
|
+
def CreatePorousBidirectional(self, request, context):
|
|
116
|
+
"""Missing associated documentation comment in .proto file."""
|
|
117
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
118
|
+
context.set_details('Method not implemented!')
|
|
119
|
+
raise NotImplementedError('Method not implemented!')
|
|
120
|
+
|
|
121
|
+
def CreatePorousOrthotropic(self, request, context):
|
|
111
122
|
"""Missing associated documentation comment in .proto file."""
|
|
112
123
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
113
124
|
context.set_details('Method not implemented!')
|
|
@@ -126,7 +137,7 @@ class PorousServicer(object):
|
|
|
126
137
|
context.set_details('Method not implemented!')
|
|
127
138
|
raise NotImplementedError('Method not implemented!')
|
|
128
139
|
|
|
129
|
-
def
|
|
140
|
+
def ChangePorousStreamwiseFlowDirectionReference(self, request, context):
|
|
130
141
|
"""Missing associated documentation comment in .proto file."""
|
|
131
142
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
143
|
context.set_details('Method not implemented!')
|
|
@@ -204,14 +215,19 @@ class PorousServicer(object):
|
|
|
204
215
|
|
|
205
216
|
def add_PorousServicer_to_server(servicer, server):
|
|
206
217
|
rpc_method_handlers = {
|
|
207
|
-
'
|
|
208
|
-
servicer.
|
|
209
|
-
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
218
|
+
'CreatePorousIsotropic': grpc.unary_unary_rpc_method_handler(
|
|
219
|
+
servicer.CreatePorousIsotropic,
|
|
220
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.FromString,
|
|
221
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.SerializeToString,
|
|
222
|
+
),
|
|
223
|
+
'CreatePorousBidirectional': grpc.unary_unary_rpc_method_handler(
|
|
224
|
+
servicer.CreatePorousBidirectional,
|
|
225
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.FromString,
|
|
210
226
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.SerializeToString,
|
|
211
227
|
),
|
|
212
|
-
'
|
|
213
|
-
servicer.
|
|
214
|
-
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
228
|
+
'CreatePorousOrthotropic': grpc.unary_unary_rpc_method_handler(
|
|
229
|
+
servicer.CreatePorousOrthotropic,
|
|
230
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.FromString,
|
|
215
231
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.SerializeToString,
|
|
216
232
|
),
|
|
217
233
|
'ChangePorousSpecification': grpc.unary_unary_rpc_method_handler(
|
|
@@ -224,9 +240,9 @@ def add_PorousServicer_to_server(servicer, server):
|
|
|
224
240
|
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
225
241
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
226
242
|
),
|
|
227
|
-
'
|
|
228
|
-
servicer.
|
|
229
|
-
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.
|
|
243
|
+
'ChangePorousStreamwiseFlowDirectionReference': grpc.unary_unary_rpc_method_handler(
|
|
244
|
+
servicer.ChangePorousStreamwiseFlowDirectionReference,
|
|
245
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.FromString,
|
|
230
246
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
231
247
|
),
|
|
232
248
|
'ChangePorousViscousStreamwiseMagnitude': grpc.unary_unary_rpc_method_handler(
|
|
@@ -295,7 +311,24 @@ class Porous(object):
|
|
|
295
311
|
"""Missing associated documentation comment in .proto file."""
|
|
296
312
|
|
|
297
313
|
@staticmethod
|
|
298
|
-
def
|
|
314
|
+
def CreatePorousIsotropic(request,
|
|
315
|
+
target,
|
|
316
|
+
options=(),
|
|
317
|
+
channel_credentials=None,
|
|
318
|
+
call_credentials=None,
|
|
319
|
+
insecure=False,
|
|
320
|
+
compression=None,
|
|
321
|
+
wait_for_ready=None,
|
|
322
|
+
timeout=None,
|
|
323
|
+
metadata=None):
|
|
324
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousIsotropic',
|
|
325
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
326
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
327
|
+
options, channel_credentials,
|
|
328
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
329
|
+
|
|
330
|
+
@staticmethod
|
|
331
|
+
def CreatePorousBidirectional(request,
|
|
299
332
|
target,
|
|
300
333
|
options=(),
|
|
301
334
|
channel_credentials=None,
|
|
@@ -305,14 +338,14 @@ class Porous(object):
|
|
|
305
338
|
wait_for_ready=None,
|
|
306
339
|
timeout=None,
|
|
307
340
|
metadata=None):
|
|
308
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
309
|
-
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
341
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousBidirectional',
|
|
342
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
310
343
|
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
311
344
|
options, channel_credentials,
|
|
312
345
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
313
346
|
|
|
314
347
|
@staticmethod
|
|
315
|
-
def
|
|
348
|
+
def CreatePorousOrthotropic(request,
|
|
316
349
|
target,
|
|
317
350
|
options=(),
|
|
318
351
|
channel_credentials=None,
|
|
@@ -322,8 +355,8 @@ class Porous(object):
|
|
|
322
355
|
wait_for_ready=None,
|
|
323
356
|
timeout=None,
|
|
324
357
|
metadata=None):
|
|
325
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
326
|
-
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.
|
|
358
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/CreatePorousOrthotropic',
|
|
359
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationRequest.SerializeToString,
|
|
327
360
|
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_porous__pb2.PorousCreationResponse.FromString,
|
|
328
361
|
options, channel_credentials,
|
|
329
362
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -363,7 +396,7 @@ class Porous(object):
|
|
|
363
396
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
364
397
|
|
|
365
398
|
@staticmethod
|
|
366
|
-
def
|
|
399
|
+
def ChangePorousStreamwiseFlowDirectionReference(request,
|
|
367
400
|
target,
|
|
368
401
|
options=(),
|
|
369
402
|
channel_credentials=None,
|
|
@@ -373,8 +406,8 @@ class Porous(object):
|
|
|
373
406
|
wait_for_ready=None,
|
|
374
407
|
timeout=None,
|
|
375
408
|
metadata=None):
|
|
376
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/
|
|
377
|
-
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.
|
|
409
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.porous.Porous/ChangePorousStreamwiseFlowDirectionReference',
|
|
410
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.SerializeToString,
|
|
378
411
|
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
379
412
|
options, channel_credentials,
|
|
380
413
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -9,13 +9,17 @@ import grpc
|
|
|
9
9
|
|
|
10
10
|
class PorousStub:
|
|
11
11
|
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
-
|
|
13
|
-
ansys.api.discovery.v0.conditions.porous_pb2.
|
|
12
|
+
CreatePorousIsotropic: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
14
14
|
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse] = ...
|
|
15
15
|
"""wall creation methods"""
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
ansys.api.discovery.v0.conditions.porous_pb2.
|
|
17
|
+
CreatePorousBidirectional: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
19
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse] = ...
|
|
20
|
+
|
|
21
|
+
CreatePorousOrthotropic: grpc.UnaryUnaryMultiCallable[
|
|
22
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
19
23
|
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse] = ...
|
|
20
24
|
|
|
21
25
|
ChangePorousSpecification: grpc.UnaryUnaryMultiCallable[
|
|
@@ -27,8 +31,8 @@ class PorousStub:
|
|
|
27
31
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
28
32
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
ansys.api.discovery.v0.discoverymodels_pb2.
|
|
34
|
+
ChangePorousStreamwiseFlowDirectionReference: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
32
36
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
33
37
|
|
|
34
38
|
ChangePorousViscousStreamwiseMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
@@ -82,16 +86,22 @@ class PorousStub:
|
|
|
82
86
|
|
|
83
87
|
class PorousServicer(metaclass=abc.ABCMeta):
|
|
84
88
|
@abc.abstractmethod
|
|
85
|
-
def
|
|
86
|
-
request: ansys.api.discovery.v0.conditions.porous_pb2.
|
|
89
|
+
def CreatePorousIsotropic(self,
|
|
90
|
+
request: ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
87
91
|
context: grpc.ServicerContext,
|
|
88
92
|
) -> ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse:
|
|
89
93
|
"""wall creation methods"""
|
|
90
94
|
pass
|
|
91
95
|
|
|
92
96
|
@abc.abstractmethod
|
|
93
|
-
def
|
|
94
|
-
request: ansys.api.discovery.v0.conditions.porous_pb2.
|
|
97
|
+
def CreatePorousBidirectional(self,
|
|
98
|
+
request: ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
99
|
+
context: grpc.ServicerContext,
|
|
100
|
+
) -> ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse: ...
|
|
101
|
+
|
|
102
|
+
@abc.abstractmethod
|
|
103
|
+
def CreatePorousOrthotropic(self,
|
|
104
|
+
request: ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
95
105
|
context: grpc.ServicerContext,
|
|
96
106
|
) -> ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse: ...
|
|
97
107
|
|
|
@@ -110,8 +120,8 @@ class PorousServicer(metaclass=abc.ABCMeta):
|
|
|
110
120
|
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
111
121
|
|
|
112
122
|
@abc.abstractmethod
|
|
113
|
-
def
|
|
114
|
-
request: ansys.api.discovery.v0.discoverymodels_pb2.
|
|
123
|
+
def ChangePorousStreamwiseFlowDirectionReference(self,
|
|
124
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
115
125
|
context: grpc.ServicerContext,
|
|
116
126
|
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
117
127
|
|
|
@@ -15,7 +15,7 @@ from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_d
|
|
|
15
15
|
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9ansys/api/discovery/v0/conditions/rotatingfluidzone.proto\x12\x33\x61nsys.api.discovery.v0.conditions.rotatingfluidzone\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xdf\x01\n RotatingFluidZoneCreationRequest\x12\x41\n\rcreation_data\x18\x02 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12x\n\x1erotating_fluid_zone_properties\x18\x04 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneProperties\"\xd3\x01\n!RotatingFluidZoneCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12h\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneDefinition\"
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9ansys/api/discovery/v0/conditions/rotatingfluidzone.proto\x12\x33\x61nsys.api.discovery.v0.conditions.rotatingfluidzone\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xdf\x01\n RotatingFluidZoneCreationRequest\x12\x41\n\rcreation_data\x18\x02 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12x\n\x1erotating_fluid_zone_properties\x18\x04 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneProperties\"\xd3\x01\n!RotatingFluidZoneCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12h\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneDefinition\"\\\n\x1bRotatingFluidZoneProperties\x12=\n\x13rotational_velocity\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\xc2\x02\n\x1bRotatingFluidZoneDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12x\n\x1erotating_fluid_zone_properties\x18\x06 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneProperties2\xd8\x03\n\x11RotatingFluidZone\x12\xc8\x01\n\x17\x43reateRotatingFluidZone\x12U.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneCreationRequest\x1aV.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneCreationResponse\x12x\n\x1f\x43hangeRotatingFluidZoneLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12~\n%ChangeWallRotationalVelocityMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
21
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.rotatingfluidzone_pb2', globals())
|
|
@@ -28,9 +28,9 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
28
28
|
_ROTATINGFLUIDZONECREATIONRESPONSE._serialized_start=421
|
|
29
29
|
_ROTATINGFLUIDZONECREATIONRESPONSE._serialized_end=632
|
|
30
30
|
_ROTATINGFLUIDZONEPROPERTIES._serialized_start=634
|
|
31
|
-
_ROTATINGFLUIDZONEPROPERTIES._serialized_end=
|
|
32
|
-
_ROTATINGFLUIDZONEDEFINITION._serialized_start=
|
|
33
|
-
_ROTATINGFLUIDZONEDEFINITION._serialized_end=
|
|
34
|
-
_ROTATINGFLUIDZONE._serialized_start=
|
|
35
|
-
_ROTATINGFLUIDZONE._serialized_end=
|
|
31
|
+
_ROTATINGFLUIDZONEPROPERTIES._serialized_end=726
|
|
32
|
+
_ROTATINGFLUIDZONEDEFINITION._serialized_start=729
|
|
33
|
+
_ROTATINGFLUIDZONEDEFINITION._serialized_end=1051
|
|
34
|
+
_ROTATINGFLUIDZONE._serialized_start=1054
|
|
35
|
+
_ROTATINGFLUIDZONE._serialized_end=1526
|
|
36
36
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -56,15 +56,15 @@ class RotatingFluidZoneProperties(google.protobuf.message.Message):
|
|
|
56
56
|
|
|
57
57
|
"""
|
|
58
58
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
59
|
-
|
|
59
|
+
ROTATIONAL_VELOCITY_FIELD_NUMBER: builtins.int
|
|
60
60
|
@property
|
|
61
|
-
def
|
|
61
|
+
def rotational_velocity(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
62
62
|
def __init__(self,
|
|
63
63
|
*,
|
|
64
|
-
|
|
64
|
+
rotational_velocity : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
65
65
|
) -> None: ...
|
|
66
|
-
def HasField(self, field_name: typing_extensions.Literal["
|
|
67
|
-
def ClearField(self, field_name: typing_extensions.Literal["
|
|
66
|
+
def HasField(self, field_name: typing_extensions.Literal["rotational_velocity",b"rotational_velocity"]) -> builtins.bool: ...
|
|
67
|
+
def ClearField(self, field_name: typing_extensions.Literal["rotational_velocity",b"rotational_velocity"]) -> None: ...
|
|
68
68
|
global___RotatingFluidZoneProperties = RotatingFluidZoneProperties
|
|
69
69
|
|
|
70
70
|
class RotatingFluidZoneDefinition(google.protobuf.message.Message):
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.symmetry;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service Symmetry
|
|
11
|
+
{
|
|
12
|
+
//Symmetry condition methods
|
|
13
|
+
rpc CreateSymmetry(SymmetryCreationRequest) returns (SymmetryCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeSymmetryLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Symmetry
|
|
19
|
+
message SymmetryCreationRequest{
|
|
20
|
+
ScopedCreationData creation_data = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message SymmetryCreationResponse{
|
|
24
|
+
CreationResponse condition_response = 1;
|
|
25
|
+
SymmetryDefinition condition_data = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
message SymmetryDefinition {
|
|
30
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
31
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
32
|
+
string label = 3;
|
|
33
|
+
repeated string locations = 4;
|
|
34
|
+
bool suppressed = 5;
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/symmetry.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0ansys/api/discovery/v0/conditions/symmetry.proto\x12*ansys.api.discovery.v0.conditions.symmetry\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\\\n\x17SymmetryCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\"\xb8\x01\n\x18SymmetryCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12V\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32>.ansys.api.discovery.v0.conditions.symmetry.SymmetryDefinition\"\xbf\x01\n\x12SymmetryDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x32\x99\x02\n\x08Symmetry\x12\x9b\x01\n\x0e\x43reateSymmetry\x12\x43.ansys.api.discovery.v0.conditions.symmetry.SymmetryCreationRequest\x1a\x44.ansys.api.discovery.v0.conditions.symmetry.SymmetryCreationResponse\x12o\n\x16\x43hangeSymmetryLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.symmetry_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002!Ansys.Api.Discovery.V0.Conditions'
|
|
26
|
+
_SYMMETRYCREATIONREQUEST._serialized_start=176
|
|
27
|
+
_SYMMETRYCREATIONREQUEST._serialized_end=268
|
|
28
|
+
_SYMMETRYCREATIONRESPONSE._serialized_start=271
|
|
29
|
+
_SYMMETRYCREATIONRESPONSE._serialized_end=455
|
|
30
|
+
_SYMMETRYDEFINITION._serialized_start=458
|
|
31
|
+
_SYMMETRYDEFINITION._serialized_end=649
|
|
32
|
+
_SYMMETRY._serialized_start=652
|
|
33
|
+
_SYMMETRY._serialized_end=933
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
6
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
7
|
+
import builtins
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
15
|
+
|
|
16
|
+
class SymmetryCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Symmetry"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
@property
|
|
21
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
22
|
+
def __init__(self,
|
|
23
|
+
*,
|
|
24
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
25
|
+
) -> None: ...
|
|
26
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data"]) -> builtins.bool: ...
|
|
27
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data"]) -> None: ...
|
|
28
|
+
global___SymmetryCreationRequest = SymmetryCreationRequest
|
|
29
|
+
|
|
30
|
+
class SymmetryCreationResponse(google.protobuf.message.Message):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
32
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
33
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
34
|
+
@property
|
|
35
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
36
|
+
@property
|
|
37
|
+
def condition_data(self) -> global___SymmetryDefinition: ...
|
|
38
|
+
def __init__(self,
|
|
39
|
+
*,
|
|
40
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
41
|
+
condition_data : typing.Optional[global___SymmetryDefinition] = ...,
|
|
42
|
+
) -> None: ...
|
|
43
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
44
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
45
|
+
global___SymmetryCreationResponse = SymmetryCreationResponse
|
|
46
|
+
|
|
47
|
+
class SymmetryDefinition(google.protobuf.message.Message):
|
|
48
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
49
|
+
ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
51
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
52
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
53
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
54
|
+
@property
|
|
55
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
56
|
+
@property
|
|
57
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
58
|
+
label: typing.Text = ...
|
|
59
|
+
@property
|
|
60
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
61
|
+
suppressed: builtins.bool = ...
|
|
62
|
+
def __init__(self,
|
|
63
|
+
*,
|
|
64
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
65
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
66
|
+
label : typing.Text = ...,
|
|
67
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
68
|
+
suppressed : builtins.bool = ...,
|
|
69
|
+
) -> None: ...
|
|
70
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
71
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
72
|
+
global___SymmetryDefinition = SymmetryDefinition
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from ansys.api.discovery.v0.conditions import symmetry_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2
|
|
6
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SymmetryStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.CreateSymmetry = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.symmetry.Symmetry/CreateSymmetry',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeSymmetryLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.symmetry.Symmetry/ChangeSymmetryLocation',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class SymmetryServicer(object):
|
|
31
|
+
"""Missing associated documentation comment in .proto file."""
|
|
32
|
+
|
|
33
|
+
def CreateSymmetry(self, request, context):
|
|
34
|
+
"""Symmetry condition methods
|
|
35
|
+
"""
|
|
36
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
37
|
+
context.set_details('Method not implemented!')
|
|
38
|
+
raise NotImplementedError('Method not implemented!')
|
|
39
|
+
|
|
40
|
+
def ChangeSymmetryLocation(self, request, context):
|
|
41
|
+
"""Missing associated documentation comment in .proto file."""
|
|
42
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
43
|
+
context.set_details('Method not implemented!')
|
|
44
|
+
raise NotImplementedError('Method not implemented!')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def add_SymmetryServicer_to_server(servicer, server):
|
|
48
|
+
rpc_method_handlers = {
|
|
49
|
+
'CreateSymmetry': grpc.unary_unary_rpc_method_handler(
|
|
50
|
+
servicer.CreateSymmetry,
|
|
51
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.FromString,
|
|
52
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.SerializeToString,
|
|
53
|
+
),
|
|
54
|
+
'ChangeSymmetryLocation': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.ChangeSymmetryLocation,
|
|
56
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
57
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
}
|
|
60
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
61
|
+
'ansys.api.discovery.v0.conditions.symmetry.Symmetry', rpc_method_handlers)
|
|
62
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# This class is part of an EXPERIMENTAL API.
|
|
66
|
+
class Symmetry(object):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def CreateSymmetry(request,
|
|
71
|
+
target,
|
|
72
|
+
options=(),
|
|
73
|
+
channel_credentials=None,
|
|
74
|
+
call_credentials=None,
|
|
75
|
+
insecure=False,
|
|
76
|
+
compression=None,
|
|
77
|
+
wait_for_ready=None,
|
|
78
|
+
timeout=None,
|
|
79
|
+
metadata=None):
|
|
80
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.symmetry.Symmetry/CreateSymmetry',
|
|
81
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.SerializeToString,
|
|
82
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.FromString,
|
|
83
|
+
options, channel_credentials,
|
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
85
|
+
|
|
86
|
+
@staticmethod
|
|
87
|
+
def ChangeSymmetryLocation(request,
|
|
88
|
+
target,
|
|
89
|
+
options=(),
|
|
90
|
+
channel_credentials=None,
|
|
91
|
+
call_credentials=None,
|
|
92
|
+
insecure=False,
|
|
93
|
+
compression=None,
|
|
94
|
+
wait_for_ready=None,
|
|
95
|
+
timeout=None,
|
|
96
|
+
metadata=None):
|
|
97
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.symmetry.Symmetry/ChangeSymmetryLocation',
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
99
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
100
|
+
options, channel_credentials,
|
|
101
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.conditions.symmetry_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class SymmetryStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateSymmetry: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationResponse] = ...
|
|
15
|
+
"""Symmetry condition methods"""
|
|
16
|
+
|
|
17
|
+
ChangeSymmetryLocation: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class SymmetryServicer(metaclass=abc.ABCMeta):
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
def CreateSymmetry(self,
|
|
25
|
+
request: ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationRequest,
|
|
26
|
+
context: grpc.ServicerContext,
|
|
27
|
+
) -> ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationResponse:
|
|
28
|
+
"""Symmetry condition methods"""
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
@abc.abstractmethod
|
|
32
|
+
def ChangeSymmetryLocation(self,
|
|
33
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
34
|
+
context: grpc.ServicerContext,
|
|
35
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def add_SymmetryServicer_to_server(servicer: SymmetryServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.voltage;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service Voltage
|
|
11
|
+
{
|
|
12
|
+
//Voltage condition methods
|
|
13
|
+
rpc CreateVoltage(VoltageCreationRequest) returns (VoltageCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeVoltageLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangeVoltageMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Voltage
|
|
21
|
+
message VoltageCreationRequest{
|
|
22
|
+
ScopedCreationData creation_data = 1;
|
|
23
|
+
VoltageProperties voltage_properties = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message VoltageCreationResponse{
|
|
27
|
+
CreationResponse condition_response = 1;
|
|
28
|
+
VoltageDefinition condition_data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Voltage condition definitions
|
|
32
|
+
message VoltageProperties {
|
|
33
|
+
Quantity voltage_magnitude = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message VoltageDefinition {
|
|
37
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
38
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
39
|
+
string label = 3;
|
|
40
|
+
repeated string locations = 4;
|
|
41
|
+
bool suppressed = 5;
|
|
42
|
+
VoltageProperties voltage = 6;
|
|
43
|
+
}
|