ansys-api-discovery 0.5.1__py3-none-any.whl → 0.5.2__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.

Files changed (34) hide show
  1. ansys/api/discovery/VERSION +1 -1
  2. ansys/api/discovery/v0/conditions.proto +67 -0
  3. ansys/api/discovery/v0/conditions_pb2.py +91 -0
  4. ansys/api/discovery/v0/conditions_pb2.pyi +123 -0
  5. ansys/api/discovery/v0/conditions_pb2_grpc.py +233 -0
  6. ansys/api/discovery/v0/conditions_pb2_grpc.pyi +78 -0
  7. ansys/api/discovery/v0/definedvariationstable.proto +1 -0
  8. ansys/api/discovery/v0/definedvariationstable_pb2.py +6 -6
  9. ansys/api/discovery/v0/definedvariationstable_pb2.pyi +4 -1
  10. ansys/api/discovery/v0/discoverymodels.proto +45 -0
  11. ansys/api/discovery/v0/discoverymodels_pb2.py +48 -5
  12. ansys/api/discovery/v0/discoverymodels_pb2.pyi +116 -3
  13. ansys/api/discovery/v0/messaging.proto +21 -0
  14. ansys/api/discovery/v0/messaging_pb2.py +41 -0
  15. ansys/api/discovery/v0/messaging_pb2.pyi +22 -0
  16. ansys/api/discovery/v0/messaging_pb2_grpc.py +106 -0
  17. ansys/api/discovery/v0/messaging_pb2_grpc.pyi +38 -0
  18. ansys/api/discovery/v0/simulations.proto +23 -0
  19. ansys/api/discovery/v0/simulations_pb2.py +41 -0
  20. ansys/api/discovery/v0/simulations_pb2.pyi +27 -0
  21. ansys/api/discovery/v0/simulations_pb2_grpc.py +103 -0
  22. ansys/api/discovery/v0/simulations_pb2_grpc.pyi +42 -0
  23. ansys/api/discovery/v0/solution.proto +29 -0
  24. ansys/api/discovery/v0/solution_pb2.py +61 -0
  25. ansys/api/discovery/v0/solution_pb2.pyi +52 -0
  26. ansys/api/discovery/v0/solution_pb2_grpc.py +100 -0
  27. ansys/api/discovery/v0/solution_pb2_grpc.pyi +35 -0
  28. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.5.2.dist-info}/METADATA +3 -3
  29. ansys_api_discovery-0.5.2.dist-info/RECORD +55 -0
  30. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.5.2.dist-info}/WHEEL +1 -1
  31. ansys_api_discovery-0.5.1.dist-info/RECORD +0 -35
  32. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.5.2.dist-info}/LICENSE +0 -0
  33. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.5.2.dist-info}/entry_points.txt +0 -0
  34. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.5.2.dist-info}/top_level.txt +0 -0
