Skip to content

Commit d2dec9e

Browse files
committed
Merge branch 'main' into release/0.5
2 parents 3f551cd + 3879115 commit d2dec9e

File tree

6 files changed

+1880
-1
lines changed

6 files changed

+1880
-1
lines changed

ansys/api/discovery/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.0
1+
0.5.0
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
4+
package ansys.api.discovery.v0.definedvariationstable;
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.DefinedVariationsTable";
11+
12+
// Defined variation table servicer.
13+
//
14+
service DefinedVariationsTable{
15+
// Gets a whole row from the defined variations table
16+
rpc GetVariation(ansys.api.dbu.v0.EntityIdentifier) returns(Variation);
17+
18+
// Get all the variations (i.e get all the table as rows list)
19+
rpc GetAllVariations(google.protobuf.Empty) returns(GetAllVariationsResponse);
20+
21+
// Get all the inputs.
22+
rpc GetAllInputs(google.protobuf.Empty) returns(GetAllInputsResponse);
23+
24+
// Get all the outputs.
25+
rpc GetAllOutputs(google.protobuf.Empty) returns(GetAllOutputsResponse);
26+
27+
// Get an input variation table's cell
28+
rpc GetInputForVariation(GetInputForVariationRequest) returns(InputParameter);
29+
30+
// Set an input parameter
31+
rpc SetInputValue(SetInputValueRequest) returns(InputParameter) ;
32+
33+
// Create variation
34+
rpc CreateVariation(google.protobuf.Empty) returns(Variation);
35+
36+
// Get an output variation table's cell
37+
rpc GetOutputForVariation(GetOutputForVariationRequest) returns(OutputParameter);
38+
39+
// Get a variation input table's column
40+
rpc GetInputColumn(GetInputColumnRequest) returns(GetInputColumnResponse);
41+
42+
// Get a variation output table's column
43+
rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse);
44+
45+
// Set a star status for a variations list.
46+
rpc SetStarredStatus(SetStarredStatusRequest) returns(google.protobuf.Empty) ;
47+
48+
// Updates outputs for current variation
49+
rpc UpdateCurrent(google.protobuf.Empty) returns(UpdateResponse);
50+
51+
// Updates outputs for starred variations
52+
rpc UpdateStarred(google.protobuf.Empty) returns(UpdateResponse);
53+
54+
// Updates outputs for current variation
55+
rpc UpdateAll(google.protobuf.Empty) returns(UpdateResponse) ;
56+
57+
// Asks if the solve is running
58+
rpc IsSolving(google.protobuf.Empty) returns(IsSolvingResponse);
59+
60+
}
61+
62+
message GetAllVariationsResponse{
63+
// The variations on this page.
64+
repeated Variation defined_variations = 1 ;
65+
}
66+
67+
message GetAllInputsResponse{
68+
// The inputs on this page.
69+
repeated InputColumn inputs = 1 ;
70+
}
71+
message GetAllOutputsResponse{
72+
// The outputs on this page.
73+
repeated OutputColumn outputs = 1 ;
74+
}
75+
76+
message GetInputForVariationRequest{
77+
// The variation's moniker.
78+
string variation_moniker = 1;
79+
// The parameter' moniker.
80+
string input_parameter_moniker = 2;
81+
}
82+
83+
message SetInputValueRequest{
84+
// The variation's moniker.
85+
string variation_moniker = 1;
86+
// The input parameter.
87+
InputParameter defined_variation_table_input = 2;
88+
}
89+
90+
message GetOutputForVariationRequest{
91+
// The variation's moniker.
92+
string variation_moniker = 1;
93+
// The parameter' moniker.
94+
string output_parameter_moniker = 2;
95+
}
96+
97+
message GetInputColumnRequest{
98+
// The parameter' moniker.
99+
string input_parameter_moniker = 1;
100+
}
101+
102+
message GetInputColumnResponse{
103+
// The parameter's variations column.
104+
InputColumn column = 1;
105+
}
106+
107+
message GetOutputColumnRequest{
108+
// The parameter' moniker.
109+
string output_parameter_moniker = 1;
110+
}
111+
112+
message GetOutputColumnResponse{
113+
// The parameter's variations column.
114+
OutputColumn column = 1;
115+
}
116+
117+
message SetStarredStatusRequest{
118+
// The variations monikers.
119+
repeated string variations_monikers = 1;
120+
// The starred status
121+
bool starred = 2;
122+
}
123+
124+
///UPDATES
125+
//
126+
127+
message UpdateResponse{
128+
// The result
129+
bool result = 1;
130+
}
131+
132+
message IsSolvingResponse{
133+
// The result
134+
bool is_solving = 1;
135+
}
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
package ansys.api.discovery.v0;
4+
5+
import "ansys/api/dbu/v0/dbumodels.proto";
6+
7+
option csharp_namespace = "Ansys.Api.Discovery.V0";
8+
9+
//
10+
// A Variation (represents a row into the variation table)
11+
message Variation {
12+
string id = 1;
13+
string name = 2;
14+
bool starred = 3;
15+
repeated InputParameter inputs = 4;
16+
repeated OutputParameter outputs = 5;
17+
}
18+
19+
//
20+
// An input column (represents the same input parameter across all the variations )
21+
message InputColumn {
22+
string id = 1;
23+
string name = 2;
24+
string range = 3;
25+
repeated InputParameter parameter_variations= 4;
26+
}
27+
28+
//
29+
// An output column (represents the same output parameter across all the variations )
30+
message OutputColumn {
31+
string id = 1;
32+
string name = 2;
33+
string range = 3;
34+
repeated OutputParameter parameter_variations= 4;
35+
}
36+
37+
//
38+
// An history track parameter
39+
message HistoryTrackParameter {
40+
string id = 1;
41+
string name=2;
42+
ansys.api.dbu.v0.DimensionType dimension_type=3;
43+
double dimension_value=4;
44+
}
45+
46+
//
47+
// An input parameter
48+
message InputParameter {
49+
string id = 1;
50+
string parent_id=2;
51+
string name=3;
52+
QuantityType quantity_type=4;
53+
double quantity_value=5;
54+
int32 unit=6;
55+
string unit_abbreviation=7;
56+
InputParameterType input_type=8;
57+
string parent_object_id = 9;
58+
}
59+
60+
enum InputParameterType{
61+
PHYSICS=0;
62+
DRIVING_DIMENSION=1;
63+
HISTORY_TRACK=2;
64+
UNKNOWN=3;
65+
}
66+
67+
//
68+
// An output parameter
69+
message OutputParameter {
70+
string id = 1;
71+
string parent_id = 2;
72+
string name = 3;
73+
QuantityType quantity_type = 4;
74+
double quantity_value = 5;
75+
int32 unit = 6;
76+
string unit_abbreviation = 7;
77+
}
78+
79+
//
80+
// A script parameter
81+
message ScriptParameter {
82+
string id = 1;
83+
string name = 2;
84+
ansys.api.dbu.v0.DimensionType dimension_type = 3;
85+
double dimension_value = 4;
86+
}
87+
88+
//
89+
// Represents the quantity type for a physics parameter.
90+
enum QuantityType {
91+
QUANTITY_TYPE_ACCELERATION=0;
92+
QUANTITY_TYPE_ANGLE=1;
93+
QUANTITY_TYPE_AREA=2;
94+
QUANTITY_TYPE_AREA_DENSITY=3;
95+
QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA=4;
96+
QUANTITY_TYPE_CAPACITANCE=5;
97+
QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION=6;
98+
QUANTITY_TYPE_DENSITY=7;
99+
QUANTITY_TYPE_DYNAMIC_VISCOSITY=8;
100+
QUANTITY_TYPE_ELECTRIC_ADMITTANCE=9;
101+
QUANTITY_TYPE_ELECTRIC_CHARGE=10;
102+
QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY=11;
103+
QUANTITY_TYPE_ELECTRIC_CONDUCTANCE=12;
104+
QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY=13;
105+
QUANTITY_TYPE_ELECTRIC_CURRENT=14;
106+
QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY=15;
107+
QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT=16;
108+
QUANTITY_TYPE_ELECTRIC_FIELD=17;
109+
QUANTITY_TYPE_ELECTRIC_INDUCTANCE=18;
110+
QUANTITY_TYPE_ELECTRIC_POTENTIAL=19;
111+
QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC=20;
112+
QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE=21;
113+
QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC=22;
114+
QUANTITY_TYPE_ELECTRIC_RESISTANCE=23;
115+
QUANTITY_TYPE_ELECTRIC_RESISTIVITY=24;
116+
QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY=25;
117+
QUANTITY_TYPE_ENERGY=26;
118+
QUANTITY_TYPE_ENTROPY=27;
119+
QUANTITY_TYPE_FORCE=28;
120+
QUANTITY_TYPE_FORCE_CHANGE_RATE=29;
121+
QUANTITY_TYPE_FORCE_PER_LENGTH=30;
122+
QUANTITY_TYPE_FREQUENCY=31;
123+
QUANTITY_TYPE_HEAT_FLUX=32;
124+
QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT=33;
125+
QUANTITY_TYPE_INVERSE_AREA=34;
126+
QUANTITY_TYPE_INVERSE_LENGTH=35;
127+
QUANTITY_TYPE_KINEMATIC_VISCOSITY=36;
128+
QUANTITY_TYPE_LENGTH=37;
129+
QUANTITY_TYPE_MAGNETIC_FIELD=38;
130+
QUANTITY_TYPE_MASS=39;
131+
QUANTITY_TYPE_MASS_CONCENTRATION=40;
132+
QUANTITY_TYPE_MASS_FLOW=41;
133+
QUANTITY_TYPE_MASS_FLUX=42;
134+
QUANTITY_TYPE_MASS_FRACTION=43;
135+
QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA=44;
136+
QUANTITY_TYPE_MOLARITY=45;
137+
QUANTITY_TYPE_MOLAR_MASS=46;
138+
QUANTITY_TYPE_PERMEABILITY=47;
139+
QUANTITY_TYPE_PERMITTIVITY=48;
140+
QUANTITY_TYPE_POWER=49;
141+
QUANTITY_TYPE_POWER_DENSITY=50;
142+
QUANTITY_TYPE_POWER_RATIO=51;
143+
QUANTITY_TYPE_PRESSURE=52;
144+
QUANTITY_TYPE_RATIO=53;
145+
QUANTITY_TYPE_RATIO_CHANGE_RATE=54;
146+
QUANTITY_TYPE_REACTIVE_ENERGY=55;
147+
QUANTITY_TYPE_REACTIVE_POWER=56;
148+
QUANTITY_TYPE_ROTATIONAL_ACCELERATION=57;
149+
QUANTITY_TYPE_ROTATIONAL_SPEED=58;
150+
QUANTITY_TYPE_ROTATIONAL_STIFFNESS=59;
151+
QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH=60;
152+
QUANTITY_TYPE_SOLID_ANGLE=61;
153+
QUANTITY_TYPE_SPECIFIC_ENERGY=62;
154+
QUANTITY_TYPE_SPECIFIC_ENTROPY=63;
155+
QUANTITY_TYPE_SPECIFIC_VOLUME=64;
156+
QUANTITY_TYPE_SPECIFIC_WEIGHT=65;
157+
QUANTITY_TYPE_SPEED=66;
158+
QUANTITY_TYPE_TEMPERATURE=67;
159+
QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE=68;
160+
QUANTITY_TYPE_TEMPERATURE_DELTA=69;
161+
QUANTITY_TYPE_THERMAL_CONDUCTIVITY=70;
162+
QUANTITY_TYPE_THERMAL_RESISTANCE=71;
163+
QUANTITY_TYPE_TIME=72;
164+
QUANTITY_TYPE_TORQUE=73;
165+
QUANTITY_TYPE_TORQUE_PER_LENGTH=74;
166+
QUANTITY_TYPE_VOLUME=75;
167+
QUANTITY_TYPE_VOLUME_CONCENTRATION=76;
168+
QUANTITY_TYPE_VOLUME_FLOW=77;
169+
QUANTITY_TYPE_VOLUME_PER_LENGTH=78;
170+
QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79;
171+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.historytrackparameters;
4+
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.HistoryTrackParameters";
11+
12+
// History track parameters servicer.
13+
//
14+
service HistoryTrackParameters{
15+
// Gets an history track parameter .
16+
rpc Get(ansys.api.dbu.v0.EntityIdentifier) returns(HistoryTrackParameter);
17+
18+
// Lists all history track parameters.
19+
rpc GetAll(google.protobuf.Empty) returns(GetAllResponse);
20+
21+
// Upates a history track parameter.
22+
rpc Update(UpdateRequest) returns(HistoryTrackParameter);
23+
24+
// Replays the history block parameters
25+
rpc Replay(google.protobuf.Empty) returns(ReplayResponse);
26+
27+
rpc GetRecordingStatus(google.protobuf.Empty) returns(GetRecordingStatusResponse);
28+
29+
rpc SetRecordingStatus(SetRecordingStatusRequest) returns(google.protobuf.Empty);
30+
}
31+
32+
message GetAllResponse{
33+
// The history track parameters on this page.
34+
repeated HistoryTrackParameter history_track_parameters = 1;
35+
}
36+
message UpdateRequest{
37+
// The history track parameter to update.
38+
HistoryTrackParameter history_track_parameter = 1;
39+
}
40+
41+
message ReplayResponse{
42+
// The result
43+
string result = 1;
44+
}
45+
46+
enum RecordingStatus{
47+
OFF=0;
48+
ON=1;
49+
}
50+
51+
message GetRecordingStatusResponse{
52+
RecordingStatus status=1;
53+
}
54+
55+
message SetRecordingStatusRequest{
56+
RecordingStatus status=1;
57+
}

0 commit comments

Comments
 (0)