Skip to content

Commit 4c61883

Browse files
pyansys-ci-bottfs_caslserviceRobPasMue
authored
sync: file sync performed by ansys-tools-repo-sync (#39)
sync: add changes from local folder Co-authored-by: tfs_caslservice <tfs_caslservice@cdcw22cslbld03> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent b40b6e5 commit 4c61883

File tree

4 files changed

+286
-6
lines changed

4 files changed

+286
-6
lines changed

ansys/api/discovery/v0/conditionsstructural.proto

Lines changed: 241 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,32 @@ option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions.ConditionsStructura
99
service ConditionsStructural
1010
{
1111
//Support condition methods
12-
rpc CreateSupportFixed(SupportFixedCreationRequest) returns (SupportFixedCreationResponse);
12+
rpc CreateSupportFixed(SupportGeneralCreationRequest) returns (SupportGeneralCreationResponse);
13+
rpc CreateSupportHinged(SupportGeneralCreationRequest) returns (SupportGeneralCreationResponse);
14+
rpc CreateSupportSliding(SupportGeneralCreationRequest) returns (SupportGeneralCreationResponse);
15+
rpc CreateSupportBall(SupportGeneralCreationRequest) returns (SupportGeneralCreationResponse);
16+
rpc CreateSupportDisplaced(SupportDisplacedCreationRequest) returns (SupportDisplacedCreationResponse);
1317

1418
rpc ChangeSupportLocation(ChangeLocationRequest) returns(ConditionChangedResponse);
1519

20+
rpc ChangeSupportSpecification(ChangeSupportSpecificationRequest) returns(ConditionChangedResponse);
21+
22+
rpc ChangeSupportDisplacedOrientation(ChangeDirectionRequest) returns(ConditionChangedResponse);
23+
24+
rpc ChangeSupportDisplacedDX(ChangeQuantityRequest) returns (ConditionChangedResponse);
25+
rpc ChangeSupportDisplacedDY(ChangeQuantityRequest) returns (ConditionChangedResponse);
26+
rpc ChangeSupportDisplacedDZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
27+
rpc ChangeSupportDisplacedRX(ChangeQuantityRequest) returns (ConditionChangedResponse);
28+
rpc ChangeSupportDisplacedRY(ChangeQuantityRequest) returns (ConditionChangedResponse);
29+
rpc ChangeSupportDisplacedRZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
30+
31+
rpc ChangeSupportDisplacedIsFixedDX(ChangeBooleanRequest) returns (ConditionChangedResponse);
32+
rpc ChangeSupportDisplacedIsFixedDY(ChangeBooleanRequest) returns (ConditionChangedResponse);
33+
rpc ChangeSupportDisplacedIsFixedDZ(ChangeBooleanRequest) returns (ConditionChangedResponse);
34+
rpc ChangeSupportDisplacedIsFixedRX(ChangeBooleanRequest) returns (ConditionChangedResponse);
35+
rpc ChangeSupportDisplacedIsFixedRY(ChangeBooleanRequest) returns (ConditionChangedResponse);
36+
rpc ChangeSupportDisplacedIsFixedRZ(ChangeBooleanRequest) returns (ConditionChangedResponse);
37+
1638
//Force condition methods
1739

1840
rpc CreateForceDistributedTotal(ForceDistributedTotalCreationRequest) returns (ForceDistributedTotalCreationResponse);
@@ -48,6 +70,66 @@ service ConditionsStructural
4870
rpc ChangeForceTorqueX(ChangeQuantityRequest) returns (ConditionChangedResponse);
4971
rpc ChangeForceTorqueY(ChangeQuantityRequest) returns (ConditionChangedResponse);
5072
rpc ChangeForceTorqueZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
73+
74+
//Pressure condition methods
75+
rpc CreatePressure(PressureCreationRequest) returns (PressureCreationResponse);
76+
77+
rpc ChangePressureLocation(ChangeLocationRequest) returns(ConditionChangedResponse);
78+
79+
rpc ChangePressureMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);
80+
81+
82+
//Displacement condition methods
83+
rpc CreateDisplacementTranslation(DisplacementTranslationCreationRequest) returns (DisplacementCreationResponse);
84+
rpc CreateDisplacementRotation(DisplacementRotationCreationRequest) returns (DisplacementCreationResponse);
85+
rpc CreateDisplacementCombined(DisplacementCombinedCreationRequest) returns (DisplacementCreationResponse);
86+
87+
rpc ChangeDisplacementLocation(ChangeLocationRequest) returns(ConditionChangedResponse);
88+
89+
rpc ChangeDisplacementSpecification(ChangeDisplacementSpecificationRequest) returns(ConditionChangedResponse);
90+
rpc ChangeDisplacementOrientation(ChangeDirectionRequest) returns(ConditionChangedResponse);
91+
92+
rpc ChangeDisplacementDX(ChangeQuantityRequest) returns (ConditionChangedResponse);
93+
rpc ChangeDisplacementDY(ChangeQuantityRequest) returns (ConditionChangedResponse);
94+
rpc ChangeDisplacementDZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
95+
rpc ChangeDisplacementTranslationalMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);
96+
97+
rpc ChangeDisplacementRX(ChangeQuantityRequest) returns (ConditionChangedResponse);
98+
rpc ChangeDisplacementRY(ChangeQuantityRequest) returns (ConditionChangedResponse);
99+
rpc ChangeDisplacementRZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
100+
rpc ChangeDisplacementRotationalMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);
101+
102+
rpc ChangeDisplacementIsFixedDX(ChangeBooleanRequest) returns (ConditionChangedResponse);
103+
rpc ChangeDisplacementIsFixedDY(ChangeBooleanRequest) returns (ConditionChangedResponse);
104+
rpc ChangeDisplacementIsFixedDZ(ChangeBooleanRequest) returns (ConditionChangedResponse);
105+
106+
rpc ChangeDisplacementIsFixedRX(ChangeBooleanRequest) returns (ConditionChangedResponse);
107+
rpc ChangeDisplacementIsFixedRY(ChangeBooleanRequest) returns (ConditionChangedResponse);
108+
rpc ChangeDisplacementIsFixedRZ(ChangeBooleanRequest) returns (ConditionChangedResponse);
109+
110+
rpc ChangeDisplacementUseRemotePointEnabled(ChangeBooleanRequest) returns (ConditionChangedResponse);
111+
rpc ChangeDisplacementDistributedRemotePositionX(ChangeQuantityRequest) returns (ConditionChangedResponse);
112+
rpc ChangeDisplacementDistributedRemotePositionY(ChangeQuantityRequest) returns (ConditionChangedResponse);
113+
rpc ChangeDisplacementDistributedRemotePositionZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
114+
115+
116+
//Moment condition methods
117+
rpc CreateMomentLocal(MomentCreationRequest) returns (MomentCreationResponse);
118+
rpc CreateMomentGlobal(MomentCreationRequest) returns (MomentCreationResponse);
119+
120+
rpc ChangeMomentLocation(ChangeLocationRequest) returns(ConditionChangedResponse);
121+
122+
rpc ChangeMomentSpecification(ChangeMomentSpecificationRequest) returns(ConditionChangedResponse);
123+
rpc ChangeMomentOrientation(ChangeDirectionRequest) returns(ConditionChangedResponse);
124+
125+
rpc ChangeMomentLocalX(ChangeQuantityRequest) returns (ConditionChangedResponse);
126+
rpc ChangeMomentLocalY(ChangeQuantityRequest) returns (ConditionChangedResponse);
127+
rpc ChangeMomentLocalZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
128+
129+
rpc ChangeMomentGlobalX(ChangeQuantityRequest) returns (ConditionChangedResponse);
130+
rpc ChangeMomentGlobalY(ChangeQuantityRequest) returns (ConditionChangedResponse);
131+
rpc ChangeMomentGlobalZ(ChangeQuantityRequest) returns (ConditionChangedResponse);
132+
51133
}
52134