@@ -191,14 +191,17 @@ class UpdateResponse(google.protobuf.message.Message):
191
191
  """
192
192
  DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
193
193
  RESULT_FIELD_NUMBER: builtins.int
194
+ MESSAGE_FIELD_NUMBER: builtins.int
194
195
  result: builtins.bool = ...
195
196
  """The result"""
196
197
 
198
+ message: typing.Text = ...
197
199
  def __init__(self,
198
200
  *,
199
201
  result : builtins.bool = ...,
202
+ message : typing.Text = ...,
200
203
  ) -> None: ...
201
- def ClearField(self, field_name: typing_extensions.Literal["result",b"result"]) -> None: ...
204
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message","result",b"result"]) -> None: ...
202
205
  global___UpdateResponse = UpdateResponse
203
206
 
204
207
  class IsSolvingResponse(google.protobuf.message.Message):
@@ -84,8 +84,52 @@ message ScriptParameter {
84
84
  ansys.api.dbu.v0.DimensionType dimension_type = 3;
85
85
  double dimension_value = 4;
86
86
  }
87
+ //
88
+ // SIMULATIONS PROTOS
89
+ //
90
+ message Simulation {
91
+ string id = 1;
92
+ string label = 2;
93
+ }
94
+ //
95
+ // CONDITIONS PROTOS
96
+ //
87
97
 
98
+ // Heat
88
99
  //
100
+
101
+ // Defines how heat is specified
102
+ enum HeatSpecification {
103
+ TOTALHEAT = 0;
104
+ HEATPERUNITVOLUMEORAREA = 1;
105
+ }
106
+
107
+ // Defines whether heat is applied to body or face
108
+ enum LocationSpecification {
109
+ FACELOCATIONS = 0;
110
+ BODYLOCATIONS = 1;
111
+ }
112
+
113
+ // Heat definition
114
+ message Heat {
115
+ string id = 1;
116
+ string parentid = 2;
117
+ string label = 3;
118
+ repeated string locations = 4;
119
+ bool suppressed = 5;
120
+ HeatSpecification heat_specifcation = 6;
121
+ Quantity total_heat = 7;
122
+ Quantity heat_per_unitvolume = 8;
123
+ Quantity heat_per_unitarea = 9;
124
+ }
125
+
126
+ message Quantity {
127
+ QuantityType quantity_type = 1;
128
+ double quantity_value = 2;
129
+ int32 unit = 3;
130
+ string unit_abbreviation = 4;
131
+ }
132
+
89
133
  // Represents the quantity type for a physics parameter.
90
134
  enum QuantityType {
91
135
  QUANTITY_TYPE_ACCELERATION=0;
@@ -168,4 +212,5 @@ enum QuantityType {
168
212
  QUANTITY_TYPE_VOLUME_FLOW=77;
169
213
  QUANTITY_TYPE_VOLUME_PER_LENGTH=78;
170
214
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79;
215
+ QUANTITY_TYPE_NONE=80;
171
216
  }
@@ -16,16 +16,24 @@ _sym_db = _symbol_database.Default()
16
16
  from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,ansys/api/discovery/v0/discoverymodels.proto\x12\x16\x61nsys.api.discovery.v0\x1a ansys/api/dbu/v0/dbumodels.proto\"\xa8\x01\n\tVariation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07starred\x18\x03 \x01(\x08\x12\x36\n\x06inputs\x18\x04 \x03(\x0b\x32&.ansys.api.discovery.v0.InputParameter\x12\x38\n\x07outputs\x18\x05 \x03(\x0b\x32\'.ansys.api.discovery.v0.OutputParameter\"|\n\x0bInputColumn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\t\x12\x44\n\x14parameter_variations\x18\x04 \x03(\x0b\x32&.ansys.api.discovery.v0.InputParameter\"~\n\x0cOutputColumn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\t\x12\x45\n\x14parameter_variations\x18\x04 \x03(\x0b\x32\'.ansys.api.discovery.v0.OutputParameter\"\x83\x01\n\x15HistoryTrackParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x0e\x64imension_type\x18\x03 \x01(\x0e\x32\x1f.ansys.api.dbu.v0.DimensionType\x12\x17\n\x0f\x64imension_value\x18\x04 \x01(\x01\"\x95\x02\n\x0eInputParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tparent_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12;\n\rquantity_type\x18\x04 \x01(\x0e\x32$.ansys.api.discovery.v0.QuantityType\x12\x16\n\x0equantity_value\x18\x05 \x01(\x01\x12\x0c\n\x04unit\x18\x06 \x01(\x05\x12\x19\n\x11unit_abbreviation\x18\x07 \x01(\t\x12>\n\ninput_type\x18\x08 \x01(\x0e\x32*.ansys.api.discovery.v0.InputParameterType\x12\x18\n\x10parent_object_id\x18\t \x01(\t\"\xbc\x01\n\x0fOutputParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tparent_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12;\n\rquantity_type\x18\x04 \x01(\x0e\x32$.ansys.api.discovery.v0.QuantityType\x12\x16\n\x0equantity_value\x18\x05 \x01(\x01\x12\x0c\n\x04unit\x18\x06 \x01(\x05\x12\x19\n\x11unit_abbreviation\x18\x07 \x01(\t\"}\n\x0fScriptParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x0e\x64imension_type\x18\x03 \x01(\x0e\x32\x1f.ansys.api.dbu.v0.DimensionType\x12\x17\n\x0f\x64imension_value\x18\x04 \x01(\x01*X\n\x12InputParameterType\x12\x0b\n\x07PHYSICS\x10\x00\x12\x15\n\x11\x44RIVING_DIMENSION\x10\x01\x12\x11\n\rHISTORY_TRACK\x10\x02\x12\x0b\n\x07UNKNOWN\x10\x03*\x82\x16\n\x0cQuantityType\x12\x1e\n\x1aQUANTITY_TYPE_ACCELERATION\x10\x00\x12\x17\n\x13QUANTITY_TYPE_ANGLE\x10\x01\x12\x16\n\x12QUANTITY_TYPE_AREA\x10\x02\x12\x1e\n\x1aQUANTITY_TYPE_AREA_DENSITY\x10\x03\x12(\n$QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA\x10\x04\x12\x1d\n\x19QUANTITY_TYPE_CAPACITANCE\x10\x05\x12\x32\n.QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION\x10\x06\x12\x19\n\x15QUANTITY_TYPE_DENSITY\x10\x07\x12#\n\x1fQUANTITY_TYPE_DYNAMIC_VISCOSITY\x10\x08\x12%\n!QUANTITY_TYPE_ELECTRIC_ADMITTANCE\x10\t\x12!\n\x1dQUANTITY_TYPE_ELECTRIC_CHARGE\x10\n\x12)\n%QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY\x10\x0b\x12&\n\"QUANTITY_TYPE_ELECTRIC_CONDUCTANCE\x10\x0c\x12\'\n#QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY\x10\r\x12\"\n\x1eQUANTITY_TYPE_ELECTRIC_CURRENT\x10\x0e\x12*\n&QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY\x10\x0f\x12+\n\'QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT\x10\x10\x12 \n\x1cQUANTITY_TYPE_ELECTRIC_FIELD\x10\x11\x12%\n!QUANTITY_TYPE_ELECTRIC_INDUCTANCE\x10\x12\x12$\n QUANTITY_TYPE_ELECTRIC_POTENTIAL\x10\x13\x12\'\n#QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC\x10\x14\x12\x30\n,QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE\x10\x15\x12\'\n#QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC\x10\x16\x12%\n!QUANTITY_TYPE_ELECTRIC_RESISTANCE\x10\x17\x12&\n\"QUANTITY_TYPE_ELECTRIC_RESISTIVITY\x10\x18\x12\x31\n-QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY\x10\x19\x12\x18\n\x14QUANTITY_TYPE_ENERGY\x10\x1a\x12\x19\n\x15QUANTITY_TYPE_ENTROPY\x10\x1b\x12\x17\n\x13QUANTITY_TYPE_FORCE\x10\x1c\x12#\n\x1fQUANTITY_TYPE_FORCE_CHANGE_RATE\x10\x1d\x12\"\n\x1eQUANTITY_TYPE_FORCE_PER_LENGTH\x10\x1e\x12\x1b\n\x17QUANTITY_TYPE_FREQUENCY\x10\x1f\x12\x1b\n\x17QUANTITY_TYPE_HEAT_FLUX\x10 \x12+\n\'QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT\x10!\x12\x1e\n\x1aQUANTITY_TYPE_INVERSE_AREA\x10\"\x12 \n\x1cQUANTITY_TYPE_INVERSE_LENGTH\x10#\x12%\n!QUANTITY_TYPE_KINEMATIC_VISCOSITY\x10$\x12\x18\n\x14QUANTITY_TYPE_LENGTH\x10%\x12 \n\x1cQUANTITY_TYPE_MAGNETIC_FIELD\x10&\x12\x16\n\x12QUANTITY_TYPE_MASS\x10\'\x12$\n QUANTITY_TYPE_MASS_CONCENTRATION\x10(\x12\x1b\n\x17QUANTITY_TYPE_MASS_FLOW\x10)\x12\x1b\n\x17QUANTITY_TYPE_MASS_FLUX\x10*\x12\x1f\n\x1bQUANTITY_TYPE_MASS_FRACTION\x10+\x12(\n$QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA\x10,\x12\x1a\n\x16QUANTITY_TYPE_MOLARITY\x10-\x12\x1c\n\x18QUANTITY_TYPE_MOLAR_MASS\x10.\x12\x1e\n\x1aQUANTITY_TYPE_PERMEABILITY\x10/\x12\x1e\n\x1aQUANTITY_TYPE_PERMITTIVITY\x10\x30\x12\x17\n\x13QUANTITY_TYPE_POWER\x10\x31\x12\x1f\n\x1bQUANTITY_TYPE_POWER_DENSITY\x10\x32\x12\x1d\n\x19QUANTITY_TYPE_POWER_RATIO\x10\x33\x12\x1a\n\x16QUANTITY_TYPE_PRESSURE\x10\x34\x12\x17\n\x13QUANTITY_TYPE_RATIO\x10\x35\x12#\n\x1fQUANTITY_TYPE_RATIO_CHANGE_RATE\x10\x36\x12!\n\x1dQUANTITY_TYPE_REACTIVE_ENERGY\x10\x37\x12 \n\x1cQUANTITY_TYPE_REACTIVE_POWER\x10\x38\x12)\n%QUANTITY_TYPE_ROTATIONAL_ACCELERATION\x10\x39\x12\"\n\x1eQUANTITY_TYPE_ROTATIONAL_SPEED\x10:\x12&\n\"QUANTITY_TYPE_ROTATIONAL_STIFFNESS\x10;\x12\x31\n-QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH\x10<\x12\x1d\n\x19QUANTITY_TYPE_SOLID_ANGLE\x10=\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_ENERGY\x10>\x12\"\n\x1eQUANTITY_TYPE_SPECIFIC_ENTROPY\x10?\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_VOLUME\x10@\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_WEIGHT\x10\x41\x12\x17\n\x13QUANTITY_TYPE_SPEED\x10\x42\x12\x1d\n\x19QUANTITY_TYPE_TEMPERATURE\x10\x43\x12)\n%QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE\x10\x44\x12#\n\x1fQUANTITY_TYPE_TEMPERATURE_DELTA\x10\x45\x12&\n\"QUANTITY_TYPE_THERMAL_CONDUCTIVITY\x10\x46\x12$\n QUANTITY_TYPE_THERMAL_RESISTANCE\x10G\x12\x16\n\x12QUANTITY_TYPE_TIME\x10H\x12\x18\n\x14QUANTITY_TYPE_TORQUE\x10I\x12#\n\x1fQUANTITY_TYPE_TORQUE_PER_LENGTH\x10J\x12\x18\n\x14QUANTITY_TYPE_VOLUME\x10K\x12&\n\"QUANTITY_TYPE_VOLUME_CONCENTRATION\x10L\x12\x1d\n\x19QUANTITY_TYPE_VOLUME_FLOW\x10M\x12#\n\x1fQUANTITY_TYPE_VOLUME_PER_LENGTH\x10N\x12+\n\'QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA\x10OB\x19\xaa\x02\x16\x41nsys.Api.Discovery.V0b\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,ansys/api/discovery/v0/discoverymodels.proto\x12\x16\x61nsys.api.discovery.v0\x1a ansys/api/dbu/v0/dbumodels.proto\"\xa8\x01\n\tVariation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07starred\x18\x03 \x01(\x08\x12\x36\n\x06inputs\x18\x04 \x03(\x0b\x32&.ansys.api.discovery.v0.InputParameter\x12\x38\n\x07outputs\x18\x05 \x03(\x0b\x32\'.ansys.api.discovery.v0.OutputParameter\"|\n\x0bInputColumn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\t\x12\x44\n\x14parameter_variations\x18\x04 \x03(\x0b\x32&.ansys.api.discovery.v0.InputParameter\"~\n\x0cOutputColumn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\t\x12\x45\n\x14parameter_variations\x18\x04 \x03(\x0b\x32\'.ansys.api.discovery.v0.OutputParameter\"\x83\x01\n\x15HistoryTrackParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x0e\x64imension_type\x18\x03 \x01(\x0e\x32\x1f.ansys.api.dbu.v0.DimensionType\x12\x17\n\x0f\x64imension_value\x18\x04 \x01(\x01\"\x95\x02\n\x0eInputParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tparent_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12;\n\rquantity_type\x18\x04 \x01(\x0e\x32$.ansys.api.discovery.v0.QuantityType\x12\x16\n\x0equantity_value\x18\x05 \x01(\x01\x12\x0c\n\x04unit\x18\x06 \x01(\x05\x12\x19\n\x11unit_abbreviation\x18\x07 \x01(\t\x12>\n\ninput_type\x18\x08 \x01(\x0e\x32*.ansys.api.discovery.v0.InputParameterType\x12\x18\n\x10parent_object_id\x18\t \x01(\t\"\xbc\x01\n\x0fOutputParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tparent_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12;\n\rquantity_type\x18\x04 \x01(\x0e\x32$.ansys.api.discovery.v0.QuantityType\x12\x16\n\x0equantity_value\x18\x05 \x01(\x01\x12\x0c\n\x04unit\x18\x06 \x01(\x05\x12\x19\n\x11unit_abbreviation\x18\x07 \x01(\t\"}\n\x0fScriptParameter\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x0e\x64imension_type\x18\x03 \x01(\x0e\x32\x1f.ansys.api.dbu.v0.DimensionType\x12\x17\n\x0f\x64imension_value\x18\x04 \x01(\x01\"\'\n\nSimulation\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\"\xd2\x02\n\x04Heat\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08parentid\x18\x02 \x01(\t\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12\x44\n\x11heat_specifcation\x18\x06 \x01(\x0e\x32).ansys.api.discovery.v0.HeatSpecification\x12\x34\n\ntotal_heat\x18\x07 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\x12=\n\x13heat_per_unitvolume\x18\x08 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\x12;\n\x11heat_per_unitarea\x18\t \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\x88\x01\n\x08Quantity\x12;\n\rquantity_type\x18\x01 \x01(\x0e\x32$.ansys.api.discovery.v0.QuantityType\x12\x16\n\x0equantity_value\x18\x02 \x01(\x01\x12\x0c\n\x04unit\x18\x03 \x01(\x05\x12\x19\n\x11unit_abbreviation\x18\x04 \x01(\t*X\n\x12InputParameterType\x12\x0b\n\x07PHYSICS\x10\x00\x12\x15\n\x11\x44RIVING_DIMENSION\x10\x01\x12\x11\n\rHISTORY_TRACK\x10\x02\x12\x0b\n\x07UNKNOWN\x10\x03*?\n\x11HeatSpecification\x12\r\n\tTOTALHEAT\x10\x00\x12\x1b\n\x17HEATPERUNITVOLUMEORAREA\x10\x01*=\n\x15LocationSpecification\x12\x11\n\rFACELOCATIONS\x10\x00\x12\x11\n\rBODYLOCATIONS\x10\x01*\x9a\x16\n\x0cQuantityType\x12\x1e\n\x1aQUANTITY_TYPE_ACCELERATION\x10\x00\x12\x17\n\x13QUANTITY_TYPE_ANGLE\x10\x01\x12\x16\n\x12QUANTITY_TYPE_AREA\x10\x02\x12\x1e\n\x1aQUANTITY_TYPE_AREA_DENSITY\x10\x03\x12(\n$QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA\x10\x04\x12\x1d\n\x19QUANTITY_TYPE_CAPACITANCE\x10\x05\x12\x32\n.QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION\x10\x06\x12\x19\n\x15QUANTITY_TYPE_DENSITY\x10\x07\x12#\n\x1fQUANTITY_TYPE_DYNAMIC_VISCOSITY\x10\x08\x12%\n!QUANTITY_TYPE_ELECTRIC_ADMITTANCE\x10\t\x12!\n\x1dQUANTITY_TYPE_ELECTRIC_CHARGE\x10\n\x12)\n%QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY\x10\x0b\x12&\n\"QUANTITY_TYPE_ELECTRIC_CONDUCTANCE\x10\x0c\x12\'\n#QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY\x10\r\x12\"\n\x1eQUANTITY_TYPE_ELECTRIC_CURRENT\x10\x0e\x12*\n&QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY\x10\x0f\x12+\n\'QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT\x10\x10\x12 \n\x1cQUANTITY_TYPE_ELECTRIC_FIELD\x10\x11\x12%\n!QUANTITY_TYPE_ELECTRIC_INDUCTANCE\x10\x12\x12$\n QUANTITY_TYPE_ELECTRIC_POTENTIAL\x10\x13\x12\'\n#QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC\x10\x14\x12\x30\n,QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE\x10\x15\x12\'\n#QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC\x10\x16\x12%\n!QUANTITY_TYPE_ELECTRIC_RESISTANCE\x10\x17\x12&\n\"QUANTITY_TYPE_ELECTRIC_RESISTIVITY\x10\x18\x12\x31\n-QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY\x10\x19\x12\x18\n\x14QUANTITY_TYPE_ENERGY\x10\x1a\x12\x19\n\x15QUANTITY_TYPE_ENTROPY\x10\x1b\x12\x17\n\x13QUANTITY_TYPE_FORCE\x10\x1c\x12#\n\x1fQUANTITY_TYPE_FORCE_CHANGE_RATE\x10\x1d\x12\"\n\x1eQUANTITY_TYPE_FORCE_PER_LENGTH\x10\x1e\x12\x1b\n\x17QUANTITY_TYPE_FREQUENCY\x10\x1f\x12\x1b\n\x17QUANTITY_TYPE_HEAT_FLUX\x10 \x12+\n\'QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT\x10!\x12\x1e\n\x1aQUANTITY_TYPE_INVERSE_AREA\x10\"\x12 \n\x1cQUANTITY_TYPE_INVERSE_LENGTH\x10#\x12%\n!QUANTITY_TYPE_KINEMATIC_VISCOSITY\x10$\x12\x18\n\x14QUANTITY_TYPE_LENGTH\x10%\x12 \n\x1cQUANTITY_TYPE_MAGNETIC_FIELD\x10&\x12\x16\n\x12QUANTITY_TYPE_MASS\x10\'\x12$\n QUANTITY_TYPE_MASS_CONCENTRATION\x10(\x12\x1b\n\x17QUANTITY_TYPE_MASS_FLOW\x10)\x12\x1b\n\x17QUANTITY_TYPE_MASS_FLUX\x10*\x12\x1f\n\x1bQUANTITY_TYPE_MASS_FRACTION\x10+\x12(\n$QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA\x10,\x12\x1a\n\x16QUANTITY_TYPE_MOLARITY\x10-\x12\x1c\n\x18QUANTITY_TYPE_MOLAR_MASS\x10.\x12\x1e\n\x1aQUANTITY_TYPE_PERMEABILITY\x10/\x12\x1e\n\x1aQUANTITY_TYPE_PERMITTIVITY\x10\x30\x12\x17\n\x13QUANTITY_TYPE_POWER\x10\x31\x12\x1f\n\x1bQUANTITY_TYPE_POWER_DENSITY\x10\x32\x12\x1d\n\x19QUANTITY_TYPE_POWER_RATIO\x10\x33\x12\x1a\n\x16QUANTITY_TYPE_PRESSURE\x10\x34\x12\x17\n\x13QUANTITY_TYPE_RATIO\x10\x35\x12#\n\x1fQUANTITY_TYPE_RATIO_CHANGE_RATE\x10\x36\x12!\n\x1dQUANTITY_TYPE_REACTIVE_ENERGY\x10\x37\x12 \n\x1cQUANTITY_TYPE_REACTIVE_POWER\x10\x38\x12)\n%QUANTITY_TYPE_ROTATIONAL_ACCELERATION\x10\x39\x12\"\n\x1eQUANTITY_TYPE_ROTATIONAL_SPEED\x10:\x12&\n\"QUANTITY_TYPE_ROTATIONAL_STIFFNESS\x10;\x12\x31\n-QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH\x10<\x12\x1d\n\x19QUANTITY_TYPE_SOLID_ANGLE\x10=\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_ENERGY\x10>\x12\"\n\x1eQUANTITY_TYPE_SPECIFIC_ENTROPY\x10?\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_VOLUME\x10@\x12!\n\x1dQUANTITY_TYPE_SPECIFIC_WEIGHT\x10\x41\x12\x17\n\x13QUANTITY_TYPE_SPEED\x10\x42\x12\x1d\n\x19QUANTITY_TYPE_TEMPERATURE\x10\x43\x12)\n%QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE\x10\x44\x12#\n\x1fQUANTITY_TYPE_TEMPERATURE_DELTA\x10\x45\x12&\n\"QUANTITY_TYPE_THERMAL_CONDUCTIVITY\x10\x46\x12$\n QUANTITY_TYPE_THERMAL_RESISTANCE\x10G\x12\x16\n\x12QUANTITY_TYPE_TIME\x10H\x12\x18\n\x14QUANTITY_TYPE_TORQUE\x10I\x12#\n\x1fQUANTITY_TYPE_TORQUE_PER_LENGTH\x10J\x12\x18\n\x14QUANTITY_TYPE_VOLUME\x10K\x12&\n\"QUANTITY_TYPE_VOLUME_CONCENTRATION\x10L\x12\x1d\n\x19QUANTITY_TYPE_VOLUME_FLOW\x10M\x12#\n\x1fQUANTITY_TYPE_VOLUME_PER_LENGTH\x10N\x12+\n\'QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA\x10O\x12\x16\n\x12QUANTITY_TYPE_NONE\x10PB\x19\xaa\x02\x16\x41nsys.Api.Discovery.V0b\x06proto3')
20
20
 
21
21
  _INPUTPARAMETERTYPE = DESCRIPTOR.enum_types_by_name['InputParameterType']
22
22
  InputParameterType = enum_type_wrapper.EnumTypeWrapper(_INPUTPARAMETERTYPE)
23
+ _HEATSPECIFICATION = DESCRIPTOR.enum_types_by_name['HeatSpecification']
24
+ HeatSpecification = enum_type_wrapper.EnumTypeWrapper(_HEATSPECIFICATION)
25
+ _LOCATIONSPECIFICATION = DESCRIPTOR.enum_types_by_name['LocationSpecification']
26
+ LocationSpecification = enum_type_wrapper.EnumTypeWrapper(_LOCATIONSPECIFICATION)
23
27
  _QUANTITYTYPE = DESCRIPTOR.enum_types_by_name['QuantityType']
24
28
  QuantityType = enum_type_wrapper.EnumTypeWrapper(_QUANTITYTYPE)
25
29
  PHYSICS = 0
26
30
  DRIVING_DIMENSION = 1
27
31
  HISTORY_TRACK = 2
28
32
  UNKNOWN = 3
33
+ TOTALHEAT = 0
34
+ HEATPERUNITVOLUMEORAREA = 1
35
+ FACELOCATIONS = 0
36
+ BODYLOCATIONS = 1
29
37
  QUANTITY_TYPE_ACCELERATION = 0
30
38
  QUANTITY_TYPE_ANGLE = 1
31
39
  QUANTITY_TYPE_AREA = 2
@@ -106,6 +114,7 @@ QUANTITY_TYPE_VOLUME_CONCENTRATION = 76
106
114
  QUANTITY_TYPE_VOLUME_FLOW = 77
107
115
  QUANTITY_TYPE_VOLUME_PER_LENGTH = 78
108
116
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA = 79
117
+ QUANTITY_TYPE_NONE = 80
109
118
 
110
119
 
111
120
  _VARIATION = DESCRIPTOR.message_types_by_name['Variation']
@@ -115,6 +124,9 @@ _HISTORYTRACKPARAMETER = DESCRIPTOR.message_types_by_name['HistoryTrackParameter
115
124
  _INPUTPARAMETER = DESCRIPTOR.message_types_by_name['InputParameter']
116
125
  _OUTPUTPARAMETER = DESCRIPTOR.message_types_by_name['OutputParameter']
117
126
  _SCRIPTPARAMETER = DESCRIPTOR.message_types_by_name['ScriptParameter']
127
+ _SIMULATION = DESCRIPTOR.message_types_by_name['Simulation']
128
+ _HEAT = DESCRIPTOR.message_types_by_name['Heat']
129
+ _QUANTITY = DESCRIPTOR.message_types_by_name['Quantity']
118
130
  Variation = _reflection.GeneratedProtocolMessageType('Variation', (_message.Message,), {
119
131
  'DESCRIPTOR' : _VARIATION,
120
132
  '__module__' : 'ansys.api.discovery.v0.discoverymodels_pb2'
@@ -164,14 +176,39 @@ ScriptParameter = _reflection.GeneratedProtocolMessageType('ScriptParameter', (_
164
176
  })
165
177
  _sym_db.RegisterMessage(ScriptParameter)
166
178
 
179
+ Simulation = _reflection.GeneratedProtocolMessageType('Simulation', (_message.Message,), {
180
+ 'DESCRIPTOR' : _SIMULATION,
181
+ '__module__' : 'ansys.api.discovery.v0.discoverymodels_pb2'
182
+ # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.Simulation)
183
+ })
184
+ _sym_db.RegisterMessage(Simulation)
185
+
186
+ Heat = _reflection.GeneratedProtocolMessageType('Heat', (_message.Message,), {
187
+ 'DESCRIPTOR' : _HEAT,
188
+ '__module__' : 'ansys.api.discovery.v0.discoverymodels_pb2'
189
+ # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.Heat)
190
+ })
191
+ _sym_db.RegisterMessage(Heat)
192
+
193
+ Quantity = _reflection.GeneratedProtocolMessageType('Quantity', (_message.Message,), {
194
+ 'DESCRIPTOR' : _QUANTITY,
195
+ '__module__' : 'ansys.api.discovery.v0.discoverymodels_pb2'
196
+ # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.Quantity)
197
+ })
198
+ _sym_db.RegisterMessage(Quantity)
199
+
167
200
  if _descriptor._USE_C_DESCRIPTORS == False:
168
201
 
169
202
  DESCRIPTOR._options = None
170
203
  DESCRIPTOR._serialized_options = b'\252\002\026Ansys.Api.Discovery.V0'
171
- _INPUTPARAMETERTYPE._serialized_start=1263
172
- _INPUTPARAMETERTYPE._serialized_end=1351
173
- _QUANTITYTYPE._serialized_start=1354
174
- _QUANTITYTYPE._serialized_end=4172
204
+ _INPUTPARAMETERTYPE._serialized_start=1784
205
+ _INPUTPARAMETERTYPE._serialized_end=1872
206
+ _HEATSPECIFICATION._serialized_start=1874
207
+ _HEATSPECIFICATION._serialized_end=1937
208
+ _LOCATIONSPECIFICATION._serialized_start=1939
209
+ _LOCATIONSPECIFICATION._serialized_end=2000
210
+ _QUANTITYTYPE._serialized_start=2003
211
+ _QUANTITYTYPE._serialized_end=4845
175
212
  _VARIATION._serialized_start=107
176
213
  _VARIATION._serialized_end=275
177
214
  _INPUTCOLUMN._serialized_start=277
@@ -186,4 +223,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
186
223
  _OUTPUTPARAMETER._serialized_end=1134
187
224
  _SCRIPTPARAMETER._serialized_start=1136
188
225
  _SCRIPTPARAMETER._serialized_end=1261
226
+ _SIMULATION._serialized_start=1263
227
+ _SIMULATION._serialized_end=1302
228
+ _HEAT._serialized_start=1305
229
+ _HEAT._serialized_end=1643
230
+ _QUANTITY._serialized_start=1646
231
+ _QUANTITY._serialized_end=1782
189
232
  # @@protoc_insertion_point(module_scope)
@@ -32,6 +32,41 @@ UNKNOWN: InputParameterType.ValueType = ... # 3
32
32
  global___InputParameterType = InputParameterType
33
33
 
34
34
 
35
+ class _HeatSpecification:
36
+ ValueType = typing.NewType('ValueType', builtins.int)
37
+ V: typing_extensions.TypeAlias = ValueType
38
+ class _HeatSpecificationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_HeatSpecification.ValueType], builtins.type):
39
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
40
+ TOTALHEAT: HeatSpecification.ValueType = ... # 0
41
+ HEATPERUNITVOLUMEORAREA: HeatSpecification.ValueType = ... # 1
42
+ class HeatSpecification(_HeatSpecification, metaclass=_HeatSpecificationEnumTypeWrapper):
43
+ """Heat
44
+
45
+ Defines how heat is specified
46
+ """
47
+ pass
48
+
49
+ TOTALHEAT: HeatSpecification.ValueType = ... # 0
50
+ HEATPERUNITVOLUMEORAREA: HeatSpecification.ValueType = ... # 1
51
+ global___HeatSpecification = HeatSpecification
52
+
53
+
54
+ class _LocationSpecification:
55
+ ValueType = typing.NewType('ValueType', builtins.int)
56
+ V: typing_extensions.TypeAlias = ValueType
57
+ class _LocationSpecificationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LocationSpecification.ValueType], builtins.type):
58
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
59
+ FACELOCATIONS: LocationSpecification.ValueType = ... # 0
60
+ BODYLOCATIONS: LocationSpecification.ValueType = ... # 1
61
+ class LocationSpecification(_LocationSpecification, metaclass=_LocationSpecificationEnumTypeWrapper):
62
+ """Defines whether heat is applied to body or face"""
63
+ pass
64
+
65
+ FACELOCATIONS: LocationSpecification.ValueType = ... # 0
66
+ BODYLOCATIONS: LocationSpecification.ValueType = ... # 1
67
+ global___LocationSpecification = LocationSpecification
68
+
69
+
35
70
  class _QuantityType:
36
71
  ValueType = typing.NewType('ValueType', builtins.int)
37
72
  V: typing_extensions.TypeAlias = ValueType
@@ -117,10 +152,9 @@ class _QuantityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E
117
152
  QUANTITY_TYPE_VOLUME_FLOW: QuantityType.ValueType = ... # 77
118
153
  QUANTITY_TYPE_VOLUME_PER_LENGTH: QuantityType.ValueType = ... # 78
119
154
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA: QuantityType.ValueType = ... # 79
155
+ QUANTITY_TYPE_NONE: QuantityType.ValueType = ... # 80
120
156
  class QuantityType(_QuantityType, metaclass=_QuantityTypeEnumTypeWrapper):
121
- """
122
- Represents the quantity type for a physics parameter.
123
- """
157
+ """Represents the quantity type for a physics parameter."""
124
158
  pass
125
159
 
126
160
  QUANTITY_TYPE_ACCELERATION: QuantityType.ValueType = ... # 0
@@ -203,6 +237,7 @@ QUANTITY_TYPE_VOLUME_CONCENTRATION: QuantityType.ValueType = ... # 76
203
237
  QUANTITY_TYPE_VOLUME_FLOW: QuantityType.ValueType = ... # 77
204
238
  QUANTITY_TYPE_VOLUME_PER_LENGTH: QuantityType.ValueType = ... # 78
205
239
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA: QuantityType.ValueType = ... # 79
240
+ QUANTITY_TYPE_NONE: QuantityType.ValueType = ... # 80
206
241
  global___QuantityType = QuantityType
207
242
 
208
243
 
@@ -397,3 +432,81 @@ class ScriptParameter(google.protobuf.message.Message):
397
432
  ) -> None: ...
398
433
  def ClearField(self, field_name: typing_extensions.Literal["dimension_type",b"dimension_type","dimension_value",b"dimension_value","id",b"id","name",b"name"]) -> None: ...
399
434
  global___ScriptParameter = ScriptParameter
435
+
436
+ class Simulation(google.protobuf.message.Message):
437
+ """
438
+ SIMULATIONS PROTOS
439
+ """
440
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
441
+ ID_FIELD_NUMBER: builtins.int
442
+ LABEL_FIELD_NUMBER: builtins.int
443
+ id: typing.Text = ...
444
+ label: typing.Text = ...
445
+ def __init__(self,
446
+ *,
447
+ id : typing.Text = ...,
448
+ label : typing.Text = ...,
449
+ ) -> None: ...
450
+ def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label"]) -> None: ...
451
+ global___Simulation = Simulation
452
+
453
+ class Heat(google.protobuf.message.Message):
454
+ """Heat definition"""
455
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
456
+ ID_FIELD_NUMBER: builtins.int
457
+ PARENTID_FIELD_NUMBER: builtins.int
458
+ LABEL_FIELD_NUMBER: builtins.int
459
+ LOCATIONS_FIELD_NUMBER: builtins.int
460
+ SUPPRESSED_FIELD_NUMBER: builtins.int
461
+ HEAT_SPECIFCATION_FIELD_NUMBER: builtins.int
462
+ TOTAL_HEAT_FIELD_NUMBER: builtins.int
463
+ HEAT_PER_UNITVOLUME_FIELD_NUMBER: builtins.int
464
+ HEAT_PER_UNITAREA_FIELD_NUMBER: builtins.int
465
+ id: typing.Text = ...
466
+ parentid: typing.Text = ...
467
+ label: typing.Text = ...
468
+ @property
469
+ def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
470
+ suppressed: builtins.bool = ...
471
+ heat_specifcation: global___HeatSpecification.ValueType = ...
472
+ @property
473
+ def total_heat(self) -> global___Quantity: ...
474
+ @property
475
+ def heat_per_unitvolume(self) -> global___Quantity: ...
476
+ @property
477
+ def heat_per_unitarea(self) -> global___Quantity: ...
478
+ def __init__(self,
479
+ *,
480
+ id : typing.Text = ...,
481
+ parentid : typing.Text = ...,
482
+ label : typing.Text = ...,
483
+ locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
484
+ suppressed : builtins.bool = ...,
485
+ heat_specifcation : global___HeatSpecification.ValueType = ...,
486
+ total_heat : typing.Optional[global___Quantity] = ...,
487
+ heat_per_unitvolume : typing.Optional[global___Quantity] = ...,
488
+ heat_per_unitarea : typing.Optional[global___Quantity] = ...,
489
+ ) -> None: ...
490
+ def HasField(self, field_name: typing_extensions.Literal["heat_per_unitarea",b"heat_per_unitarea","heat_per_unitvolume",b"heat_per_unitvolume","total_heat",b"total_heat"]) -> builtins.bool: ...
491
+ def ClearField(self, field_name: typing_extensions.Literal["heat_per_unitarea",b"heat_per_unitarea","heat_per_unitvolume",b"heat_per_unitvolume","heat_specifcation",b"heat_specifcation","id",b"id","label",b"label","locations",b"locations","parentid",b"parentid","suppressed",b"suppressed","total_heat",b"total_heat"]) -> None: ...
492
+ global___Heat = Heat
493
+
494
+ class Quantity(google.protobuf.message.Message):
495
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
496
+ QUANTITY_TYPE_FIELD_NUMBER: builtins.int
497
+ QUANTITY_VALUE_FIELD_NUMBER: builtins.int
498
+ UNIT_FIELD_NUMBER: builtins.int
499
+ UNIT_ABBREVIATION_FIELD_NUMBER: builtins.int
500
+ quantity_type: global___QuantityType.ValueType = ...
501
+ quantity_value: builtins.float = ...
502
+ unit: builtins.int = ...
503
+ unit_abbreviation: typing.Text = ...
504
+ def __init__(self,
505
+ *,
506
+ quantity_type : global___QuantityType.ValueType = ...,
507
+ quantity_value : builtins.float = ...,
508
+ unit : builtins.int = ...,
509
+ unit_abbreviation : typing.Text = ...,
510
+ ) -> None: ...
511
+ def ClearField(self, field_name: typing_extensions.Literal["quantity_type",b"quantity_type","quantity_value",b"quantity_value","unit",b"unit","unit_abbreviation",b"unit_abbreviation"]) -> None: ...
512
+ global___Quantity = Quantity
@@ -0,0 +1,21 @@
1
+ // Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.discovery.v0.messaging;
5
+
6
+ import "ansys/api/dbu/v0/dbumodels.proto";
7
+ import "ansys/api/discovery/v0/discoverymodels.proto";
8
+ import "google/protobuf/empty.proto";
9
+
10
+ option csharp_namespace = "Ansys.Api.Discovery.V0.Messaging";
11
+
12
+ // Messaging service for getting events out of Discovery
13
+ //
14
+ service Messaging{
15
+ rpc GetMessages(google.protobuf.Empty) returns(stream MessagingResponse);
16
+ rpc ClearMessages(google.protobuf.Empty) returns(google.protobuf.Empty);
17
+ }
18
+
19
+ message MessagingResponse{
20
+ string event_message = 1;
21
+ }
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ansys/api/discovery/v0/messaging.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ 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
+ from google.protobuf import symbol_database as _symbol_database
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
16
+ from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
17
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
18
+
19
+
20
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&ansys/api/discovery/v0/messaging.proto\x12 ansys.api.discovery.v0.messaging\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"*\n\x11MessagingResponse\x12\x15\n\revent_message\x18\x01 \x01(\t2\xaa\x01\n\tMessaging\x12\\\n\x0bGetMessages\x12\x16.google.protobuf.Empty\x1a\x33.ansys.api.discovery.v0.messaging.MessagingResponse0\x01\x12?\n\rClearMessages\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.EmptyB#\xaa\x02 Ansys.Api.Discovery.V0.Messagingb\x06proto3')
21
+
22
+
23
+
24
+ _MESSAGINGRESPONSE = DESCRIPTOR.message_types_by_name['MessagingResponse']
25
+ MessagingResponse = _reflection.GeneratedProtocolMessageType('MessagingResponse', (_message.Message,), {
26
+ 'DESCRIPTOR' : _MESSAGINGRESPONSE,
27
+ '__module__' : 'ansys.api.discovery.v0.messaging_pb2'
28
+ # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.messaging.MessagingResponse)
29
+ })
30
+ _sym_db.RegisterMessage(MessagingResponse)
31
+
32
+ _MESSAGING = DESCRIPTOR.services_by_name['Messaging']
33
+ if _descriptor._USE_C_DESCRIPTORS == False:
34
+
35
+ DESCRIPTOR._options = None
36
+ DESCRIPTOR._serialized_options = b'\252\002 Ansys.Api.Discovery.V0.Messaging'
37
+ _MESSAGINGRESPONSE._serialized_start=185
38
+ _MESSAGINGRESPONSE._serialized_end=227
39
+ _MESSAGING._serialized_start=230
40
+ _MESSAGING._serialized_end=400
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,22 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.message
8
+ import typing
9
+ import typing_extensions
10
+
11
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
12
+
13
+ class MessagingResponse(google.protobuf.message.Message):
14
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
15
+ EVENT_MESSAGE_FIELD_NUMBER: builtins.int
16
+ event_message: typing.Text = ...
17
+ def __init__(self,
18
+ *,
19
+ event_message : typing.Text = ...,
20
+ ) -> None: ...
21
+ def ClearField(self, field_name: typing_extensions.Literal["event_message",b"event_message"]) -> None: ...
22
+ global___MessagingResponse = MessagingResponse
@@ -0,0 +1,106 @@
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 messaging_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2
6
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
+
8
+
9
+ class MessagingStub(object):
10
+ """Messaging service for getting events out of Discovery
11
+
12
+ """
13
+
14
+ def __init__(self, channel):
15
+ """Constructor.
16
+
17
+ Args:
18
+ channel: A grpc.Channel.
19
+ """
20
+ self.GetMessages = channel.unary_stream(
21
+ '/ansys.api.discovery.v0.messaging.Messaging/GetMessages',
22
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
23
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.FromString,
24
+ )
25
+ self.ClearMessages = channel.unary_unary(
26
+ '/ansys.api.discovery.v0.messaging.Messaging/ClearMessages',
27
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
28
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
29
+ )
30
+
31
+
32
+ class MessagingServicer(object):
33
+ """Messaging service for getting events out of Discovery
34
+
35
+ """
36
+
37
+ def GetMessages(self, request, context):
38
+ """Missing associated documentation comment in .proto file."""
39
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
40
+ context.set_details('Method not implemented!')
41
+ raise NotImplementedError('Method not implemented!')
42
+
43
+ def ClearMessages(self, request, context):
44
+ """Missing associated documentation comment in .proto file."""
45
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
46
+ context.set_details('Method not implemented!')
47
+ raise NotImplementedError('Method not implemented!')
48
+
49
+
50
+ def add_MessagingServicer_to_server(servicer, server):
51
+ rpc_method_handlers = {
52
+ 'GetMessages': grpc.unary_stream_rpc_method_handler(
53
+ servicer.GetMessages,
54
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
55
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.SerializeToString,
56
+ ),
57
+ 'ClearMessages': grpc.unary_unary_rpc_method_handler(
58
+ servicer.ClearMessages,
59
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
60
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
61
+ ),
62
+ }
63
+ generic_handler = grpc.method_handlers_generic_handler(
64
+ 'ansys.api.discovery.v0.messaging.Messaging', rpc_method_handlers)
65
+ server.add_generic_rpc_handlers((generic_handler,))
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class Messaging(object):
70
+ """Messaging service for getting events out of Discovery
71
+
72
+ """
73
+
74
+ @staticmethod
75
+ def GetMessages(request,
76
+ target,
77
+ options=(),
78
+ channel_credentials=None,
79
+ call_credentials=None,
80
+ insecure=False,
81
+ compression=None,
82
+ wait_for_ready=None,
83
+ timeout=None,
84
+ metadata=None):
85
+ return grpc.experimental.unary_stream(request, target, '/ansys.api.discovery.v0.messaging.Messaging/GetMessages',
86
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
87
+ ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.FromString,
88
+ options, channel_credentials,
89
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
90
+
91
+ @staticmethod
92
+ def ClearMessages(request,
93
+ target,
94
+ options=(),
95
+ channel_credentials=None,
96
+ call_credentials=None,
97
+ insecure=False,
98
+ compression=None,
99
+ wait_for_ready=None,
100
+ timeout=None,
101
+ metadata=None):
102
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.messaging.Messaging/ClearMessages',
103
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
104
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
105
+ options, channel_credentials,
106
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,38 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import abc
6
+ import ansys.api.discovery.v0.messaging_pb2
7
+ import google.protobuf.empty_pb2
8
+ import grpc
9
+ import typing
10
+
11
+ class MessagingStub:
12
+ """Messaging service for getting events out of Discovery"""
13
+ def __init__(self, channel: grpc.Channel) -> None: ...
14
+ GetMessages: grpc.UnaryStreamMultiCallable[
15
+ google.protobuf.empty_pb2.Empty,
16
+ ansys.api.discovery.v0.messaging_pb2.MessagingResponse] = ...
17
+
18
+ ClearMessages: grpc.UnaryUnaryMultiCallable[
19
+ google.protobuf.empty_pb2.Empty,
20
+ google.protobuf.empty_pb2.Empty] = ...
21
+
22
+
23
+ class MessagingServicer(metaclass=abc.ABCMeta):
24
+ """Messaging service for getting events out of Discovery"""
25
+ @abc.abstractmethod
26
+ def GetMessages(self,
27
+ request: google.protobuf.empty_pb2.Empty,
28
+ context: grpc.ServicerContext,
29
+ ) -> typing.Iterator[ansys.api.discovery.v0.messaging_pb2.MessagingResponse]: ...
30
+
31
+ @abc.abstractmethod
32
+ def ClearMessages(self,
33
+ request: google.protobuf.empty_pb2.Empty,
34
+ context: grpc.ServicerContext,
35
+ ) -> google.protobuf.empty_pb2.Empty: ...
36
+
37
+
38
+ def add_MessagingServicer_to_server(servicer: MessagingServicer, server: grpc.Server) -> None: ...
@@ -0,0 +1,23 @@
1
+ // Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2
+ syntax = "proto3";
3
+ package ansys.api.discovery.v0.simulations;
4
+
5
+ import "ansys/api/dbu/v0/dbumodels.proto";
6
+ import "ansys/api/discovery/v0/discoverymodels.proto";
7
+ import "google/protobuf/empty.proto";
8
+
9
+ option csharp_namespace = "Ansys.Api.Discovery.V0.Simulations";
10
+
11
+ service Simulations
12
+ {
13
+ // Creates a new simulation
14
+ rpc CreateSimulation(google.protobuf.Empty) returns (Simulation);
15
+
16
+ // Lists all simulations
17
+ rpc GetAll(google.protobuf.Empty) returns(GetAllResponse);
18
+ }
19
+
20
+ message GetAllResponse{
21
+ // The simulations in the study.
22
+ repeated Simulation simulations = 1;
23
+ }
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ansys/api/discovery/v0/simulations.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ 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
+ from google.protobuf import symbol_database as _symbol_database
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
16
+ from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
17
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
18
+
19
+
20
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/simulations.proto\x12\"ansys.api.discovery.v0.simulations\x1a ansys/api/dbu/v0/dbumodels.proto\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
+
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']
33
+ if _descriptor._USE_C_DESCRIPTORS == False:
34
+
35
+ DESCRIPTOR._options = None
36
+ DESCRIPTOR._serialized_options = b'\252\002\"Ansys.Api.Discovery.V0.Simulations'
37
+ _GETALLRESPONSE._serialized_start=189
38
+ _GETALLRESPONSE._serialized_end=262
39
+ _SIMULATIONS._serialized_start=265
40
+ _SIMULATIONS._serialized_end=444
41
+ # @@protoc_insertion_point(module_scope)