ansys-api-discovery 0.5.2__py3-none-any.whl → 0.6.1__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/conditions.proto +11 -46
- ansys/api/discovery/v0/conditions_pb2.py +12 -70
- ansys/api/discovery/v0/conditions_pb2.pyi +16 -88
- ansys/api/discovery/v0/conditions_pb2_grpc.py +40 -139
- ansys/api/discovery/v0/conditions_pb2_grpc.pyi +20 -50
- ansys/api/discovery/v0/conditionsfluid.proto +246 -0
- ansys/api/discovery/v0/conditionsfluid_pb2.py +85 -0
- ansys/api/discovery/v0/conditionsfluid_pb2.pyi +590 -0
- ansys/api/discovery/v0/conditionsfluid_pb2_grpc.py +662 -0
- ansys/api/discovery/v0/conditionsfluid_pb2_grpc.pyi +208 -0
- ansys/api/discovery/v0/conditionsstructural.proto +407 -0
- ansys/api/discovery/v0/conditionsstructural_pb2.py +113 -0
- ansys/api/discovery/v0/conditionsstructural_pb2.pyi +839 -0
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +2746 -0
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +854 -0
- ansys/api/discovery/v0/conditionsthermal.proto +179 -0
- ansys/api/discovery/v0/conditionsthermal_pb2.py +63 -0
- ansys/api/discovery/v0/conditionsthermal_pb2.pyi +399 -0
- ansys/api/discovery/v0/conditionsthermal_pb2_grpc.py +665 -0
- ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +217 -0
- ansys/api/discovery/v0/definedvariationstable.proto +12 -0
- ansys/api/discovery/v0/definedvariationstable_pb2.py +12 -116
- ansys/api/discovery/v0/definedvariationstable_pb2.pyi +16 -0
- ansys/api/discovery/v0/definedvariationstable_pb2_grpc.py +68 -0
- ansys/api/discovery/v0/definedvariationstable_pb2_grpc.pyi +26 -0
- ansys/api/discovery/v0/discoverymodels.proto +91 -25
- ansys/api/discovery/v0/discoverymodels_pb2.py +59 -211
- ansys/api/discovery/v0/discoverymodels_pb2.pyi +264 -50
- ansys/api/discovery/v0/historytrackparameters_pb2.py +3 -50
- ansys/api/discovery/v0/messaging.proto +0 -2
- ansys/api/discovery/v0/messaging_pb2.py +8 -20
- ansys/api/discovery/v0/monitors.proto +137 -0
- ansys/api/discovery/v0/monitors_pb2.py +42 -0
- ansys/api/discovery/v0/monitors_pb2.pyi +307 -0
- ansys/api/discovery/v0/monitors_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/monitors_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/scriptparameters_pb2.py +3 -37
- ansys/api/discovery/v0/simulations.proto +0 -1
- ansys/api/discovery/v0/simulations_pb2.py +8 -19
- ansys/api/discovery/v0/solution.proto +19 -2
- ansys/api/discovery/v0/solution_pb2.py +18 -40
- ansys/api/discovery/v0/solution_pb2.pyi +53 -0
- ansys/api/discovery/v0/solution_pb2_grpc.py +33 -0
- ansys/api/discovery/v0/solution_pb2_grpc.pyi +10 -0
- ansys/api/discovery/v0/units_pb2.py +3 -1232
- {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/METADATA +8 -8
- ansys_api_discovery-0.6.1.dist-info/RECORD +75 -0
- {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/WHEEL +1 -1
- ansys_api_discovery-0.5.2.dist-info/RECORD +0 -55
- {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/monitors.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.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
15
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
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\x1bgoogle/protobuf/empty.proto\"\x9e\x01\n\x14\x43reateMonitorRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\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\"\xaa\x02\n\x11MonitorProperties\x12H\n\x0fresult_variable\x18\x01 \x01(\x0e\x32/.ansys.api.discovery.v0.monitors.ResultVariable\x12H\n\x0fresult_function\x18\x02 \x01(\x0e\x32/.ansys.api.discovery.v0.monitors.ResultFunction\x12O\n\x10result_component\x18\x03 \x01(\x0e\x32\x30.ansys.api.discovery.v0.monitors.ResultComponentH\x00\x88\x01\x01\x12\x1b\n\x13locations_secondary\x18\x04 \x03(\tB\x13\n\x11_result_component\"\x86\x01\n\x11MonitorDefinition\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\t\x12\x43\n\x07monitor\x18\x04 \x01(\x0b\x32\x32.ansys.api.discovery.v0.monitors.MonitorProperties*\x83\x0e\n\x0eResultVariable\x12\x1f\n\x1bRESULT_VARIABLE_UNSPECIFIED\x10\x00\x12 \n\x1cRESULT_VARIABLE_DISPLACEMENT\x10\x01\x12$\n RESULT_VARIABLE_VON_MISES_STRESS\x10\x02\x12\x1f\n\x1bRESULT_VARIABLE_TEMPERATURE\x10\x03\x12\x1a\n\x16RESULT_VARIABLE_STRESS\x10\x04\x12$\n RESULT_VARIABLE_PRINCIPAL_STRESS\x10\x05\x12\"\n\x1eRESULT_VARIABLE_ELASTIC_STRAIN\x10\x06\x12,\n(RESULT_VARIABLE_PRINCIPAL_ELASTIC_STRAIN\x10\x07\x12\x1d\n\x19RESULT_VARIABLE_HEAT_FLUX\x10\x08\x12\x1c\n\x18RESULT_VARIABLE_PRESSURE\x10\t\x12\x1c\n\x18RESULT_VARIABLE_VELOCITY\x10\n\x12%\n!RESULT_VARIABLE_VORTICES_LAMBDA_2\x10\x0b\x12\x18\n\x14RESULT_VARIABLE_MASS\x10\x0c\x12(\n$RESULT_VARIABLE_LOCAL_REACTION_FORCE\x10\r\x12&\n\"RESULT_VARIABLE_REACTION_RESULTANT\x10\x0e\x12\x1b\n\x17RESULT_VARIABLE_DENSITY\x10\x0f\x12$\n RESULT_VARIABLE_FACTOR_OF_SAFETY\x10\x10\x12!\n\x1dRESULT_VARIABLE_PRESSURE_DROP\x10\x11\x12$\n RESULT_VARIABLE_CONTACT_REACTION\x10\x12\x12%\n!RESULT_VARIABLE_JOINT_TOTAL_FORCE\x10\x13\x12&\n\"RESULT_VARIABLE_JOINT_TOTAL_MOMENT\x10\x14\x12\x1d\n\x19RESULT_VARIABLE_FREQUENCY\x10\x15\x12#\n\x1fRESULT_VARIABLE_MESH_STATISTICS\x10\x16\x12 \n\x1cRESULT_VARIABLE_MESH_QUALITY\x10\x17\x12\x1f\n\x1bRESULT_VARIABLE_FLUID_FORCE\x10\x18\x12\x1a\n\x16RESULT_VARIABLE_VOLUME\x10\x19\x12\x1f\n\x1bRESULT_VARIABLE_VOLUME_FLOW\x10\x1a\x12\x1d\n\x19RESULT_VARIABLE_MASS_FLOW\x10\x1b\x12\x1d\n\x19RESULT_VARIABLE_HEAT_FLOW\x10\x1c\x12\"\n\x1eRESULT_VARIABLE_TOTAL_PRESSURE\x10\x1d\x12#\n\x1fRESULT_VARIABLE_FLOW_UNIFORMITY\x10\x1e\x12 \n\x1cRESULT_VARIABLE_S_PARAMETERS\x10\x1f\x12\x18\n\x14RESULT_VARIABLE_GAIN\x10 \x12!\n\x1dRESULT_VARIABLE_REALIZED_GAIN\x10!\x12\x1f\n\x1bRESULT_VARIABLE_DIRECTIVITY\x10\"\x12\x1f\n\x1bRESULT_VARIABLE_AXIAL_RATIO\x10#\x12\x1c\n\x18RESULT_VARIABLE_RADIAL_E\x10$\x12\"\n\x1eRESULT_VARIABLE_CONTACT_STRESS\x10%\x12\x1f\n\x1bRESULT_VARIABLE_MACH_NUMBER\x10&\x12\"\n\x1eRESULT_VARIABLE_ELECTRIC_FIELD\x10\'\x12\"\n\x1eRESULT_VARIABLE_MAGNETIC_FIELD\x10(\x12/\n+RESULT_VARIABLE_CONNECTION_FACTOR_OF_SAFETY\x10)\x12 \n\x1cRESULT_VARIABLE_AXIAL_STRESS\x10*\x12$\n RESULT_VARIABLE_TORSIONAL_MOMENT\x10+\x12\x1f\n\x1bRESULT_VARIABLE_SHEAR_FORCE\x10,\x12&\n\"RESULT_VARIABLE_ANTENNA_PARAMETERS\x10-\x12&\n\"RESULT_VARIABLE_OPERATING_PRESSURE\x10.\x12\'\n#RESULT_VARIABLE_RADIATIVE_HEAT_FLUX\x10/\x12\x1b\n\x17RESULT_VARIABLE_VOLTAGE\x10\x30\x12#\n\x1fRESULT_VARIABLE_CURRENT_DENSITY\x10\x31\x12\x1e\n\x1aRESULT_VARIABLE_JOULE_HEAT\x10\x32*\xe7\x01\n\x0eResultFunction\x12\x1f\n\x1bRESULT_FUNCTION_UNSPECIFIED\x10\x00\x12\x1b\n\x17RESULT_FUNCTION_MINIMUM\x10\x01\x12\x1b\n\x17RESULT_FUNCTION_MAXIMUM\x10\x02\x12\x1b\n\x17RESULT_FUNCTION_AVERAGE\x10\x03\x12\x17\n\x13RESULT_FUNCTION_SUM\x10\x04\x12\x1c\n\x18RESULT_FUNCTION_INTEGRAL\x10\x05\x12&\n\"RESULT_FUNCTION_STANDARD_DEVIATION\x10\x06*\xbb\x06\n\x0fResultComponent\x12 \n\x1cRESULT_COMPONENT_UNSPECIFIED\x10\x00\x12\x19\n\x15RESULT_COMPONENT_NONE\x10\x01\x12\x16\n\x12RESULT_COMPONENT_X\x10\x02\x12\x16\n\x12RESULT_COMPONENT_Y\x10\x03\x12\x16\n\x12RESULT_COMPONENT_Z\x10\x04\x12\x17\n\x13RESULT_COMPONENT_XX\x10\x05\x12\x17\n\x13RESULT_COMPONENT_YY\x10\x06\x12\x17\n\x13RESULT_COMPONENT_ZZ\x10\x07\x12\x17\n\x13RESULT_COMPONENT_YZ\x10\x08\x12\x17\n\x13RESULT_COMPONENT_XY\x10\t\x12\x17\n\x13RESULT_COMPONENT_XZ\x10\n\x12\x18\n\x14RESULT_COMPONENT_MAG\x10\x0b\x12\x1a\n\x16RESULT_COMPONENT_FIRST\x10\x0c\x12\x1b\n\x17RESULT_COMPONENT_SECOND\x10\r\x12\x1a\n\x16RESULT_COMPONENT_THIRD\x10\x0e\x12\x1d\n\x19RESULT_COMPONENT_VELOCITY\x10\x0f\x12 \n\x1cRESULT_COMPONENT_TEMPERATURE\x10\x10\x12\x19\n\x15RESULT_COMPONENT_REAL\x10\x11\x12\x1e\n\x1aRESULT_COMPONENT_IMAGINARY\x10\x12\x12\x1a\n\x16RESULT_COMPONENT_PHASE\x10\x13\x12$\n RESULT_COMPONENT_LOGARITHMIC_MAG\x10\x14\x12$\n RESULT_COMPONENT_CONJUGATE_PHASE\x10\x15\x12\x1a\n\x16RESULT_COMPONENT_TOTAL\x10\x16\x12\x18\n\x14RESULT_COMPONENT_L3X\x10\x17\x12\x18\n\x14RESULT_COMPONENT_L3Y\x10\x18\x12\x19\n\x15RESULT_COMPONENT_RHCP\x10\x19\x12\x19\n\x15RESULT_COMPONENT_LHCP\x10\x1a\x12\x1a\n\x16RESULT_COMPONENT_THETA\x10\x1b\x12\x18\n\x14RESULT_COMPONENT_PHI\x10\x1c\x32\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')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.monitors_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002\037Ansys.Api.Discovery.V0.Monitors'
|
|
26
|
+
_RESULTVARIABLE._serialized_start=914
|
|
27
|
+
_RESULTVARIABLE._serialized_end=2709
|
|
28
|
+
_RESULTFUNCTION._serialized_start=2712
|
|
29
|
+
_RESULTFUNCTION._serialized_end=2943
|
|
30
|
+
_RESULTCOMPONENT._serialized_start=2946
|
|
31
|
+
_RESULTCOMPONENT._serialized_end=3773
|
|
32
|
+
_CREATEMONITORREQUEST._serialized_start=150
|
|
33
|
+
_CREATEMONITORREQUEST._serialized_end=308
|
|
34
|
+
_MONITORCREATIONRESPONSE._serialized_start=311
|
|
35
|
+
_MONITORCREATIONRESPONSE._serialized_end=473
|
|
36
|
+
_MONITORPROPERTIES._serialized_start=476
|
|
37
|
+
_MONITORPROPERTIES._serialized_end=774
|
|
38
|
+
_MONITORDEFINITION._serialized_start=777
|
|
39
|
+
_MONITORDEFINITION._serialized_end=911
|
|
40
|
+
_MONITORS._serialized_start=3776
|
|
41
|
+
_MONITORS._serialized_end=3917
|
|
42
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.internal.containers
|
|
9
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
15
|
+
|
|
16
|
+
class _ResultVariable:
|
|
17
|
+
ValueType = typing.NewType('ValueType', builtins.int)
|
|
18
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
19
|
+
class _ResultVariableEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResultVariable.ValueType], builtins.type):
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
|
|
21
|
+
RESULT_VARIABLE_UNSPECIFIED: ResultVariable.ValueType = ... # 0
|
|
22
|
+
RESULT_VARIABLE_DISPLACEMENT: ResultVariable.ValueType = ... # 1
|
|
23
|
+
RESULT_VARIABLE_VON_MISES_STRESS: ResultVariable.ValueType = ... # 2
|
|
24
|
+
RESULT_VARIABLE_TEMPERATURE: ResultVariable.ValueType = ... # 3
|
|
25
|
+
RESULT_VARIABLE_STRESS: ResultVariable.ValueType = ... # 4
|
|
26
|
+
RESULT_VARIABLE_PRINCIPAL_STRESS: ResultVariable.ValueType = ... # 5
|
|
27
|
+
RESULT_VARIABLE_ELASTIC_STRAIN: ResultVariable.ValueType = ... # 6
|
|
28
|
+
RESULT_VARIABLE_PRINCIPAL_ELASTIC_STRAIN: ResultVariable.ValueType = ... # 7
|
|
29
|
+
RESULT_VARIABLE_HEAT_FLUX: ResultVariable.ValueType = ... # 8
|
|
30
|
+
RESULT_VARIABLE_PRESSURE: ResultVariable.ValueType = ... # 9
|
|
31
|
+
RESULT_VARIABLE_VELOCITY: ResultVariable.ValueType = ... # 10
|
|
32
|
+
RESULT_VARIABLE_VORTICES_LAMBDA_2: ResultVariable.ValueType = ... # 11
|
|
33
|
+
RESULT_VARIABLE_MASS: ResultVariable.ValueType = ... # 12
|
|
34
|
+
RESULT_VARIABLE_LOCAL_REACTION_FORCE: ResultVariable.ValueType = ... # 13
|
|
35
|
+
RESULT_VARIABLE_REACTION_RESULTANT: ResultVariable.ValueType = ... # 14
|
|
36
|
+
RESULT_VARIABLE_DENSITY: ResultVariable.ValueType = ... # 15
|
|
37
|
+
RESULT_VARIABLE_FACTOR_OF_SAFETY: ResultVariable.ValueType = ... # 16
|
|
38
|
+
RESULT_VARIABLE_PRESSURE_DROP: ResultVariable.ValueType = ... # 17
|
|
39
|
+
RESULT_VARIABLE_CONTACT_REACTION: ResultVariable.ValueType = ... # 18
|
|
40
|
+
RESULT_VARIABLE_JOINT_TOTAL_FORCE: ResultVariable.ValueType = ... # 19
|
|
41
|
+
RESULT_VARIABLE_JOINT_TOTAL_MOMENT: ResultVariable.ValueType = ... # 20
|
|
42
|
+
RESULT_VARIABLE_FREQUENCY: ResultVariable.ValueType = ... # 21
|
|
43
|
+
RESULT_VARIABLE_MESH_STATISTICS: ResultVariable.ValueType = ... # 22
|
|
44
|
+
RESULT_VARIABLE_MESH_QUALITY: ResultVariable.ValueType = ... # 23
|
|
45
|
+
RESULT_VARIABLE_FLUID_FORCE: ResultVariable.ValueType = ... # 24
|
|
46
|
+
RESULT_VARIABLE_VOLUME: ResultVariable.ValueType = ... # 25
|
|
47
|
+
RESULT_VARIABLE_VOLUME_FLOW: ResultVariable.ValueType = ... # 26
|
|
48
|
+
RESULT_VARIABLE_MASS_FLOW: ResultVariable.ValueType = ... # 27
|
|
49
|
+
RESULT_VARIABLE_HEAT_FLOW: ResultVariable.ValueType = ... # 28
|
|
50
|
+
RESULT_VARIABLE_TOTAL_PRESSURE: ResultVariable.ValueType = ... # 29
|
|
51
|
+
RESULT_VARIABLE_FLOW_UNIFORMITY: ResultVariable.ValueType = ... # 30
|
|
52
|
+
RESULT_VARIABLE_S_PARAMETERS: ResultVariable.ValueType = ... # 31
|
|
53
|
+
RESULT_VARIABLE_GAIN: ResultVariable.ValueType = ... # 32
|
|
54
|
+
RESULT_VARIABLE_REALIZED_GAIN: ResultVariable.ValueType = ... # 33
|
|
55
|
+
RESULT_VARIABLE_DIRECTIVITY: ResultVariable.ValueType = ... # 34
|
|
56
|
+
RESULT_VARIABLE_AXIAL_RATIO: ResultVariable.ValueType = ... # 35
|
|
57
|
+
RESULT_VARIABLE_RADIAL_E: ResultVariable.ValueType = ... # 36
|
|
58
|
+
RESULT_VARIABLE_CONTACT_STRESS: ResultVariable.ValueType = ... # 37
|
|
59
|
+
RESULT_VARIABLE_MACH_NUMBER: ResultVariable.ValueType = ... # 38
|
|
60
|
+
RESULT_VARIABLE_ELECTRIC_FIELD: ResultVariable.ValueType = ... # 39
|
|
61
|
+
RESULT_VARIABLE_MAGNETIC_FIELD: ResultVariable.ValueType = ... # 40
|
|
62
|
+
RESULT_VARIABLE_CONNECTION_FACTOR_OF_SAFETY: ResultVariable.ValueType = ... # 41
|
|
63
|
+
RESULT_VARIABLE_AXIAL_STRESS: ResultVariable.ValueType = ... # 42
|
|
64
|
+
RESULT_VARIABLE_TORSIONAL_MOMENT: ResultVariable.ValueType = ... # 43
|
|
65
|
+
RESULT_VARIABLE_SHEAR_FORCE: ResultVariable.ValueType = ... # 44
|
|
66
|
+
RESULT_VARIABLE_ANTENNA_PARAMETERS: ResultVariable.ValueType = ... # 45
|
|
67
|
+
RESULT_VARIABLE_OPERATING_PRESSURE: ResultVariable.ValueType = ... # 46
|
|
68
|
+
RESULT_VARIABLE_RADIATIVE_HEAT_FLUX: ResultVariable.ValueType = ... # 47
|
|
69
|
+
RESULT_VARIABLE_VOLTAGE: ResultVariable.ValueType = ... # 48
|
|
70
|
+
RESULT_VARIABLE_CURRENT_DENSITY: ResultVariable.ValueType = ... # 49
|
|
71
|
+
RESULT_VARIABLE_JOULE_HEAT: ResultVariable.ValueType = ... # 50
|
|
72
|
+
class ResultVariable(_ResultVariable, metaclass=_ResultVariableEnumTypeWrapper):
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
RESULT_VARIABLE_UNSPECIFIED: ResultVariable.ValueType = ... # 0
|
|
76
|
+
RESULT_VARIABLE_DISPLACEMENT: ResultVariable.ValueType = ... # 1
|
|
77
|
+
RESULT_VARIABLE_VON_MISES_STRESS: ResultVariable.ValueType = ... # 2
|
|
78
|
+
RESULT_VARIABLE_TEMPERATURE: ResultVariable.ValueType = ... # 3
|
|
79
|
+
RESULT_VARIABLE_STRESS: ResultVariable.ValueType = ... # 4
|
|
80
|
+
RESULT_VARIABLE_PRINCIPAL_STRESS: ResultVariable.ValueType = ... # 5
|
|
81
|
+
RESULT_VARIABLE_ELASTIC_STRAIN: ResultVariable.ValueType = ... # 6
|
|
82
|
+
RESULT_VARIABLE_PRINCIPAL_ELASTIC_STRAIN: ResultVariable.ValueType = ... # 7
|
|
83
|
+
RESULT_VARIABLE_HEAT_FLUX: ResultVariable.ValueType = ... # 8
|
|
84
|
+
RESULT_VARIABLE_PRESSURE: ResultVariable.ValueType = ... # 9
|
|
85
|
+
RESULT_VARIABLE_VELOCITY: ResultVariable.ValueType = ... # 10
|
|
86
|
+
RESULT_VARIABLE_VORTICES_LAMBDA_2: ResultVariable.ValueType = ... # 11
|
|
87
|
+
RESULT_VARIABLE_MASS: ResultVariable.ValueType = ... # 12
|
|
88
|
+
RESULT_VARIABLE_LOCAL_REACTION_FORCE: ResultVariable.ValueType = ... # 13
|
|
89
|
+
RESULT_VARIABLE_REACTION_RESULTANT: ResultVariable.ValueType = ... # 14
|
|
90
|
+
RESULT_VARIABLE_DENSITY: ResultVariable.ValueType = ... # 15
|
|
91
|
+
RESULT_VARIABLE_FACTOR_OF_SAFETY: ResultVariable.ValueType = ... # 16
|
|
92
|
+
RESULT_VARIABLE_PRESSURE_DROP: ResultVariable.ValueType = ... # 17
|
|
93
|
+
RESULT_VARIABLE_CONTACT_REACTION: ResultVariable.ValueType = ... # 18
|
|
94
|
+
RESULT_VARIABLE_JOINT_TOTAL_FORCE: ResultVariable.ValueType = ... # 19
|
|
95
|
+
RESULT_VARIABLE_JOINT_TOTAL_MOMENT: ResultVariable.ValueType = ... # 20
|
|
96
|
+
RESULT_VARIABLE_FREQUENCY: ResultVariable.ValueType = ... # 21
|
|
97
|
+
RESULT_VARIABLE_MESH_STATISTICS: ResultVariable.ValueType = ... # 22
|
|
98
|
+
RESULT_VARIABLE_MESH_QUALITY: ResultVariable.ValueType = ... # 23
|
|
99
|
+
RESULT_VARIABLE_FLUID_FORCE: ResultVariable.ValueType = ... # 24
|
|
100
|
+
RESULT_VARIABLE_VOLUME: ResultVariable.ValueType = ... # 25
|
|
101
|
+
RESULT_VARIABLE_VOLUME_FLOW: ResultVariable.ValueType = ... # 26
|
|
102
|
+
RESULT_VARIABLE_MASS_FLOW: ResultVariable.ValueType = ... # 27
|
|
103
|
+
RESULT_VARIABLE_HEAT_FLOW: ResultVariable.ValueType = ... # 28
|
|
104
|
+
RESULT_VARIABLE_TOTAL_PRESSURE: ResultVariable.ValueType = ... # 29
|
|
105
|
+
RESULT_VARIABLE_FLOW_UNIFORMITY: ResultVariable.ValueType = ... # 30
|
|
106
|
+
RESULT_VARIABLE_S_PARAMETERS: ResultVariable.ValueType = ... # 31
|
|
107
|
+
RESULT_VARIABLE_GAIN: ResultVariable.ValueType = ... # 32
|
|
108
|
+
RESULT_VARIABLE_REALIZED_GAIN: ResultVariable.ValueType = ... # 33
|
|
109
|
+
RESULT_VARIABLE_DIRECTIVITY: ResultVariable.ValueType = ... # 34
|
|
110
|
+
RESULT_VARIABLE_AXIAL_RATIO: ResultVariable.ValueType = ... # 35
|
|
111
|
+
RESULT_VARIABLE_RADIAL_E: ResultVariable.ValueType = ... # 36
|
|
112
|
+
RESULT_VARIABLE_CONTACT_STRESS: ResultVariable.ValueType = ... # 37
|
|
113
|
+
RESULT_VARIABLE_MACH_NUMBER: ResultVariable.ValueType = ... # 38
|
|
114
|
+
RESULT_VARIABLE_ELECTRIC_FIELD: ResultVariable.ValueType = ... # 39
|
|
115
|
+
RESULT_VARIABLE_MAGNETIC_FIELD: ResultVariable.ValueType = ... # 40
|
|
116
|
+
RESULT_VARIABLE_CONNECTION_FACTOR_OF_SAFETY: ResultVariable.ValueType = ... # 41
|
|
117
|
+
RESULT_VARIABLE_AXIAL_STRESS: ResultVariable.ValueType = ... # 42
|
|
118
|
+
RESULT_VARIABLE_TORSIONAL_MOMENT: ResultVariable.ValueType = ... # 43
|
|
119
|
+
RESULT_VARIABLE_SHEAR_FORCE: ResultVariable.ValueType = ... # 44
|
|
120
|
+
RESULT_VARIABLE_ANTENNA_PARAMETERS: ResultVariable.ValueType = ... # 45
|
|
121
|
+
RESULT_VARIABLE_OPERATING_PRESSURE: ResultVariable.ValueType = ... # 46
|
|
122
|
+
RESULT_VARIABLE_RADIATIVE_HEAT_FLUX: ResultVariable.ValueType = ... # 47
|
|
123
|
+
RESULT_VARIABLE_VOLTAGE: ResultVariable.ValueType = ... # 48
|
|
124
|
+
RESULT_VARIABLE_CURRENT_DENSITY: ResultVariable.ValueType = ... # 49
|
|
125
|
+
RESULT_VARIABLE_JOULE_HEAT: ResultVariable.ValueType = ... # 50
|
|
126
|
+
global___ResultVariable = ResultVariable
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class _ResultFunction:
|
|
130
|
+
ValueType = typing.NewType('ValueType', builtins.int)
|
|
131
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
132
|
+
class _ResultFunctionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResultFunction.ValueType], builtins.type):
|
|
133
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
|
|
134
|
+
RESULT_FUNCTION_UNSPECIFIED: ResultFunction.ValueType = ... # 0
|
|
135
|
+
RESULT_FUNCTION_MINIMUM: ResultFunction.ValueType = ... # 1
|
|
136
|
+
RESULT_FUNCTION_MAXIMUM: ResultFunction.ValueType = ... # 2
|
|
137
|
+
RESULT_FUNCTION_AVERAGE: ResultFunction.ValueType = ... # 3
|
|
138
|
+
RESULT_FUNCTION_SUM: ResultFunction.ValueType = ... # 4
|
|
139
|
+
RESULT_FUNCTION_INTEGRAL: ResultFunction.ValueType = ... # 5
|
|
140
|
+
RESULT_FUNCTION_STANDARD_DEVIATION: ResultFunction.ValueType = ... # 6
|
|
141
|
+
class ResultFunction(_ResultFunction, metaclass=_ResultFunctionEnumTypeWrapper):
|
|
142
|
+
pass
|
|
143
|
+
|
|
144
|
+
RESULT_FUNCTION_UNSPECIFIED: ResultFunction.ValueType = ... # 0
|
|
145
|
+
RESULT_FUNCTION_MINIMUM: ResultFunction.ValueType = ... # 1
|
|
146
|
+
RESULT_FUNCTION_MAXIMUM: ResultFunction.ValueType = ... # 2
|
|
147
|
+
RESULT_FUNCTION_AVERAGE: ResultFunction.ValueType = ... # 3
|
|
148
|
+
RESULT_FUNCTION_SUM: ResultFunction.ValueType = ... # 4
|
|
149
|
+
RESULT_FUNCTION_INTEGRAL: ResultFunction.ValueType = ... # 5
|
|
150
|
+
RESULT_FUNCTION_STANDARD_DEVIATION: ResultFunction.ValueType = ... # 6
|
|
151
|
+
global___ResultFunction = ResultFunction
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class _ResultComponent:
|
|
155
|
+
ValueType = typing.NewType('ValueType', builtins.int)
|
|
156
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
157
|
+
class _ResultComponentEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResultComponent.ValueType], builtins.type):
|
|
158
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
|
|
159
|
+
RESULT_COMPONENT_UNSPECIFIED: ResultComponent.ValueType = ... # 0
|
|
160
|
+
RESULT_COMPONENT_NONE: ResultComponent.ValueType = ... # 1
|
|
161
|
+
RESULT_COMPONENT_X: ResultComponent.ValueType = ... # 2
|
|
162
|
+
RESULT_COMPONENT_Y: ResultComponent.ValueType = ... # 3
|
|
163
|
+
RESULT_COMPONENT_Z: ResultComponent.ValueType = ... # 4
|
|
164
|
+
RESULT_COMPONENT_XX: ResultComponent.ValueType = ... # 5
|
|
165
|
+
RESULT_COMPONENT_YY: ResultComponent.ValueType = ... # 6
|
|
166
|
+
RESULT_COMPONENT_ZZ: ResultComponent.ValueType = ... # 7
|
|
167
|
+
RESULT_COMPONENT_YZ: ResultComponent.ValueType = ... # 8
|
|
168
|
+
RESULT_COMPONENT_XY: ResultComponent.ValueType = ... # 9
|
|
169
|
+
RESULT_COMPONENT_XZ: ResultComponent.ValueType = ... # 10
|
|
170
|
+
RESULT_COMPONENT_MAG: ResultComponent.ValueType = ... # 11
|
|
171
|
+
RESULT_COMPONENT_FIRST: ResultComponent.ValueType = ... # 12
|
|
172
|
+
RESULT_COMPONENT_SECOND: ResultComponent.ValueType = ... # 13
|
|
173
|
+
RESULT_COMPONENT_THIRD: ResultComponent.ValueType = ... # 14
|
|
174
|
+
RESULT_COMPONENT_VELOCITY: ResultComponent.ValueType = ... # 15
|
|
175
|
+
RESULT_COMPONENT_TEMPERATURE: ResultComponent.ValueType = ... # 16
|
|
176
|
+
RESULT_COMPONENT_REAL: ResultComponent.ValueType = ... # 17
|
|
177
|
+
RESULT_COMPONENT_IMAGINARY: ResultComponent.ValueType = ... # 18
|
|
178
|
+
RESULT_COMPONENT_PHASE: ResultComponent.ValueType = ... # 19
|
|
179
|
+
RESULT_COMPONENT_LOGARITHMIC_MAG: ResultComponent.ValueType = ... # 20
|
|
180
|
+
RESULT_COMPONENT_CONJUGATE_PHASE: ResultComponent.ValueType = ... # 21
|
|
181
|
+
RESULT_COMPONENT_TOTAL: ResultComponent.ValueType = ... # 22
|
|
182
|
+
RESULT_COMPONENT_L3X: ResultComponent.ValueType = ... # 23
|
|
183
|
+
RESULT_COMPONENT_L3Y: ResultComponent.ValueType = ... # 24
|
|
184
|
+
RESULT_COMPONENT_RHCP: ResultComponent.ValueType = ... # 25
|
|
185
|
+
RESULT_COMPONENT_LHCP: ResultComponent.ValueType = ... # 26
|
|
186
|
+
RESULT_COMPONENT_THETA: ResultComponent.ValueType = ... # 27
|
|
187
|
+
RESULT_COMPONENT_PHI: ResultComponent.ValueType = ... # 28
|
|
188
|
+
class ResultComponent(_ResultComponent, metaclass=_ResultComponentEnumTypeWrapper):
|
|
189
|
+
pass
|
|
190
|
+
|
|
191
|
+
RESULT_COMPONENT_UNSPECIFIED: ResultComponent.ValueType = ... # 0
|
|
192
|
+
RESULT_COMPONENT_NONE: ResultComponent.ValueType = ... # 1
|
|
193
|
+
RESULT_COMPONENT_X: ResultComponent.ValueType = ... # 2
|
|
194
|
+
RESULT_COMPONENT_Y: ResultComponent.ValueType = ... # 3
|
|
195
|
+
RESULT_COMPONENT_Z: ResultComponent.ValueType = ... # 4
|
|
196
|
+
RESULT_COMPONENT_XX: ResultComponent.ValueType = ... # 5
|
|
197
|
+
RESULT_COMPONENT_YY: ResultComponent.ValueType = ... # 6
|
|
198
|
+
RESULT_COMPONENT_ZZ: ResultComponent.ValueType = ... # 7
|
|
199
|
+
RESULT_COMPONENT_YZ: ResultComponent.ValueType = ... # 8
|
|
200
|
+
RESULT_COMPONENT_XY: ResultComponent.ValueType = ... # 9
|
|
201
|
+
RESULT_COMPONENT_XZ: ResultComponent.ValueType = ... # 10
|
|
202
|
+
RESULT_COMPONENT_MAG: ResultComponent.ValueType = ... # 11
|
|
203
|
+
RESULT_COMPONENT_FIRST: ResultComponent.ValueType = ... # 12
|
|
204
|
+
RESULT_COMPONENT_SECOND: ResultComponent.ValueType = ... # 13
|
|
205
|
+
RESULT_COMPONENT_THIRD: ResultComponent.ValueType = ... # 14
|
|
206
|
+
RESULT_COMPONENT_VELOCITY: ResultComponent.ValueType = ... # 15
|
|
207
|
+
RESULT_COMPONENT_TEMPERATURE: ResultComponent.ValueType = ... # 16
|
|
208
|
+
RESULT_COMPONENT_REAL: ResultComponent.ValueType = ... # 17
|
|
209
|
+
RESULT_COMPONENT_IMAGINARY: ResultComponent.ValueType = ... # 18
|
|
210
|
+
RESULT_COMPONENT_PHASE: ResultComponent.ValueType = ... # 19
|
|
211
|
+
RESULT_COMPONENT_LOGARITHMIC_MAG: ResultComponent.ValueType = ... # 20
|
|
212
|
+
RESULT_COMPONENT_CONJUGATE_PHASE: ResultComponent.ValueType = ... # 21
|
|
213
|
+
RESULT_COMPONENT_TOTAL: ResultComponent.ValueType = ... # 22
|
|
214
|
+
RESULT_COMPONENT_L3X: ResultComponent.ValueType = ... # 23
|
|
215
|
+
RESULT_COMPONENT_L3Y: ResultComponent.ValueType = ... # 24
|
|
216
|
+
RESULT_COMPONENT_RHCP: ResultComponent.ValueType = ... # 25
|
|
217
|
+
RESULT_COMPONENT_LHCP: ResultComponent.ValueType = ... # 26
|
|
218
|
+
RESULT_COMPONENT_THETA: ResultComponent.ValueType = ... # 27
|
|
219
|
+
RESULT_COMPONENT_PHI: ResultComponent.ValueType = ... # 28
|
|
220
|
+
global___ResultComponent = ResultComponent
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class CreateMonitorRequest(google.protobuf.message.Message):
|
|
224
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
225
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
226
|
+
MONITOR_FIELD_NUMBER: builtins.int
|
|
227
|
+
@property
|
|
228
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData:
|
|
229
|
+
"""The monitor id"""
|
|
230
|
+
pass
|
|
231
|
+
@property
|
|
232
|
+
def monitor(self) -> global___MonitorProperties: ...
|
|
233
|
+
def __init__(self,
|
|
234
|
+
*,
|
|
235
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
236
|
+
monitor : typing.Optional[global___MonitorProperties] = ...,
|
|
237
|
+
) -> None: ...
|
|
238
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","monitor",b"monitor"]) -> builtins.bool: ...
|
|
239
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","monitor",b"monitor"]) -> None: ...
|
|
240
|
+
global___CreateMonitorRequest = CreateMonitorRequest
|
|
241
|
+
|
|
242
|
+
class MonitorCreationResponse(google.protobuf.message.Message):
|
|
243
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
244
|
+
MONITOR_RESPONSE_FIELD_NUMBER: builtins.int
|
|
245
|
+
MONITOR_FIELD_NUMBER: builtins.int
|
|
246
|
+
@property
|
|
247
|
+
def monitor_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse:
|
|
248
|
+
"""Creation response"""
|
|
249
|
+
pass
|
|
250
|
+
@property
|
|
251
|
+
def monitor(self) -> global___MonitorDefinition:
|
|
252
|
+
"""Monitor definition"""
|
|
253
|
+
pass
|
|
254
|
+
def __init__(self,
|
|
255
|
+
*,
|
|
256
|
+
monitor_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
257
|
+
monitor : typing.Optional[global___MonitorDefinition] = ...,
|
|
258
|
+
) -> None: ...
|
|
259
|
+
def HasField(self, field_name: typing_extensions.Literal["monitor",b"monitor","monitor_response",b"monitor_response"]) -> builtins.bool: ...
|
|
260
|
+
def ClearField(self, field_name: typing_extensions.Literal["monitor",b"monitor","monitor_response",b"monitor_response"]) -> None: ...
|
|
261
|
+
global___MonitorCreationResponse = MonitorCreationResponse
|
|
262
|
+
|
|
263
|
+
class MonitorProperties(google.protobuf.message.Message):
|
|
264
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
265
|
+
RESULT_VARIABLE_FIELD_NUMBER: builtins.int
|
|
266
|
+
RESULT_FUNCTION_FIELD_NUMBER: builtins.int
|
|
267
|
+
RESULT_COMPONENT_FIELD_NUMBER: builtins.int
|
|
268
|
+
LOCATIONS_SECONDARY_FIELD_NUMBER: builtins.int
|
|
269
|
+
result_variable: global___ResultVariable.ValueType = ...
|
|
270
|
+
result_function: global___ResultFunction.ValueType = ...
|
|
271
|
+
result_component: global___ResultComponent.ValueType = ...
|
|
272
|
+
@property
|
|
273
|
+
def locations_secondary(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
274
|
+
def __init__(self,
|
|
275
|
+
*,
|
|
276
|
+
result_variable : global___ResultVariable.ValueType = ...,
|
|
277
|
+
result_function : global___ResultFunction.ValueType = ...,
|
|
278
|
+
result_component : typing.Optional[global___ResultComponent.ValueType] = ...,
|
|
279
|
+
locations_secondary : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
280
|
+
) -> None: ...
|
|
281
|
+
def HasField(self, field_name: typing_extensions.Literal["_result_component",b"_result_component","result_component",b"result_component"]) -> builtins.bool: ...
|
|
282
|
+
def ClearField(self, field_name: typing_extensions.Literal["_result_component",b"_result_component","locations_secondary",b"locations_secondary","result_component",b"result_component","result_function",b"result_function","result_variable",b"result_variable"]) -> None: ...
|
|
283
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_result_component",b"_result_component"]) -> typing.Optional[typing_extensions.Literal["result_component"]]: ...
|
|
284
|
+
global___MonitorProperties = MonitorProperties
|
|
285
|
+
|
|
286
|
+
class MonitorDefinition(google.protobuf.message.Message):
|
|
287
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
288
|
+
ID_FIELD_NUMBER: builtins.int
|
|
289
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
290
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
291
|
+
MONITOR_FIELD_NUMBER: builtins.int
|
|
292
|
+
id: typing.Text = ...
|
|
293
|
+
label: typing.Text = ...
|
|
294
|
+
@property
|
|
295
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
296
|
+
@property
|
|
297
|
+
def monitor(self) -> global___MonitorProperties: ...
|
|
298
|
+
def __init__(self,
|
|
299
|
+
*,
|
|
300
|
+
id : typing.Text = ...,
|
|
301
|
+
label : typing.Text = ...,
|
|
302
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
303
|
+
monitor : typing.Optional[global___MonitorProperties] = ...,
|
|
304
|
+
) -> None: ...
|
|
305
|
+
def HasField(self, field_name: typing_extensions.Literal["monitor",b"monitor"]) -> builtins.bool: ...
|
|
306
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","monitor",b"monitor"]) -> None: ...
|
|
307
|
+
global___MonitorDefinition = MonitorDefinition
|
|
@@ -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 import monitors_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MonitorsStub(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.CreateMonitor = channel.unary_unary(
|
|
18
|
+
'/ansys.api.discovery.v0.monitors.Monitors/CreateMonitor',
|
|
19
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.CreateMonitorRequest.SerializeToString,
|
|
20
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.MonitorCreationResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class MonitorsServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def CreateMonitor(self, request, context):
|
|
28
|
+
"""Creates a new monitor
|
|
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_MonitorsServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'CreateMonitor': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.CreateMonitor,
|
|
39
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.CreateMonitorRequest.FromString,
|
|
40
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.MonitorCreationResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'ansys.api.discovery.v0.monitors.Monitors', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# This class is part of an EXPERIMENTAL API.
|
|
49
|
+
class Monitors(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def CreateMonitor(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.monitors.Monitors/CreateMonitor',
|
|
64
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.CreateMonitorRequest.SerializeToString,
|
|
65
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_monitors__pb2.MonitorCreationResponse.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.monitors_pb2
|
|
7
|
+
import grpc
|
|
8
|
+
|
|
9
|
+
class MonitorsStub:
|
|
10
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
11
|
+
CreateMonitor: grpc.UnaryUnaryMultiCallable[
|
|
12
|
+
ansys.api.discovery.v0.monitors_pb2.CreateMonitorRequest,
|
|
13
|
+
ansys.api.discovery.v0.monitors_pb2.MonitorCreationResponse] = ...
|
|
14
|
+
"""Creates a new monitor"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class MonitorsServicer(metaclass=abc.ABCMeta):
|
|
18
|
+
@abc.abstractmethod
|
|
19
|
+
def CreateMonitor(self,
|
|
20
|
+
request: ansys.api.discovery.v0.monitors_pb2.CreateMonitorRequest,
|
|
21
|
+
context: grpc.ServicerContext,
|
|
22
|
+
) -> ansys.api.discovery.v0.monitors_pb2.MonitorCreationResponse:
|
|
23
|
+
"""Creates a new monitor"""
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def add_MonitorsServicer_to_server(servicer: MonitorsServicer, server: grpc.Server) -> None: ...
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# source: ansys/api/discovery/v0/scriptparameters.proto
|
|
4
4
|
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
5
6
|
from google.protobuf import descriptor as _descriptor
|
|
6
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
-
from google.protobuf import message as _message
|
|
8
|
-
from google.protobuf import reflection as _reflection
|
|
9
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
10
9
|
# @@protoc_insertion_point(imports)
|
|
11
10
|
|
|
@@ -19,41 +18,8 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
|
19
18
|
|
|
20
19
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-ansys/api/discovery/v0/scriptparameters.proto\x12\'ansys.api.discovery.v0.scriptparameters\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x1f\n\rGetAllRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\"T\n\x0eGetAllResponse\x12\x42\n\x11script_parameters\x18\x01 \x03(\x0b\x32\'.ansys.api.discovery.v0.ScriptParameter\"R\n\rUpdateRequest\x12\x41\n\x10script_parameter\x18\x01 \x01(\x0b\x32\'.ansys.api.discovery.v0.ScriptParameter\" \n\x0eReplayResponse\x12\x0e\n\x06result\x18\x01 \x01(\t2\xa7\x03\n\x10ScriptParameters\x12R\n\x03Get\x12\".ansys.api.dbu.v0.EntityIdentifier\x1a\'.ansys.api.discovery.v0.ScriptParameter\x12y\n\x06GetAll\x12\x36.ansys.api.discovery.v0.scriptparameters.GetAllRequest\x1a\x37.ansys.api.discovery.v0.scriptparameters.GetAllResponse\x12i\n\x06Update\x12\x36.ansys.api.discovery.v0.scriptparameters.UpdateRequest\x1a\'.ansys.api.discovery.v0.ScriptParameter\x12Y\n\x06Replay\x12\x16.google.protobuf.Empty\x1a\x37.ansys.api.discovery.v0.scriptparameters.ReplayResponseB*\xaa\x02\'Ansys.Api.Discovery.V0.ScriptParametersb\x06proto3')
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_GETALLREQUEST = DESCRIPTOR.message_types_by_name['GetAllRequest']
|
|
25
|
-
_GETALLRESPONSE = DESCRIPTOR.message_types_by_name['GetAllResponse']
|
|
26
|
-
_UPDATEREQUEST = DESCRIPTOR.message_types_by_name['UpdateRequest']
|
|
27
|
-
_REPLAYRESPONSE = DESCRIPTOR.message_types_by_name['ReplayResponse']
|
|
28
|
-
GetAllRequest = _reflection.GeneratedProtocolMessageType('GetAllRequest', (_message.Message,), {
|
|
29
|
-
'DESCRIPTOR' : _GETALLREQUEST,
|
|
30
|
-
'__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
|
|
31
|
-
# @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.GetAllRequest)
|
|
32
|
-
})
|
|
33
|
-
_sym_db.RegisterMessage(GetAllRequest)
|
|
34
|
-
|
|
35
|
-
GetAllResponse = _reflection.GeneratedProtocolMessageType('GetAllResponse', (_message.Message,), {
|
|
36
|
-
'DESCRIPTOR' : _GETALLRESPONSE,
|
|
37
|
-
'__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
|
|
38
|
-
# @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.GetAllResponse)
|
|
39
|
-
})
|
|
40
|
-
_sym_db.RegisterMessage(GetAllResponse)
|
|
41
|
-
|
|
42
|
-
UpdateRequest = _reflection.GeneratedProtocolMessageType('UpdateRequest', (_message.Message,), {
|
|
43
|
-
'DESCRIPTOR' : _UPDATEREQUEST,
|
|
44
|
-
'__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
|
|
45
|
-
# @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.UpdateRequest)
|
|
46
|
-
})
|
|
47
|
-
_sym_db.RegisterMessage(UpdateRequest)
|
|
48
|
-
|
|
49
|
-
ReplayResponse = _reflection.GeneratedProtocolMessageType('ReplayResponse', (_message.Message,), {
|
|
50
|
-
'DESCRIPTOR' : _REPLAYRESPONSE,
|
|
51
|
-
'__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
|
|
52
|
-
# @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.ReplayResponse)
|
|
53
|
-
})
|
|
54
|
-
_sym_db.RegisterMessage(ReplayResponse)
|
|
55
|
-
|
|
56
|
-
_SCRIPTPARAMETERS = DESCRIPTOR.services_by_name['ScriptParameters']
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.scriptparameters_pb2', globals())
|
|
57
23
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
58
24
|
|
|
59
25
|
DESCRIPTOR._options = None
|
|
@@ -2,40 +2,29 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# source: ansys/api/discovery/v0/simulations.proto
|
|
4
4
|
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
5
6
|
from google.protobuf import descriptor as _descriptor
|
|
6
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
-
from google.protobuf import message as _message
|
|
8
|
-
from google.protobuf import reflection as _reflection
|
|
9
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
10
9
|
# @@protoc_insertion_point(imports)
|
|
11
10
|
|
|
12
11
|
_sym_db = _symbol_database.Default()
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
16
14
|
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
17
15
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
18
16
|
|
|
19
17
|
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/simulations.proto\x12\"ansys.api.discovery.v0.simulations\x1a
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/simulations.proto\x12\"ansys.api.discovery.v0.simulations\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"I\n\x0eGetAllResponse\x12\x37\n\x0bsimulations\x18\x01 \x03(\x0b\x32\".ansys.api.discovery.v0.Simulation2\xb3\x01\n\x0bSimulations\x12N\n\x10\x43reateSimulation\x12\x16.google.protobuf.Empty\x1a\".ansys.api.discovery.v0.Simulation\x12T\n\x06GetAll\x12\x16.google.protobuf.Empty\x1a\x32.ansys.api.discovery.v0.simulations.GetAllResponseB%\xaa\x02\"Ansys.Api.Discovery.V0.Simulationsb\x06proto3')
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_GETALLRESPONSE = DESCRIPTOR.message_types_by_name['GetAllResponse']
|
|
25
|
-
GetAllResponse = _reflection.GeneratedProtocolMessageType('GetAllResponse', (_message.Message,), {
|
|
26
|
-
'DESCRIPTOR' : _GETALLRESPONSE,
|
|
27
|
-
'__module__' : 'ansys.api.discovery.v0.simulations_pb2'
|
|
28
|
-
# @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.simulations.GetAllResponse)
|
|
29
|
-
})
|
|
30
|
-
_sym_db.RegisterMessage(GetAllResponse)
|
|
31
|
-
|
|
32
|
-
_SIMULATIONS = DESCRIPTOR.services_by_name['Simulations']
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.simulations_pb2', globals())
|
|
33
22
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
34
23
|
|
|
35
24
|
DESCRIPTOR._options = None
|
|
36
25
|
DESCRIPTOR._serialized_options = b'\252\002\"Ansys.Api.Discovery.V0.Simulations'
|
|
37
|
-
_GETALLRESPONSE._serialized_start=
|
|
38
|
-
_GETALLRESPONSE._serialized_end=
|
|
39
|
-
_SIMULATIONS._serialized_start=
|
|
40
|
-
_SIMULATIONS._serialized_end=
|
|
26
|
+
_GETALLRESPONSE._serialized_start=155
|
|
27
|
+
_GETALLRESPONSE._serialized_end=228
|
|
28
|
+
_SIMULATIONS._serialized_start=231
|
|
29
|
+
_SIMULATIONS._serialized_end=410
|
|
41
30
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
syntax = "proto3";
|
|
3
3
|
package ansys.api.discovery.v0.solution;
|
|
4
4
|
|
|
5
|
-
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
-
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
5
|
import "google/protobuf/empty.proto";
|
|
8
6
|
|
|
9
7
|
option csharp_namespace = "Ansys.Api.Discovery.V0.Solution";
|
|
@@ -12,6 +10,7 @@ service Solution
|
|
|
12
10
|
{
|
|
13
11
|
rpc GetSolverFidelity(SimulationStageRequest) returns (SolverFidelityResponse);
|
|
14
12
|
rpc SetSolverFidelity(SolverFidelityRequest) returns (google.protobuf.Empty);
|
|
13
|
+
rpc Solve(SolveExecutionRequest) returns (SolveExecutionResponse);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
message SolverFidelityRequest{
|
|
@@ -19,6 +18,7 @@ message SolverFidelityRequest{
|
|
|
19
18
|
double value = 2;
|
|
20
19
|
}
|
|
21
20
|
|
|
21
|
+
//TODO Replace string with Enum
|
|
22
22
|
message SimulationStageRequest{
|
|
23
23
|
string simulation = 1;
|
|
24
24
|
string stage = 2;
|
|
@@ -26,4 +26,21 @@ message SimulationStageRequest{
|
|
|
26
26
|
|
|
27
27
|
message SolverFidelityResponse{
|
|
28
28
|
double value = 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message SolveExecutionRequest{
|
|
32
|
+
string simulation_id = 1;
|
|
33
|
+
SolverManager solver_manager = 2;
|
|
34
|
+
bool execute_remotely =3;
|
|
35
|
+
repeated string variation_id_list = 4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message SolveExecutionResponse{
|
|
39
|
+
bool success = 1;
|
|
40
|
+
string message = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
enum SolverManager {
|
|
44
|
+
ARTEMIS= 0;
|
|
45
|
+
APOLLO = 1;
|
|
29
46
|
}
|