ansys-api-discovery 0.6.3__py3-none-any.whl → 0.6.4__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.4.dist-info}/METADATA +13 -4
- ansys_api_discovery-0.6.4.dist-info/RECORD +200 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.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.4.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.conditions.porous_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class PorousStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreatePorous: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse] = ...
|
|
15
|
+
"""wall creation methods"""
|
|
16
|
+
|
|
17
|
+
ChangePorousDirectionality: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.conditions.porous_pb2.ChangePorousDirectionalityRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
"""properties"""
|
|
21
|
+
|
|
22
|
+
ChangePorousLocation: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
24
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
25
|
+
|
|
26
|
+
ChangePorousDirection: grpc.UnaryUnaryMultiCallable[
|
|
27
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeDirectionRequest,
|
|
28
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
29
|
+
|
|
30
|
+
ChangePorousViscousStreamwiseMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
31
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
32
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
33
|
+
"""Resistance coeffiecient quantities"""
|
|
34
|
+
|
|
35
|
+
ChangePorousInertialStreamwiseMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
36
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
37
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
38
|
+
|
|
39
|
+
ChangePorousViscousCrossflowPrimaryMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
40
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
41
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
42
|
+
|
|
43
|
+
ChangePorousInertialCrossflowPrimaryMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
45
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
46
|
+
|
|
47
|
+
ChangePorousViscousCrossflowSecondaryMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
49
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
50
|
+
|
|
51
|
+
ChangePorousInertialCrossflowSecondaryMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
52
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
53
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
54
|
+
|
|
55
|
+
ChangePorouseThermalInputEnabled: grpc.UnaryUnaryMultiCallable[
|
|
56
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeBooleanRequest,
|
|
57
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
58
|
+
"""Solid quantities
|
|
59
|
+
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
ChangePorousSolidPorosity: grpc.UnaryUnaryMultiCallable[
|
|
63
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
64
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
65
|
+
|
|
66
|
+
ChangePorousSolidDensity: grpc.UnaryUnaryMultiCallable[
|
|
67
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
68
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
69
|
+
|
|
70
|
+
ChangePorousSolidIsotropicThermalConductivity: grpc.UnaryUnaryMultiCallable[
|
|
71
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
72
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
73
|
+
|
|
74
|
+
ChangePorousSolidSpecificHeat: grpc.UnaryUnaryMultiCallable[
|
|
75
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
76
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class PorousServicer(metaclass=abc.ABCMeta):
|
|
80
|
+
@abc.abstractmethod
|
|
81
|
+
def CreatePorous(self,
|
|
82
|
+
request: ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationRequest,
|
|
83
|
+
context: grpc.ServicerContext,
|
|
84
|
+
) -> ansys.api.discovery.v0.conditions.porous_pb2.PorousCreationResponse:
|
|
85
|
+
"""wall creation methods"""
|
|
86
|
+
pass
|
|
87
|
+
|
|
88
|
+
@abc.abstractmethod
|
|
89
|
+
def ChangePorousDirectionality(self,
|
|
90
|
+
request: ansys.api.discovery.v0.conditions.porous_pb2.ChangePorousDirectionalityRequest,
|
|
91
|
+
context: grpc.ServicerContext,
|
|
92
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse:
|
|
93
|
+
"""properties"""
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
@abc.abstractmethod
|
|
97
|
+
def ChangePorousLocation(self,
|
|
98
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
99
|
+
context: grpc.ServicerContext,
|
|
100
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
101
|
+
|
|
102
|
+
@abc.abstractmethod
|
|
103
|
+
def ChangePorousDirection(self,
|
|
104
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeDirectionRequest,
|
|
105
|
+
context: grpc.ServicerContext,
|
|
106
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
107
|
+
|
|
108
|
+
@abc.abstractmethod
|
|
109
|
+
def ChangePorousViscousStreamwiseMagnitude(self,
|
|
110
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
111
|
+
context: grpc.ServicerContext,
|
|
112
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse:
|
|
113
|
+
"""Resistance coeffiecient quantities"""
|
|
114
|
+
pass
|
|
115
|
+
|
|
116
|
+
@abc.abstractmethod
|
|
117
|
+
def ChangePorousInertialStreamwiseMagnitude(self,
|
|
118
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
119
|
+
context: grpc.ServicerContext,
|
|
120
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
121
|
+
|
|
122
|
+
@abc.abstractmethod
|
|
123
|
+
def ChangePorousViscousCrossflowPrimaryMagnitude(self,
|
|
124
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
125
|
+
context: grpc.ServicerContext,
|
|
126
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
127
|
+
|
|
128
|
+
@abc.abstractmethod
|
|
129
|
+
def ChangePorousInertialCrossflowPrimaryMagnitude(self,
|
|
130
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
131
|
+
context: grpc.ServicerContext,
|
|
132
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
133
|
+
|
|
134
|
+
@abc.abstractmethod
|
|
135
|
+
def ChangePorousViscousCrossflowSecondaryMagnitude(self,
|
|
136
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
137
|
+
context: grpc.ServicerContext,
|
|
138
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
139
|
+
|
|
140
|
+
@abc.abstractmethod
|
|
141
|
+
def ChangePorousInertialCrossflowSecondaryMagnitude(self,
|
|
142
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
143
|
+
context: grpc.ServicerContext,
|
|
144
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
145
|
+
|
|
146
|
+
@abc.abstractmethod
|
|
147
|
+
def ChangePorouseThermalInputEnabled(self,
|
|
148
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeBooleanRequest,
|
|
149
|
+
context: grpc.ServicerContext,
|
|
150
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse:
|
|
151
|
+
"""Solid quantities
|
|
152
|
+
|
|
153
|
+
"""
|
|
154
|
+
pass
|
|
155
|
+
|
|
156
|
+
@abc.abstractmethod
|
|
157
|
+
def ChangePorousSolidPorosity(self,
|
|
158
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
159
|
+
context: grpc.ServicerContext,
|
|
160
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
161
|
+
|
|
162
|
+
@abc.abstractmethod
|
|
163
|
+
def ChangePorousSolidDensity(self,
|
|
164
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
165
|
+
context: grpc.ServicerContext,
|
|
166
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
167
|
+
|
|
168
|
+
@abc.abstractmethod
|
|
169
|
+
def ChangePorousSolidIsotropicThermalConductivity(self,
|
|
170
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
171
|
+
context: grpc.ServicerContext,
|
|
172
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
173
|
+
|
|
174
|
+
@abc.abstractmethod
|
|
175
|
+
def ChangePorousSolidSpecificHeat(self,
|
|
176
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
177
|
+
context: grpc.ServicerContext,
|
|
178
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def add_PorousServicer_to_server(servicer: PorousServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.pressure;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service Pressure
|
|
11
|
+
{
|
|
12
|
+
//Pressure condition methods
|
|
13
|
+
rpc CreatePressure(PressureCreationRequest) returns (PressureCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangePressureLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangePressureMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Pressure
|
|
21
|
+
message PressureCreationRequest{
|
|
22
|
+
ScopedCreationData creation_data = 1;
|
|
23
|
+
PressureProperties pressure_properties = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message PressureCreationResponse{
|
|
27
|
+
CreationResponse condition_response = 1;
|
|
28
|
+
PressureDefinition condition_data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Pressure condition definitions
|
|
32
|
+
message PressureProperties {
|
|
33
|
+
Quantity pressure_magnitude = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message PressureDefinition {
|
|
37
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
38
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
39
|
+
string label = 3;
|
|
40
|
+
repeated string locations = 4;
|
|
41
|
+
bool suppressed = 5;
|
|
42
|
+
PressureProperties pressure = 6;
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/pressure.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0ansys/api/discovery/v0/conditions/pressure.proto\x12*ansys.api.discovery.v0.conditions.pressure\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xb9\x01\n\x17PressureCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12[\n\x13pressure_properties\x18\x02 \x01(\x0b\x32>.ansys.api.discovery.v0.conditions.pressure.PressureProperties\"\xb8\x01\n\x18PressureCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12V\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32>.ansys.api.discovery.v0.conditions.pressure.PressureDefinition\"R\n\x12PressureProperties\x12<\n\x12pressure_magnitude\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\x91\x02\n\x12PressureDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12P\n\x08pressure\x18\x06 \x01(\x0b\x32>.ansys.api.discovery.v0.conditions.pressure.PressureProperties2\x8b\x03\n\x08Pressure\x12\x9b\x01\n\x0e\x43reatePressure\x12\x43.ansys.api.discovery.v0.conditions.pressure.PressureCreationRequest\x1a\x44.ansys.api.discovery.v0.conditions.pressure.PressureCreationResponse\x12o\n\x16\x43hangePressureLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12p\n\x17\x43hangePressureMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.pressure_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002!Ansys.Api.Discovery.V0.Conditions'
|
|
26
|
+
_PRESSURECREATIONREQUEST._serialized_start=177
|
|
27
|
+
_PRESSURECREATIONREQUEST._serialized_end=362
|
|
28
|
+
_PRESSURECREATIONRESPONSE._serialized_start=365
|
|
29
|
+
_PRESSURECREATIONRESPONSE._serialized_end=549
|
|
30
|
+
_PRESSUREPROPERTIES._serialized_start=551
|
|
31
|
+
_PRESSUREPROPERTIES._serialized_end=633
|
|
32
|
+
_PRESSUREDEFINITION._serialized_start=636
|
|
33
|
+
_PRESSUREDEFINITION._serialized_end=909
|
|
34
|
+
_PRESSURE._serialized_start=912
|
|
35
|
+
_PRESSURE._serialized_end=1307
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
6
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
7
|
+
import builtins
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
15
|
+
|
|
16
|
+
class PressureCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Pressure"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
PRESSURE_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
23
|
+
@property
|
|
24
|
+
def pressure_properties(self) -> global___PressureProperties: ...
|
|
25
|
+
def __init__(self,
|
|
26
|
+
*,
|
|
27
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
28
|
+
pressure_properties : typing.Optional[global___PressureProperties] = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","pressure_properties",b"pressure_properties"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","pressure_properties",b"pressure_properties"]) -> None: ...
|
|
32
|
+
global___PressureCreationRequest = PressureCreationRequest
|
|
33
|
+
|
|
34
|
+
class PressureCreationResponse(google.protobuf.message.Message):
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
36
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
37
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
38
|
+
@property
|
|
39
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
40
|
+
@property
|
|
41
|
+
def condition_data(self) -> global___PressureDefinition: ...
|
|
42
|
+
def __init__(self,
|
|
43
|
+
*,
|
|
44
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
45
|
+
condition_data : typing.Optional[global___PressureDefinition] = ...,
|
|
46
|
+
) -> None: ...
|
|
47
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
48
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
49
|
+
global___PressureCreationResponse = PressureCreationResponse
|
|
50
|
+
|
|
51
|
+
class PressureProperties(google.protobuf.message.Message):
|
|
52
|
+
"""Pressure condition definitions"""
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
54
|
+
PRESSURE_MAGNITUDE_FIELD_NUMBER: builtins.int
|
|
55
|
+
@property
|
|
56
|
+
def pressure_magnitude(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
57
|
+
def __init__(self,
|
|
58
|
+
*,
|
|
59
|
+
pressure_magnitude : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def HasField(self, field_name: typing_extensions.Literal["pressure_magnitude",b"pressure_magnitude"]) -> builtins.bool: ...
|
|
62
|
+
def ClearField(self, field_name: typing_extensions.Literal["pressure_magnitude",b"pressure_magnitude"]) -> None: ...
|
|
63
|
+
global___PressureProperties = PressureProperties
|
|
64
|
+
|
|
65
|
+
class PressureDefinition(google.protobuf.message.Message):
|
|
66
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
67
|
+
ID_FIELD_NUMBER: builtins.int
|
|
68
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
69
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
70
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
71
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
72
|
+
PRESSURE_FIELD_NUMBER: builtins.int
|
|
73
|
+
@property
|
|
74
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
75
|
+
@property
|
|
76
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
77
|
+
label: typing.Text = ...
|
|
78
|
+
@property
|
|
79
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
80
|
+
suppressed: builtins.bool = ...
|
|
81
|
+
@property
|
|
82
|
+
def pressure(self) -> global___PressureProperties: ...
|
|
83
|
+
def __init__(self,
|
|
84
|
+
*,
|
|
85
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
86
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
87
|
+
label : typing.Text = ...,
|
|
88
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
89
|
+
suppressed : builtins.bool = ...,
|
|
90
|
+
pressure : typing.Optional[global___PressureProperties] = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","parent_id",b"parent_id","pressure",b"pressure"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","pressure",b"pressure","suppressed",b"suppressed"]) -> None: ...
|
|
94
|
+
global___PressureDefinition = PressureDefinition
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from ansys.api.discovery.v0.conditions import pressure_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2
|
|
6
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PressureStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.CreatePressure = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.pressure.Pressure/CreatePressure',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangePressureLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.pressure.Pressure/ChangePressureLocation',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.ChangePressureMagnitude = channel.unary_unary(
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.pressure.Pressure/ChangePressureMagnitude',
|
|
30
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
31
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class PressureServicer(object):
|
|
36
|
+
"""Missing associated documentation comment in .proto file."""
|
|
37
|
+
|
|
38
|
+
def CreatePressure(self, request, context):
|
|
39
|
+
"""Pressure condition methods
|
|
40
|
+
"""
|
|
41
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
42
|
+
context.set_details('Method not implemented!')
|
|
43
|
+
raise NotImplementedError('Method not implemented!')
|
|
44
|
+
|
|
45
|
+
def ChangePressureLocation(self, request, context):
|
|
46
|
+
"""Missing associated documentation comment in .proto file."""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
def ChangePressureMagnitude(self, request, context):
|
|
52
|
+
"""Missing associated documentation comment in .proto file."""
|
|
53
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
54
|
+
context.set_details('Method not implemented!')
|
|
55
|
+
raise NotImplementedError('Method not implemented!')
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def add_PressureServicer_to_server(servicer, server):
|
|
59
|
+
rpc_method_handlers = {
|
|
60
|
+
'CreatePressure': grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.CreatePressure,
|
|
62
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationRequest.FromString,
|
|
63
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationResponse.SerializeToString,
|
|
64
|
+
),
|
|
65
|
+
'ChangePressureLocation': grpc.unary_unary_rpc_method_handler(
|
|
66
|
+
servicer.ChangePressureLocation,
|
|
67
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
68
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
69
|
+
),
|
|
70
|
+
'ChangePressureMagnitude': grpc.unary_unary_rpc_method_handler(
|
|
71
|
+
servicer.ChangePressureMagnitude,
|
|
72
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
73
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
74
|
+
),
|
|
75
|
+
}
|
|
76
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
77
|
+
'ansys.api.discovery.v0.conditions.pressure.Pressure', rpc_method_handlers)
|
|
78
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# This class is part of an EXPERIMENTAL API.
|
|
82
|
+
class Pressure(object):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def CreatePressure(request,
|
|
87
|
+
target,
|
|
88
|
+
options=(),
|
|
89
|
+
channel_credentials=None,
|
|
90
|
+
call_credentials=None,
|
|
91
|
+
insecure=False,
|
|
92
|
+
compression=None,
|
|
93
|
+
wait_for_ready=None,
|
|
94
|
+
timeout=None,
|
|
95
|
+
metadata=None):
|
|
96
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.pressure.Pressure/CreatePressure',
|
|
97
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationRequest.SerializeToString,
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_pressure__pb2.PressureCreationResponse.FromString,
|
|
99
|
+
options, channel_credentials,
|
|
100
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
101
|
+
|
|
102
|
+
@staticmethod
|
|
103
|
+
def ChangePressureLocation(request,
|
|
104
|
+
target,
|
|
105
|
+
options=(),
|
|
106
|
+
channel_credentials=None,
|
|
107
|
+
call_credentials=None,
|
|
108
|
+
insecure=False,
|
|
109
|
+
compression=None,
|
|
110
|
+
wait_for_ready=None,
|
|
111
|
+
timeout=None,
|
|
112
|
+
metadata=None):
|
|
113
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.pressure.Pressure/ChangePressureLocation',
|
|
114
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
115
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
116
|
+
options, channel_credentials,
|
|
117
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
118
|
+
|
|
119
|
+
@staticmethod
|
|
120
|
+
def ChangePressureMagnitude(request,
|
|
121
|
+
target,
|
|
122
|
+
options=(),
|
|
123
|
+
channel_credentials=None,
|
|
124
|
+
call_credentials=None,
|
|
125
|
+
insecure=False,
|
|
126
|
+
compression=None,
|
|
127
|
+
wait_for_ready=None,
|
|
128
|
+
timeout=None,
|
|
129
|
+
metadata=None):
|
|
130
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.pressure.Pressure/ChangePressureMagnitude',
|
|
131
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
132
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
133
|
+
options, channel_credentials,
|
|
134
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.conditions.pressure_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class PressureStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreatePressure: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.pressure_pb2.PressureCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.pressure_pb2.PressureCreationResponse] = ...
|
|
15
|
+
"""Pressure condition methods"""
|
|
16
|
+
|
|
17
|
+
ChangePressureLocation: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
|
|
21
|
+
ChangePressureMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
22
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
23
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class PressureServicer(metaclass=abc.ABCMeta):
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
def CreatePressure(self,
|
|
29
|
+
request: ansys.api.discovery.v0.conditions.pressure_pb2.PressureCreationRequest,
|
|
30
|
+
context: grpc.ServicerContext,
|
|
31
|
+
) -> ansys.api.discovery.v0.conditions.pressure_pb2.PressureCreationResponse:
|
|
32
|
+
"""Pressure condition methods"""
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
@abc.abstractmethod
|
|
36
|
+
def ChangePressureLocation(self,
|
|
37
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
38
|
+
context: grpc.ServicerContext,
|
|
39
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
40
|
+
|
|
41
|
+
@abc.abstractmethod
|
|
42
|
+
def ChangePressureMagnitude(self,
|
|
43
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
44
|
+
context: grpc.ServicerContext,
|
|
45
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def add_PressureServicer_to_server(servicer: PressureServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.rotatingfluidzone;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service RotatingFluidZone
|
|
11
|
+
{
|
|
12
|
+
//creation methods
|
|
13
|
+
rpc CreateRotatingFluidZone(RotatingFluidZoneCreationRequest) returns (RotatingFluidZoneCreationResponse);
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// properties commands
|
|
17
|
+
rpc ChangeRotatingFluidZoneLocation(ChangeLocationRequest) returns (ChangeResponse);
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// Motion quantities
|
|
21
|
+
rpc ChangeWallRotationalVelocityMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Command Requests and Responses
|
|
27
|
+
|
|
28
|
+
// Create RFZ
|
|
29
|
+
message RotatingFluidZoneCreationRequest{
|
|
30
|
+
ScopedCreationData creation_data = 2;
|
|
31
|
+
RotatingFluidZoneProperties rotating_fluid_zone_properties = 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message RotatingFluidZoneCreationResponse{
|
|
35
|
+
CreationResponse condition_response = 1;
|
|
36
|
+
RotatingFluidZoneDefinition condition_data = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// RFZ conditions properties
|
|
41
|
+
|
|
42
|
+
message RotatingFluidZoneProperties
|
|
43
|
+
{
|
|
44
|
+
Quantity translational_velocity = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
// Fluid conditions definitions
|
|
49
|
+
|
|
50
|
+
message RotatingFluidZoneDefinition {
|
|
51
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
52
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
53
|
+
string label = 3;
|
|
54
|
+
repeated string locations = 4;
|
|
55
|
+
bool suppressed = 5;
|
|
56
|
+
RotatingFluidZoneProperties rotating_fluid_zone_properties = 6;
|
|
57
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/rotatingfluidzone.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9ansys/api/discovery/v0/conditions/rotatingfluidzone.proto\x12\x33\x61nsys.api.discovery.v0.conditions.rotatingfluidzone\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xdf\x01\n RotatingFluidZoneCreationRequest\x12\x41\n\rcreation_data\x18\x02 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12x\n\x1erotating_fluid_zone_properties\x18\x04 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneProperties\"\xd3\x01\n!RotatingFluidZoneCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12h\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneDefinition\"_\n\x1bRotatingFluidZoneProperties\x12@\n\x16translational_velocity\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\xc2\x02\n\x1bRotatingFluidZoneDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12x\n\x1erotating_fluid_zone_properties\x18\x06 \x01(\x0b\x32P.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneProperties2\xd8\x03\n\x11RotatingFluidZone\x12\xc8\x01\n\x17\x43reateRotatingFluidZone\x12U.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneCreationRequest\x1aV.ansys.api.discovery.v0.conditions.rotatingfluidzone.RotatingFluidZoneCreationResponse\x12x\n\x1f\x43hangeRotatingFluidZoneLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12~\n%ChangeWallRotationalVelocityMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.rotatingfluidzone_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002!Ansys.Api.Discovery.V0.Conditions'
|
|
26
|
+
_ROTATINGFLUIDZONECREATIONREQUEST._serialized_start=195
|
|
27
|
+
_ROTATINGFLUIDZONECREATIONREQUEST._serialized_end=418
|
|
28
|
+
_ROTATINGFLUIDZONECREATIONRESPONSE._serialized_start=421
|
|
29
|
+
_ROTATINGFLUIDZONECREATIONRESPONSE._serialized_end=632
|
|
30
|
+
_ROTATINGFLUIDZONEPROPERTIES._serialized_start=634
|
|
31
|
+
_ROTATINGFLUIDZONEPROPERTIES._serialized_end=729
|
|
32
|
+
_ROTATINGFLUIDZONEDEFINITION._serialized_start=732
|
|
33
|
+
_ROTATINGFLUIDZONEDEFINITION._serialized_end=1054
|
|
34
|
+
_ROTATINGFLUIDZONE._serialized_start=1057
|
|
35
|
+
_ROTATINGFLUIDZONE._serialized_end=1529
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|