ansys-api-discovery 0.6.3__py3-none-any.whl → 0.6.5__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/boltassignment.proto +40 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.py +37 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.pyi +95 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/conditions/acceleration.proto +52 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.py +365 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.pyi +118 -0
- ansys/api/discovery/v0/conditions/bearing.proto +47 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.py +200 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.pyi +68 -0
- ansys/api/discovery/v0/conditions/boltpreload.proto +94 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.pyi +218 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/{conditions.proto → conditions/condition.proto} +5 -4
- ansys/api/discovery/v0/conditions/condition_pb2.py +34 -0
- ansys/api/discovery/v0/{conditions_pb2.pyi → conditions/condition_pb2.pyi} +13 -6
- ansys/api/discovery/v0/{conditions_pb2_grpc.py → conditions/condition_pb2_grpc.py} +21 -21
- ansys/api/discovery/v0/{conditions_pb2_grpc.pyi → conditions/condition_pb2_grpc.pyi} +10 -10
- ansys/api/discovery/v0/conditions/convection.proto +43 -0
- ansys/api/discovery/v0/conditions/convection_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/convection_pb2.pyi +89 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/displacement.proto +105 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.pyi +209 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/{conditionsfluid.proto → conditions/flow.proto} +19 -24
- ansys/api/discovery/v0/conditions/flow_pb2.py +86 -0
- ansys/api/discovery/v0/{conditionsfluid_pb2.pyi → conditions/flow_pb2.pyi} +51 -34
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.py → conditions/flow_pb2_grpc.py} +86 -86
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.pyi → conditions/flow_pb2_grpc.pyi} +32 -32
- ansys/api/discovery/v0/conditions/fluidinitialtemperature.proto +13 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.py +28 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.pyi +7 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.py +66 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.pyi +24 -0
- ansys/api/discovery/v0/conditions/force.proto +131 -0
- ansys/api/discovery/v0/conditions/force_pb2.py +56 -0
- ansys/api/discovery/v0/conditions/force_pb2.pyi +286 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.py +829 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.pyi +257 -0
- ansys/api/discovery/v0/conditions/gravity.proto +39 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.py +32 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.pyi +65 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.pyi +91 -0
- ansys/api/discovery/v0/conditions/heat.proto +90 -0
- ansys/api/discovery/v0/conditions/heat_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/heat_pb2.pyi +210 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.py +332 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.pyi +108 -0
- ansys/api/discovery/v0/conditions/insulated.proto +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.pyi +73 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.py +100 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.pyi +35 -0
- ansys/api/discovery/v0/conditions/mass.proto +49 -0
- ansys/api/discovery/v0/conditions/mass_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/mass_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.pyi +88 -0
- ansys/api/discovery/v0/conditions/moment.proto +67 -0
- ansys/api/discovery/v0/conditions/moment_pb2.py +40 -0
- ansys/api/discovery/v0/conditions/moment_pb2.pyi +132 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.py +398 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.pyi +128 -0
- ansys/api/discovery/v0/conditions/porous.proto +116 -0
- ansys/api/discovery/v0/conditions/porous_pb2.py +44 -0
- ansys/api/discovery/v0/conditions/porous_pb2.pyi +217 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.py +534 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.pyi +181 -0
- ansys/api/discovery/v0/conditions/pressure.proto +43 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone.proto +57 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.py +136 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.pyi +54 -0
- ansys/api/discovery/v0/conditions/solidtemperature.proto +40 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.pyi +81 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/springpreload.proto +105 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.py +50 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.pyi +250 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/conditions/support.proto +98 -0
- ansys/api/discovery/v0/conditions/support_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/support_pb2.pyi +200 -0
- ansys/api/discovery/v0/{conditionsthermal_pb2_grpc.py → conditions/support_pb2_grpc.py} +251 -221
- ansys/api/discovery/v0/conditions/support_pb2_grpc.pyi +218 -0
- ansys/api/discovery/v0/conditions/velocity.proto +58 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.py +497 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.pyi +158 -0
- ansys/api/discovery/v0/conditions/wall.proto +209 -0
- ansys/api/discovery/v0/conditions/wall_pb2.py +70 -0
- ansys/api/discovery/v0/conditions/wall_pb2.pyi +494 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.py +633 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.pyi +211 -0
- ansys/api/discovery/v0/connections/contact.proto +110 -0
- ansys/api/discovery/v0/connections/contact_pb2.py +46 -0
- ansys/api/discovery/v0/connections/contact_pb2.pyi +242 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/connections/contactgroup.proto +89 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.py +37 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.pyi +178 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.py +860 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.pyi +266 -0
- ansys/api/discovery/v0/connections/joint.proto +56 -0
- ansys/api/discovery/v0/connections/joint_pb2.py +40 -0
- ansys/api/discovery/v0/connections/joint_pb2.pyi +129 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.py +167 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.pyi +58 -0
- ansys/api/discovery/v0/discoverymodels.proto +34 -17
- ansys/api/discovery/v0/discoverymodels_pb2.py +46 -40
- ansys/api/discovery/v0/discoverymodels_pb2.pyi +118 -47
- ansys/api/discovery/v0/engineeringdata/boltdata.proto +37 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.py +36 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.pyi +81 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/monitors.proto +4 -4
- ansys/api/discovery/v0/monitors_pb2.py +10 -10
- ansys/api/discovery/v0/monitors_pb2.pyi +11 -11
- ansys/api/discovery/v0/solution.proto +4 -3
- ansys/api/discovery/v0/solution_pb2.py +16 -15
- ansys/api/discovery/v0/solution_pb2.pyi +11 -7
- ansys/api/discovery/v0/unsupported.proto +10 -0
- ansys/api/discovery/v0/unsupported_pb2.py +5 -3
- ansys/api/discovery/v0/unsupported_pb2.pyi +14 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.py +68 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.pyi +24 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/METADATA +13 -4
- ansys_api_discovery-0.6.5.dist-info/RECORD +200 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/WHEEL +1 -1
- ansys/api/discovery/v0/conditions_pb2.py +0 -33
- ansys/api/discovery/v0/conditionsfluid_pb2.py +0 -85
- ansys/api/discovery/v0/conditionsstructural.proto +0 -595
- ansys/api/discovery/v0/conditionsstructural_pb2.py +0 -149
- ansys/api/discovery/v0/conditionsstructural_pb2.pyi +0 -1216
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +0 -4171
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +0 -1303
- ansys/api/discovery/v0/conditionsthermal.proto +0 -179
- ansys/api/discovery/v0/conditionsthermal_pb2.py +0 -63
- ansys/api/discovery/v0/conditionsthermal_pb2.pyi +0 -399
- ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +0 -217
- ansys_api_discovery-0.6.3.dist-info/RECORD +0 -85
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
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.message
|
|
10
|
+
import typing
|
|
11
|
+
import typing_extensions
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
14
|
+
|
|
15
|
+
class BoltDataLibraryRequest(google.protobuf.message.Message):
|
|
16
|
+
"""BoltData"""
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
18
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
19
|
+
label: typing.Text = ...
|
|
20
|
+
def __init__(self,
|
|
21
|
+
*,
|
|
22
|
+
label : typing.Text = ...,
|
|
23
|
+
) -> None: ...
|
|
24
|
+
def ClearField(self, field_name: typing_extensions.Literal["label",b"label"]) -> None: ...
|
|
25
|
+
global___BoltDataLibraryRequest = BoltDataLibraryRequest
|
|
26
|
+
|
|
27
|
+
class BoltDataCreationResponse(google.protobuf.message.Message):
|
|
28
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
29
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
30
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
31
|
+
@property
|
|
32
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
33
|
+
@property
|
|
34
|
+
def condition_data(self) -> global___BoltDataDefinition: ...
|
|
35
|
+
def __init__(self,
|
|
36
|
+
*,
|
|
37
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
38
|
+
condition_data : typing.Optional[global___BoltDataDefinition] = ...,
|
|
39
|
+
) -> None: ...
|
|
40
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
41
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
42
|
+
global___BoltDataCreationResponse = BoltDataCreationResponse
|
|
43
|
+
|
|
44
|
+
class BoltDataProperties(google.protobuf.message.Message):
|
|
45
|
+
"""BoltData condition definitions"""
|
|
46
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
47
|
+
MATERIAL_NAME_FIELD_NUMBER: builtins.int
|
|
48
|
+
material_name: typing.Text = ...
|
|
49
|
+
def __init__(self,
|
|
50
|
+
*,
|
|
51
|
+
material_name : typing.Text = ...,
|
|
52
|
+
) -> None: ...
|
|
53
|
+
def ClearField(self, field_name: typing_extensions.Literal["material_name",b"material_name"]) -> None: ...
|
|
54
|
+
global___BoltDataProperties = BoltDataProperties
|
|
55
|
+
|
|
56
|
+
class BoltDataDefinition(google.protobuf.message.Message):
|
|
57
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
58
|
+
ID_FIELD_NUMBER: builtins.int
|
|
59
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
60
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
61
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
62
|
+
BOLT_FIELD_NUMBER: builtins.int
|
|
63
|
+
@property
|
|
64
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
65
|
+
@property
|
|
66
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
67
|
+
label: typing.Text = ...
|
|
68
|
+
suppressed: builtins.bool = ...
|
|
69
|
+
@property
|
|
70
|
+
def bolt(self) -> global___BoltDataProperties: ...
|
|
71
|
+
def __init__(self,
|
|
72
|
+
*,
|
|
73
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
74
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
75
|
+
label : typing.Text = ...,
|
|
76
|
+
suppressed : builtins.bool = ...,
|
|
77
|
+
bolt : typing.Optional[global___BoltDataProperties] = ...,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
def HasField(self, field_name: typing_extensions.Literal["bolt",b"bolt","id",b"id","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
80
|
+
def ClearField(self, field_name: typing_extensions.Literal["bolt",b"bolt","id",b"id","label",b"label","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
81
|
+
global___BoltDataDefinition = BoltDataDefinition
|
|
@@ -0,0 +1,67 @@
|
|
|
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.engineeringdata import boltdata_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BoltDataStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.GetBoltDataFromLibrary = channel.unary_unary(
|
|
18
|
+
'/ansys.api.discovery.v0.engineeringdata.boltdata.BoltData/GetBoltDataFromLibrary',
|
|
19
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataLibraryRequest.SerializeToString,
|
|
20
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataCreationResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class BoltDataServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def GetBoltDataFromLibrary(self, request, context):
|
|
28
|
+
"""BoltData condition methods
|
|
29
|
+
"""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details('Method not implemented!')
|
|
32
|
+
raise NotImplementedError('Method not implemented!')
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_BoltDataServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'GetBoltDataFromLibrary': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.GetBoltDataFromLibrary,
|
|
39
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataLibraryRequest.FromString,
|
|
40
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataCreationResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'ansys.api.discovery.v0.engineeringdata.boltdata.BoltData', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# This class is part of an EXPERIMENTAL API.
|
|
49
|
+
class BoltData(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def GetBoltDataFromLibrary(request,
|
|
54
|
+
target,
|
|
55
|
+
options=(),
|
|
56
|
+
channel_credentials=None,
|
|
57
|
+
call_credentials=None,
|
|
58
|
+
insecure=False,
|
|
59
|
+
compression=None,
|
|
60
|
+
wait_for_ready=None,
|
|
61
|
+
timeout=None,
|
|
62
|
+
metadata=None):
|
|
63
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.engineeringdata.boltdata.BoltData/GetBoltDataFromLibrary',
|
|
64
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataLibraryRequest.SerializeToString,
|
|
65
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_engineeringdata_dot_boltdata__pb2.BoltDataCreationResponse.FromString,
|
|
66
|
+
options, channel_credentials,
|
|
67
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.engineeringdata.boltdata_pb2
|
|
7
|
+
import grpc
|
|
8
|
+
|
|
9
|
+
class BoltDataStub:
|
|
10
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
11
|
+
GetBoltDataFromLibrary: grpc.UnaryUnaryMultiCallable[
|
|
12
|
+
ansys.api.discovery.v0.engineeringdata.boltdata_pb2.BoltDataLibraryRequest,
|
|
13
|
+
ansys.api.discovery.v0.engineeringdata.boltdata_pb2.BoltDataCreationResponse] = ...
|
|
14
|
+
"""BoltData condition methods"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BoltDataServicer(metaclass=abc.ABCMeta):
|
|
18
|
+
@abc.abstractmethod
|
|
19
|
+
def GetBoltDataFromLibrary(self,
|
|
20
|
+
request: ansys.api.discovery.v0.engineeringdata.boltdata_pb2.BoltDataLibraryRequest,
|
|
21
|
+
context: grpc.ServicerContext,
|
|
22
|
+
) -> ansys.api.discovery.v0.engineeringdata.boltdata_pb2.BoltDataCreationResponse:
|
|
23
|
+
"""BoltData condition methods"""
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def add_BoltDataServicer_to_server(servicer: BoltDataServicer, server: grpc.Server) -> None: ...
|
|
@@ -16,7 +16,7 @@ service Monitors
|
|
|
16
16
|
|
|
17
17
|
message CreateMonitorRequest{
|
|
18
18
|
// The monitor id
|
|
19
|
-
|
|
19
|
+
DoubleSidedScopedCreationData creation_data = 1;
|
|
20
20
|
MonitorProperties monitor = 2;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -31,12 +31,12 @@ message MonitorProperties{
|
|
|
31
31
|
ansys.api.discovery.v0.results.ResultVariable result_variable = 1;
|
|
32
32
|
ansys.api.discovery.v0.results.ResultFunction result_function = 2;
|
|
33
33
|
optional ansys.api.discovery.v0.results.ResultComponent result_component = 3;
|
|
34
|
-
repeated string locations_secondary = 4;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
message MonitorDefinition{
|
|
38
37
|
string id = 1;
|
|
39
38
|
string label = 2;
|
|
40
|
-
repeated string
|
|
41
|
-
|
|
39
|
+
repeated string side1_locations = 3;
|
|
40
|
+
repeated string side2_locations = 4;
|
|
41
|
+
MonitorProperties monitor = 5;
|
|
42
42
|
}
|
|
@@ -16,7 +16,7 @@ from ansys.api.discovery.v0 import results_pb2 as ansys_dot_api_dot_discovery_do
|
|
|
16
16
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/monitors.proto\x12\x1f\x61nsys.api.discovery.v0.monitors\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a$ansys/api/discovery/v0/results.proto\x1a\x1bgoogle/protobuf/empty.proto\"\
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/monitors.proto\x12\x1f\x61nsys.api.discovery.v0.monitors\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a$ansys/api/discovery/v0/results.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa9\x01\n\x14\x43reateMonitorRequest\x12L\n\rcreation_data\x18\x01 \x01(\x0b\x32\x35.ansys.api.discovery.v0.DoubleSidedScopedCreationData\x12\x43\n\x07monitor\x18\x02 \x01(\x0b\x32\x32.ansys.api.discovery.v0.monitors.MonitorProperties\"\xa2\x01\n\x17MonitorCreationResponse\x12\x42\n\x10monitor_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12\x43\n\x07monitor\x18\x02 \x01(\x0b\x32\x32.ansys.api.discovery.v0.monitors.MonitorDefinition\"\x8a\x02\n\x11MonitorProperties\x12G\n\x0fresult_variable\x18\x01 \x01(\x0e\x32..ansys.api.discovery.v0.results.ResultVariable\x12G\n\x0fresult_function\x18\x02 \x01(\x0e\x32..ansys.api.discovery.v0.results.ResultFunction\x12N\n\x10result_component\x18\x03 \x01(\x0e\x32/.ansys.api.discovery.v0.results.ResultComponentH\x00\x88\x01\x01\x42\x13\n\x11_result_component\"\xa5\x01\n\x11MonitorDefinition\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x17\n\x0fside1_locations\x18\x03 \x03(\t\x12\x17\n\x0fside2_locations\x18\x04 \x03(\t\x12\x43\n\x07monitor\x18\x05 \x01(\x0b\x32\x32.ansys.api.discovery.v0.monitors.MonitorProperties2\x8d\x01\n\x08Monitors\x12\x80\x01\n\rCreateMonitor\x12\x35.ansys.api.discovery.v0.monitors.CreateMonitorRequest\x1a\x38.ansys.api.discovery.v0.monitors.MonitorCreationResponseB\"\xaa\x02\x1f\x41nsys.Api.Discovery.V0.Monitorsb\x06proto3')
|
|
20
20
|
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
22
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.monitors_pb2', globals())
|
|
@@ -25,13 +25,13 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
25
25
|
DESCRIPTOR._options = None
|
|
26
26
|
DESCRIPTOR._serialized_options = b'\252\002\037Ansys.Api.Discovery.V0.Monitors'
|
|
27
27
|
_CREATEMONITORREQUEST._serialized_start=188
|
|
28
|
-
_CREATEMONITORREQUEST._serialized_end=
|
|
29
|
-
_MONITORCREATIONRESPONSE._serialized_start=
|
|
30
|
-
_MONITORCREATIONRESPONSE._serialized_end=
|
|
31
|
-
_MONITORPROPERTIES._serialized_start=
|
|
32
|
-
_MONITORPROPERTIES._serialized_end=
|
|
33
|
-
_MONITORDEFINITION._serialized_start=
|
|
34
|
-
_MONITORDEFINITION._serialized_end=
|
|
35
|
-
_MONITORS._serialized_start=
|
|
36
|
-
_MONITORS._serialized_end=
|
|
28
|
+
_CREATEMONITORREQUEST._serialized_end=357
|
|
29
|
+
_MONITORCREATIONRESPONSE._serialized_start=360
|
|
30
|
+
_MONITORCREATIONRESPONSE._serialized_end=522
|
|
31
|
+
_MONITORPROPERTIES._serialized_start=525
|
|
32
|
+
_MONITORPROPERTIES._serialized_end=791
|
|
33
|
+
_MONITORDEFINITION._serialized_start=794
|
|
34
|
+
_MONITORDEFINITION._serialized_end=959
|
|
35
|
+
_MONITORS._serialized_start=962
|
|
36
|
+
_MONITORS._serialized_end=1103
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -18,14 +18,14 @@ class CreateMonitorRequest(google.protobuf.message.Message):
|
|
|
18
18
|
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
19
19
|
MONITOR_FIELD_NUMBER: builtins.int
|
|
20
20
|
@property
|
|
21
|
-
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.
|
|
21
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.DoubleSidedScopedCreationData:
|
|
22
22
|
"""The monitor id"""
|
|
23
23
|
pass
|
|
24
24
|
@property
|
|
25
25
|
def monitor(self) -> global___MonitorProperties: ...
|
|
26
26
|
def __init__(self,
|
|
27
27
|
*,
|
|
28
|
-
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.
|
|
28
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.DoubleSidedScopedCreationData] = ...,
|
|
29
29
|
monitor : typing.Optional[global___MonitorProperties] = ...,
|
|
30
30
|
) -> None: ...
|
|
31
31
|
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","monitor",b"monitor"]) -> builtins.bool: ...
|
|
@@ -58,21 +58,17 @@ class MonitorProperties(google.protobuf.message.Message):
|
|
|
58
58
|
RESULT_VARIABLE_FIELD_NUMBER: builtins.int
|
|
59
59
|
RESULT_FUNCTION_FIELD_NUMBER: builtins.int
|
|
60
60
|
RESULT_COMPONENT_FIELD_NUMBER: builtins.int
|
|
61
|
-
LOCATIONS_SECONDARY_FIELD_NUMBER: builtins.int
|
|
62
61
|
result_variable: ansys.api.discovery.v0.results_pb2.ResultVariable.ValueType = ...
|
|
63
62
|
result_function: ansys.api.discovery.v0.results_pb2.ResultFunction.ValueType = ...
|
|
64
63
|
result_component: ansys.api.discovery.v0.results_pb2.ResultComponent.ValueType = ...
|
|
65
|
-
@property
|
|
66
|
-
def locations_secondary(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
67
64
|
def __init__(self,
|
|
68
65
|
*,
|
|
69
66
|
result_variable : ansys.api.discovery.v0.results_pb2.ResultVariable.ValueType = ...,
|
|
70
67
|
result_function : ansys.api.discovery.v0.results_pb2.ResultFunction.ValueType = ...,
|
|
71
68
|
result_component : typing.Optional[ansys.api.discovery.v0.results_pb2.ResultComponent.ValueType] = ...,
|
|
72
|
-
locations_secondary : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
73
69
|
) -> None: ...
|
|
74
70
|
def HasField(self, field_name: typing_extensions.Literal["_result_component",b"_result_component","result_component",b"result_component"]) -> builtins.bool: ...
|
|
75
|
-
def ClearField(self, field_name: typing_extensions.Literal["_result_component",b"_result_component","
|
|
71
|
+
def ClearField(self, field_name: typing_extensions.Literal["_result_component",b"_result_component","result_component",b"result_component","result_function",b"result_function","result_variable",b"result_variable"]) -> None: ...
|
|
76
72
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_result_component",b"_result_component"]) -> typing.Optional[typing_extensions.Literal["result_component"]]: ...
|
|
77
73
|
global___MonitorProperties = MonitorProperties
|
|
78
74
|
|
|
@@ -80,21 +76,25 @@ class MonitorDefinition(google.protobuf.message.Message):
|
|
|
80
76
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
81
77
|
ID_FIELD_NUMBER: builtins.int
|
|
82
78
|
LABEL_FIELD_NUMBER: builtins.int
|
|
83
|
-
|
|
79
|
+
SIDE1_LOCATIONS_FIELD_NUMBER: builtins.int
|
|
80
|
+
SIDE2_LOCATIONS_FIELD_NUMBER: builtins.int
|
|
84
81
|
MONITOR_FIELD_NUMBER: builtins.int
|
|
85
82
|
id: typing.Text = ...
|
|
86
83
|
label: typing.Text = ...
|
|
87
84
|
@property
|
|
88
|
-
def
|
|
85
|
+
def side1_locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
86
|
+
@property
|
|
87
|
+
def side2_locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
89
88
|
@property
|
|
90
89
|
def monitor(self) -> global___MonitorProperties: ...
|
|
91
90
|
def __init__(self,
|
|
92
91
|
*,
|
|
93
92
|
id : typing.Text = ...,
|
|
94
93
|
label : typing.Text = ...,
|
|
95
|
-
|
|
94
|
+
side1_locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
95
|
+
side2_locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
96
96
|
monitor : typing.Optional[global___MonitorProperties] = ...,
|
|
97
97
|
) -> None: ...
|
|
98
98
|
def HasField(self, field_name: typing_extensions.Literal["monitor",b"monitor"]) -> builtins.bool: ...
|
|
99
|
-
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","
|
|
99
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","monitor",b"monitor","side1_locations",b"side1_locations","side2_locations",b"side2_locations"]) -> None: ...
|
|
100
100
|
global___MonitorDefinition = MonitorDefinition
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
syntax = "proto3";
|
|
3
3
|
package ansys.api.discovery.v0.solution;
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
5
7
|
import "google/protobuf/empty.proto";
|
|
6
8
|
|
|
7
9
|
option csharp_namespace = "Ansys.Api.Discovery.V0.Solution";
|
|
@@ -18,9 +20,8 @@ message SolverFidelityRequest{
|
|
|
18
20
|
double value = 2;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
//TODO Replace string with Enum
|
|
22
23
|
message SimulationStageRequest{
|
|
23
|
-
|
|
24
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier simulation_id = 1;
|
|
24
25
|
string stage = 2;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -29,7 +30,7 @@ message SolverFidelityResponse{
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
message SolveExecutionRequest{
|
|
32
|
-
|
|
33
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier simulation_id = 1;
|
|
33
34
|
SolverManager solver_manager = 2;
|
|
34
35
|
bool execute_remotely =3;
|
|
35
36
|
repeated string variation_id_list = 4;
|
|
@@ -11,10 +11,11 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
11
11
|
_sym_db = _symbol_database.Default()
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
14
15
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/solution.proto\x12\x1f\x61nsys.api.discovery.v0.solution\x1a\x1bgoogle/protobuf/empty.proto\"y\n\x15SolverFidelityRequest\x12Q\n\x10simulation_stage\x18\x01 \x01(\x0b\x32\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x12\r\n\x05value\x18\x02 \x01(\x01\"
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/solution.proto\x12\x1f\x61nsys.api.discovery.v0.solution\x1a ansys/api/dbu/v0/dbumodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"y\n\x15SolverFidelityRequest\x12Q\n\x10simulation_stage\x18\x01 \x01(\x0b\x32\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x12\r\n\x05value\x18\x02 \x01(\x01\"i\n\x16SimulationStageRequest\x12@\n\rsimulation_id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05stage\x18\x02 \x01(\t\"\'\n\x16SolverFidelityResponse\x12\r\n\x05value\x18\x01 \x01(\x01\"\xd6\x01\n\x15SolveExecutionRequest\x12@\n\rsimulation_id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\x46\n\x0esolver_manager\x18\x02 \x01(\x0e\x32..ansys.api.discovery.v0.solution.SolverManager\x12\x18\n\x10\x65xecute_remotely\x18\x03 \x01(\x08\x12\x19\n\x11variation_id_list\x18\x04 \x03(\t\":\n\x16SolveExecutionResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t*(\n\rSolverManager\x12\x0b\n\x07\x41RTEMIS\x10\x00\x12\n\n\x06\x41POLLO\x10\x01\x32\xf1\x02\n\x08Solution\x12\x85\x01\n\x11GetSolverFidelity\x12\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x1a\x37.ansys.api.discovery.v0.solution.SolverFidelityResponse\x12\x63\n\x11SetSolverFidelity\x12\x36.ansys.api.discovery.v0.solution.SolverFidelityRequest\x1a\x16.google.protobuf.Empty\x12x\n\x05Solve\x12\x36.ansys.api.discovery.v0.solution.SolveExecutionRequest\x1a\x37.ansys.api.discovery.v0.solution.SolveExecutionResponseB\"\xaa\x02\x1f\x41nsys.Api.Discovery.V0.Solutionb\x06proto3')
|
|
18
19
|
|
|
19
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
20
21
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.solution_pb2', globals())
|
|
@@ -22,18 +23,18 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
22
23
|
|
|
23
24
|
DESCRIPTOR._options = None
|
|
24
25
|
DESCRIPTOR._serialized_options = b'\252\002\037Ansys.Api.Discovery.V0.Solution'
|
|
25
|
-
_SOLVERMANAGER._serialized_start=
|
|
26
|
-
_SOLVERMANAGER._serialized_end=
|
|
27
|
-
_SOLVERFIDELITYREQUEST._serialized_start=
|
|
28
|
-
_SOLVERFIDELITYREQUEST._serialized_end=
|
|
29
|
-
_SIMULATIONSTAGEREQUEST._serialized_start=
|
|
30
|
-
_SIMULATIONSTAGEREQUEST._serialized_end=
|
|
31
|
-
_SOLVERFIDELITYRESPONSE._serialized_start=
|
|
32
|
-
_SOLVERFIDELITYRESPONSE._serialized_end=
|
|
33
|
-
_SOLVEEXECUTIONREQUEST._serialized_start=
|
|
34
|
-
_SOLVEEXECUTIONREQUEST._serialized_end=
|
|
35
|
-
_SOLVEEXECUTIONRESPONSE._serialized_start=
|
|
36
|
-
_SOLVEEXECUTIONRESPONSE._serialized_end=
|
|
37
|
-
_SOLUTION._serialized_start=
|
|
38
|
-
_SOLUTION._serialized_end=
|
|
26
|
+
_SOLVERMANAGER._serialized_start=685
|
|
27
|
+
_SOLVERMANAGER._serialized_end=725
|
|
28
|
+
_SOLVERFIDELITYREQUEST._serialized_start=137
|
|
29
|
+
_SOLVERFIDELITYREQUEST._serialized_end=258
|
|
30
|
+
_SIMULATIONSTAGEREQUEST._serialized_start=260
|
|
31
|
+
_SIMULATIONSTAGEREQUEST._serialized_end=365
|
|
32
|
+
_SOLVERFIDELITYRESPONSE._serialized_start=367
|
|
33
|
+
_SOLVERFIDELITYRESPONSE._serialized_end=406
|
|
34
|
+
_SOLVEEXECUTIONREQUEST._serialized_start=409
|
|
35
|
+
_SOLVEEXECUTIONREQUEST._serialized_end=623
|
|
36
|
+
_SOLVEEXECUTIONRESPONSE._serialized_start=625
|
|
37
|
+
_SOLVEEXECUTIONRESPONSE._serialized_end=683
|
|
38
|
+
_SOLUTION._serialized_start=728
|
|
39
|
+
_SOLUTION._serialized_end=1097
|
|
39
40
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@generated by mypy-protobuf. Do not edit manually!
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
5
6
|
import builtins
|
|
6
7
|
import google.protobuf.descriptor
|
|
7
8
|
import google.protobuf.internal.containers
|
|
@@ -44,18 +45,19 @@ class SolverFidelityRequest(google.protobuf.message.Message):
|
|
|
44
45
|
global___SolverFidelityRequest = SolverFidelityRequest
|
|
45
46
|
|
|
46
47
|
class SimulationStageRequest(google.protobuf.message.Message):
|
|
47
|
-
"""TODO Replace string with Enum"""
|
|
48
48
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
49
|
-
|
|
49
|
+
SIMULATION_ID_FIELD_NUMBER: builtins.int
|
|
50
50
|
STAGE_FIELD_NUMBER: builtins.int
|
|
51
|
-
|
|
51
|
+
@property
|
|
52
|
+
def simulation_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
52
53
|
stage: typing.Text = ...
|
|
53
54
|
def __init__(self,
|
|
54
55
|
*,
|
|
55
|
-
|
|
56
|
+
simulation_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
56
57
|
stage : typing.Text = ...,
|
|
57
58
|
) -> None: ...
|
|
58
|
-
def
|
|
59
|
+
def HasField(self, field_name: typing_extensions.Literal["simulation_id",b"simulation_id"]) -> builtins.bool: ...
|
|
60
|
+
def ClearField(self, field_name: typing_extensions.Literal["simulation_id",b"simulation_id","stage",b"stage"]) -> None: ...
|
|
59
61
|
global___SimulationStageRequest = SimulationStageRequest
|
|
60
62
|
|
|
61
63
|
class SolverFidelityResponse(google.protobuf.message.Message):
|
|
@@ -75,18 +77,20 @@ class SolveExecutionRequest(google.protobuf.message.Message):
|
|
|
75
77
|
SOLVER_MANAGER_FIELD_NUMBER: builtins.int
|
|
76
78
|
EXECUTE_REMOTELY_FIELD_NUMBER: builtins.int
|
|
77
79
|
VARIATION_ID_LIST_FIELD_NUMBER: builtins.int
|
|
78
|
-
|
|
80
|
+
@property
|
|
81
|
+
def simulation_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
79
82
|
solver_manager: global___SolverManager.ValueType = ...
|
|
80
83
|
execute_remotely: builtins.bool = ...
|
|
81
84
|
@property
|
|
82
85
|
def variation_id_list(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
83
86
|
def __init__(self,
|
|
84
87
|
*,
|
|
85
|
-
simulation_id : typing.
|
|
88
|
+
simulation_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
86
89
|
solver_manager : global___SolverManager.ValueType = ...,
|
|
87
90
|
execute_remotely : builtins.bool = ...,
|
|
88
91
|
variation_id_list : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
89
92
|
) -> None: ...
|
|
93
|
+
def HasField(self, field_name: typing_extensions.Literal["simulation_id",b"simulation_id"]) -> builtins.bool: ...
|
|
90
94
|
def ClearField(self, field_name: typing_extensions.Literal["execute_remotely",b"execute_remotely","simulation_id",b"simulation_id","solver_manager",b"solver_manager","variation_id_list",b"variation_id_list"]) -> None: ...
|
|
91
95
|
global___SolveExecutionRequest = SolveExecutionRequest
|
|
92
96
|
|
|
@@ -16,6 +16,11 @@ service Unsupported {
|
|
|
16
16
|
|
|
17
17
|
// Exports Live results to file.
|
|
18
18
|
rpc ExportResultsToOpenVDBFile(VariableExportRequestToFile) returns(ansys.api.dbu.v0.RequestResult);
|
|
19
|
+
|
|
20
|
+
// Gets max and min value from the legend
|
|
21
|
+
rpc GetLegendMaximumValue(google.protobuf.Empty) returns(DoubleValueResponse);
|
|
22
|
+
rpc GetLegendMinimumValue(google.protobuf.Empty) returns(DoubleValueResponse);
|
|
23
|
+
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
message VariableExportRequest {
|
|
@@ -30,4 +35,9 @@ message VariableExportRequestToFile {
|
|
|
30
35
|
message ByteArrayResponse {
|
|
31
36
|
bytes bytes = 1;
|
|
32
37
|
bool success = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message DoubleValueResponse {
|
|
41
|
+
double value = 1;
|
|
42
|
+
bool success = 2;
|
|
33
43
|
}
|
|
@@ -16,7 +16,7 @@ from ansys.api.discovery.v0 import results_pb2 as ansys_dot_api_dot_discovery_do
|
|
|
16
16
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/unsupported.proto\x12\"ansys.api.discovery.v0.unsupported\x1a ansys/api/dbu/v0/dbumodels.proto\x1a$ansys/api/discovery/v0/results.proto\x1a\x1bgoogle/protobuf/empty.proto\"a\n\x15VariableExportRequest\x12H\n\x10result_variables\x18\x01 \x03(\x0e\x32..ansys.api.discovery.v0.results.ResultVariable\"z\n\x1bVariableExportRequestToFile\x12H\n\x10result_variables\x18\x01 \x03(\x0e\x32..ansys.api.discovery.v0.results.ResultVariable\x12\x11\n\tfile_path\x18\x02 \x01(\t\"3\n\x11\x42yteArrayResponse\x12\r\n\x05\x62ytes\x18\x01 \x01(\x0c\x12\x0f\n\x07success\x18\x02 \x01(\x08\
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/unsupported.proto\x12\"ansys.api.discovery.v0.unsupported\x1a ansys/api/dbu/v0/dbumodels.proto\x1a$ansys/api/discovery/v0/results.proto\x1a\x1bgoogle/protobuf/empty.proto\"a\n\x15VariableExportRequest\x12H\n\x10result_variables\x18\x01 \x03(\x0e\x32..ansys.api.discovery.v0.results.ResultVariable\"z\n\x1bVariableExportRequestToFile\x12H\n\x10result_variables\x18\x01 \x03(\x0e\x32..ansys.api.discovery.v0.results.ResultVariable\x12\x11\n\tfile_path\x18\x02 \x01(\t\"3\n\x11\x42yteArrayResponse\x12\r\n\x05\x62ytes\x18\x01 \x01(\x0c\x12\x0f\n\x07success\x18\x02 \x01(\x08\"5\n\x13\x44oubleValueResponse\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x0f\n\x07success\x18\x02 \x01(\x08\x32\xf4\x03\n\x0bUnsupported\x12\x90\x01\n\x1c\x45xportResultsToOpenVDBMemory\x12\x39.ansys.api.discovery.v0.unsupported.VariableExportRequest\x1a\x35.ansys.api.discovery.v0.unsupported.ByteArrayResponse\x12~\n\x1a\x45xportResultsToOpenVDBFile\x12?.ansys.api.discovery.v0.unsupported.VariableExportRequestToFile\x1a\x1f.ansys.api.dbu.v0.RequestResult\x12h\n\x15GetLegendMaximumValue\x12\x16.google.protobuf.Empty\x1a\x37.ansys.api.discovery.v0.unsupported.DoubleValueResponse\x12h\n\x15GetLegendMinimumValue\x12\x16.google.protobuf.Empty\x1a\x37.ansys.api.discovery.v0.unsupported.DoubleValueResponseB%\xaa\x02\"Ansys.Api.Discovery.V0.Unsupportedb\x06proto3')
|
|
20
20
|
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
22
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.unsupported_pb2', globals())
|
|
@@ -30,6 +30,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
30
30
|
_VARIABLEEXPORTREQUESTTOFILE._serialized_end=402
|
|
31
31
|
_BYTEARRAYRESPONSE._serialized_start=404
|
|
32
32
|
_BYTEARRAYRESPONSE._serialized_end=455
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
_DOUBLEVALUERESPONSE._serialized_start=457
|
|
34
|
+
_DOUBLEVALUERESPONSE._serialized_end=510
|
|
35
|
+
_UNSUPPORTED._serialized_start=513
|
|
36
|
+
_UNSUPPORTED._serialized_end=1013
|
|
35
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -52,3 +52,17 @@ class ByteArrayResponse(google.protobuf.message.Message):
|
|
|
52
52
|
) -> None: ...
|
|
53
53
|
def ClearField(self, field_name: typing_extensions.Literal["bytes",b"bytes","success",b"success"]) -> None: ...
|
|
54
54
|
global___ByteArrayResponse = ByteArrayResponse
|
|
55
|
+
|
|
56
|
+
class DoubleValueResponse(google.protobuf.message.Message):
|
|
57
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
58
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
59
|
+
SUCCESS_FIELD_NUMBER: builtins.int
|
|
60
|
+
value: builtins.float = ...
|
|
61
|
+
success: builtins.bool = ...
|
|
62
|
+
def __init__(self,
|
|
63
|
+
*,
|
|
64
|
+
value : builtins.float = ...,
|
|
65
|
+
success : builtins.bool = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def ClearField(self, field_name: typing_extensions.Literal["success",b"success","value",b"value"]) -> None: ...
|
|
68
|
+
global___DoubleValueResponse = DoubleValueResponse
|
|
@@ -4,6 +4,7 @@ import grpc
|
|
|
4
4
|
|
|
5
5
|
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
6
6
|
from ansys.api.discovery.v0 import unsupported_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2
|
|
7
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class UnsupportedStub(object):
|
|
@@ -25,6 +26,16 @@ class UnsupportedStub(object):
|
|
|
25
26
|
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.VariableExportRequestToFile.SerializeToString,
|
|
26
27
|
response_deserializer=ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2.RequestResult.FromString,
|
|
27
28
|
)
|
|
29
|
+
self.GetLegendMaximumValue = channel.unary_unary(
|
|
30
|
+
'/ansys.api.discovery.v0.unsupported.Unsupported/GetLegendMaximumValue',
|
|
31
|
+
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
32
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.FromString,
|
|
33
|
+
)
|
|
34
|
+
self.GetLegendMinimumValue = channel.unary_unary(
|
|
35
|
+
'/ansys.api.discovery.v0.unsupported.Unsupported/GetLegendMinimumValue',
|
|
36
|
+
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
37
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.FromString,
|
|
38
|
+
)
|
|
28
39
|
|
|
29
40
|
|
|
30
41
|
class UnsupportedServicer(object):
|
|
@@ -44,6 +55,19 @@ class UnsupportedServicer(object):
|
|
|
44
55
|
context.set_details('Method not implemented!')
|
|
45
56
|
raise NotImplementedError('Method not implemented!')
|
|
46
57
|
|
|
58
|
+
def GetLegendMaximumValue(self, request, context):
|
|
59
|
+
"""Gets max and min value from the legend
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def GetLegendMinimumValue(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
47
71
|
|
|
48
72
|
def add_UnsupportedServicer_to_server(servicer, server):
|
|
49
73
|
rpc_method_handlers = {
|
|
@@ -57,6 +81,16 @@ def add_UnsupportedServicer_to_server(servicer, server):
|
|
|
57
81
|
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.VariableExportRequestToFile.FromString,
|
|
58
82
|
response_serializer=ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2.RequestResult.SerializeToString,
|
|
59
83
|
),
|
|
84
|
+
'GetLegendMaximumValue': grpc.unary_unary_rpc_method_handler(
|
|
85
|
+
servicer.GetLegendMaximumValue,
|
|
86
|
+
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
87
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.SerializeToString,
|
|
88
|
+
),
|
|
89
|
+
'GetLegendMinimumValue': grpc.unary_unary_rpc_method_handler(
|
|
90
|
+
servicer.GetLegendMinimumValue,
|
|
91
|
+
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
92
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.SerializeToString,
|
|
93
|
+
),
|
|
60
94
|
}
|
|
61
95
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
62
96
|
'ansys.api.discovery.v0.unsupported.Unsupported', rpc_method_handlers)
|
|
@@ -100,3 +134,37 @@ class Unsupported(object):
|
|
|
100
134
|
ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2.RequestResult.FromString,
|
|
101
135
|
options, channel_credentials,
|
|
102
136
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
137
|
+
|
|
138
|
+
@staticmethod
|
|
139
|
+
def GetLegendMaximumValue(request,
|
|
140
|
+
target,
|
|
141
|
+
options=(),
|
|
142
|
+
channel_credentials=None,
|
|
143
|
+
call_credentials=None,
|
|
144
|
+
insecure=False,
|
|
145
|
+
compression=None,
|
|
146
|
+
wait_for_ready=None,
|
|
147
|
+
timeout=None,
|
|
148
|
+
metadata=None):
|
|
149
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.unsupported.Unsupported/GetLegendMaximumValue',
|
|
150
|
+
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
151
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.FromString,
|
|
152
|
+
options, channel_credentials,
|
|
153
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
154
|
+
|
|
155
|
+
@staticmethod
|
|
156
|
+
def GetLegendMinimumValue(request,
|
|
157
|
+
target,
|
|
158
|
+
options=(),
|
|
159
|
+
channel_credentials=None,
|
|
160
|
+
call_credentials=None,
|
|
161
|
+
insecure=False,
|
|
162
|
+
compression=None,
|
|
163
|
+
wait_for_ready=None,
|
|
164
|
+
timeout=None,
|
|
165
|
+
metadata=None):
|
|
166
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.unsupported.Unsupported/GetLegendMinimumValue',
|
|
167
|
+
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
168
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_unsupported__pb2.DoubleValueResponse.FromString,
|
|
169
|
+
options, channel_credentials,
|
|
170
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|