53135

@@ -59,15 +141,26 @@ message ChangeSupportSpecificationRequest{
59141
SupportSpecification support_specification = 2;
60142
}
61143

62-
message SupportFixedCreationRequest{
144+
message SupportGeneralCreationRequest{
63145
ScopedConditionCreationData creation_data = 1;
64146
}
65147

66-
message SupportFixedCreationResponse{
148+
message SupportGeneralCreationResponse{
67149
ConditionCreationResponse condition_response = 1;
68-
SupportFixedDefinition condition_data = 2;
150+
SupportGeneralDefinition condition_data = 2;
69151
}
70152

153+
message SupportDisplacedCreationRequest{
154+
ScopedConditionCreationData creation_data = 1;
155+
SupportDisplacedProperties support_displaced = 2;
156+
}
157+
158+
message SupportDisplacedCreationResponse{
159+
ConditionCreationResponse condition_response = 1;
160+
SupportDisplacedDefinition condition_data = 2;
161+
}
162+
163+
71164
// Force
72165
message ChangeForceSpecificationRequest{
73166
string object_id = 1;
@@ -109,21 +202,93 @@ message ForceTorqueCreationResponse{
109202
ForceTorqueDefinition condition_data = 2;
110203
}
111204

205+
// Pressure
206+
message PressureCreationRequest{
207+
ScopedConditionCreationData creation_data = 1;
208+
PressureProperties pressure_properties = 2;
209+
}
210+
211+
message PressureCreationResponse{
212+
ConditionCreationResponse condition_response = 1;
213+
PressureDefinition condition_data = 2;
214+
}
215+
216+
// Displacement
217+
message DisplacementTranslationCreationRequest{
218+
ScopedConditionCreationData creation_data = 1;
219+
DisplacementTranslationProperties displacement_properties = 2;
220+
}
221+
222+
message DisplacementRotationCreationRequest{
223+
ScopedConditionCreationData creation_data = 1;
224+
DisplacementRotationProperties displacement_properties = 2;
225+
}
226+
227+
message DisplacementCombinedCreationRequest{
228+
ScopedConditionCreationData creation_data = 1;
229+
DisplacementCombinedProperties displacement_properties = 2;
230+
}
231+
232+
message DisplacementCreationResponse{
233+
ConditionCreationResponse condition_response = 1;
234+
DisplacementDefinition condition_data = 2;
235+
}
236+
237+
message ChangeDisplacementSpecificationRequest{
238+
string object_id = 1;
239+
DisplacementSpecification displacement_specification = 2;
240+
}
241+
242+
// Moment
243+
message MomentCreationRequest{
244+
ScopedConditionCreationData creation_data = 1;
245+
MomentProperties moment_properties = 2;
246+
}
247+
248+
message MomentCreationResponse{
249+
ConditionCreationResponse condition_response = 1;
250+
MomentDefinition condition_data = 2;
251+
}
252+
253+
message ChangeMomentSpecificationRequest{
254+
string object_id = 1;
255+
MomentSpecification moment_specification = 2;
256+
}
257+
258+
112259
// Support enumerations
113260

114261
enum SupportSpecification {
115262
FIXED = 0;
116263
SLIDING = 1;
264+
HINGED = 2;
265+
BALL = 3;
266+
DISPLACED = 4;
117267
}
118268

119269
// Support condition definitions
120270

121-
message SupportFixedDefinition {
271+
message SupportGeneralDefinition {
122272
string id = 1;
123273
string parent_id = 2;
124274
string label = 3;
125275
repeated string locations = 4;
126276
bool suppressed = 5;
277+
SupportSpecification support_type = 6;
278+
}
279+
280+
message SupportDisplacedDefinition {
281+
string id = 1;
282+
string parent_id = 2;
283+
string label = 3;
284+
repeated string locations = 4;
285+
bool suppressed = 5;
286+
SupportSpecification support_type = 6;
287+
TensorOfOptionalQuantities displacement = 7;
288+
}
289+
290+
message SupportDisplacedProperties {
291+
TensorOfOptionalQuantities displacement = 1;
127292
}
128293

129294
// force enumerations
@@ -169,3 +334,74 @@ message ForceTorqueProperties {
169334
OptionalVector force_components = 2;
170335
}
171336

337+
// Pressure condition definitions
338+
message PressureProperties {
339+
Quantity pressure_magnitude = 1;
340+
}
341+
342+
message PressureDefinition {
343+
string id = 1;
344+
string parent_id = 2;
345+
string label = 3;
346+
repeated string locations = 4;
347+
bool suppressed = 5;
348+
PressureProperties pressure = 6;
349+
}
350+
351+
// Displacement enumerations
352+
353+
enum DisplacementSpecification {
354+
TRANSLATION = 0;
355+
ROTATION = 1;
356+
COMBINED = 2;
357+
}
358+
359+
// Displacement condition definitions
360+
361+
message DisplacementTranslationProperties {
362+
VectorOfOptionalQuantities displacement = 1;
363+
OptionalVector remote_point = 2;
364+
}
365+
366+
message DisplacementRotationProperties {
367+
VectorOfOptionalQuantities rotation = 1;
368+
OptionalVector remote_point = 2;
369+
}
370+
371+
message DisplacementCombinedProperties {
372+
VectorOfOptionalQuantities displacement = 1;
373+
VectorOfOptionalQuantities rotation = 2;
374+
OptionalVector remote_point = 3;
375+
}
376+
377+
message DisplacementDefinition {
378+
string id = 1;
379+
string parent_id = 2;
380+
string label = 3;
381+
repeated string locations = 4;
382+
bool suppressed = 5;
383+
DisplacementCombinedProperties displacement = 6;
384+
}
385+
386+
// Displacement enumerations
387+
388+
enum MomentSpecification {
389+
GLOBAL = 0;
390+
LOCAL = 1;
391+
}
392+
393+
// Displacement condition definitions
394+
395+
message MomentProperties {
396+
QuantityVector moment = 1;
397+
}
398+
399+
message MomentDefinition {
400+
string id = 1;
401+
string parent_id = 2;
402+
string label = 3;
403+
repeated string locations = 4;
404+
bool suppressed = 5;
405+
MomentProperties local = 6;
406+
MomentProperties global = 7;
407+
}

ansys/api/discovery/v0/definedvariationstable.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ service DefinedVariationsTable{
4242
// Get a variation output table's column
4343
rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse);
4444

45+
// Get the current variation from the design table
46+
rpc GetCurrentVariation(google.protobuf.Empty) returns(GetCurrentVariationResponse);
47+
48+
// Set the current variation from the design table
49+
rpc SetCurrentVariation(ansys.api.dbu.v0.EntityIdentifier) returns(MessageResponse);
50+
4551
// Set a star status for a variations list.
4652
rpc SetStarredStatus(SetStarredStatusRequest) returns(google.protobuf.Empty) ;
4753

@@ -121,6 +127,12 @@ message SetStarredStatusRequest{
121127
bool starred = 2;
122128
}
123129

130+
message GetCurrentVariationResponse{
131+
// The variation's moniker.
132+
string variation_moniker = 1;
133+
string message = 2;
134+
}
135+
124136
///UPDATES
125137
//
126138

ansys/api/discovery/v0/discoverymodels.proto

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package ansys.api.discovery.v0;
44

55
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/geometry/v0/models.proto";
67

78
option csharp_namespace = "Ansys.Api.Discovery.V0";
89

@@ -116,6 +117,11 @@ message ChangeBooleanRequest{
116117
bool boolean_value = 2;
117118
}
118119

120+
message ChangeDirectionRequest{
121+
string object_id = 1;
122+
ansys.api.geometry.v0.Direction direction = 2;
123+
}
124+
119125
message ChangeCommandRequest{
120126
string object_id = 1;
121127
}
@@ -138,6 +144,10 @@ message ConditionCreationResponse{
138144
string message = 2;
139145
}
140146

147+
message MessageResponse{
148+
string message = 1;
149+
}
150+
141151
// Defines the type of location, some conditions support application to either bodies and faces
142152
enum LocationSpecification {
143153
FACELOCATIONS = 0;
@@ -160,10 +170,31 @@ message QuantityVector {
160170
}
161171

162172
message OptionalVector {
163-
bool is_enabled = 1;
173+
bool is_defined = 1;
164174
QuantityVector vector = 2;
165175
}
166176

177+
message OptionalQuantity{
178+
bool is_defined = 1;
179+
Quantity quantity = 2;
180+
}
181+
182+
message TensorOfOptionalQuantities{
183+
OptionalQuantity dx = 1;
184+
OptionalQuantity dy = 2;
185+
OptionalQuantity dz = 3;
186+
OptionalQuantity rx = 4;
187+
OptionalQuantity ry = 5;
188+
OptionalQuantity rz = 6;
189+
}
190+
191+
message VectorOfOptionalQuantities{
192+
OptionalQuantity x = 1;
193+
OptionalQuantity y = 2;
194+
OptionalQuantity z = 3;
195+
}
196+
197+
167198
// Represents the quantity type for a physics parameter.
168199
enum QuantityType {
169200
QUANTITY_TYPE_ACCELERATION=0;

ansys/api/discovery/v0/solution.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ message SolverFidelityResponse{
3131
message SolveExecutionRequest{
3232
string simulation_id = 1;
3333
Stage stage = 2;
34+
bool execute_remotely =3;
3435
}
3536

3637
message SolveExecutionResponse{

0 commit comments

Comments
 (0)