Skip to content

Commit add6d79

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 8f8cb85 + 2e8a9a6 commit add6d79

File tree

3 files changed

+17
-166
lines changed

3 files changed

+17
-166
lines changed

ansys/api/geometry/v0/components.proto

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
syntax = "proto3";
33
package ansys.api.geometry.v0.Components;
44

5+
56
import "ansys/api/geometry/v0/models.proto";
67

78
option csharp_namespace = "Ansys.Api.Geometry.V0.Components";
@@ -22,8 +23,22 @@ service Components{
2223
rpc GetRootComponent(Empty) returns (GetRootComponentResponse);
2324

2425
rpc GetName(EntityIdentifier) returns (GetComponentNameResponse);
25-
26+
2627
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
28+
29+
rpc SetPlacement(SetPlacementRequest) returns (SetPlacementResponse);
30+
}
31+
32+
message SetPlacementRequest {
33+
string id = 1;
34+
Direction translation = 2;
35+
Point rotation_axis_origin = 3;
36+
Direction rotation_axis_direction = 4;
37+
double rotation_angle = 5;
38+
}
39+
40+
message SetPlacementResponse {
41+
Matrix matrix = 1;
2742
}
2843

2944
message GetAllRequest{

ansys/api/geometry/v0/models.proto

Lines changed: 0 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,6 @@ message NamedSelection {
161161
string name = 2;
162162
}
163163

164-
//
165-
// A driving dimension.
166-
message DrivingDimension {
167-
string id = 1;
168-
string name = 2;
169-
DimensionType dimension_type = 3;
170-
double dimension_value = 4;
171-
}
172-
173164
//
174165
// A 3D coordinate system.
175166
message CoordinateSystem{
@@ -226,47 +217,6 @@ message Matrix{
226217
double m32 = 15;
227218
double m33 = 16;
228219
}
229-
//
230-
// An history track parameter
231-
message HistoryTrackParameter {
232-
string id = 1;
233-
string name=2;
234-
DimensionType dimension_type=3;
235-
double dimension_value=4;
236-
}
237-
238-
//
239-
// An input parameter
240-
message InputParameter {
241-
string id = 1;
242-
string parent_id=2;
243-
string name=3;
244-
QuantityType quantity_type=4;
245-
double quantity_value=5;
246-
int32 unit=6;
247-
string unit_abbreviation=7;
248-
}
249-
250-
//
251-
// An output parameter
252-
message OutputParameter {
253-
string id = 1;
254-
string parent_id = 2;
255-
string name = 3;
256-
QuantityType quantity_type = 4;
257-
double quantity_value = 5;
258-
int32 unit = 6;
259-
string unit_abbreviation = 7;
260-
}
261-
262-
//
263-
// A script parameter
264-
message ScriptParameter {
265-
string id = 1;
266-
string name = 2;
267-
DimensionType dimension_type = 3;
268-
double dimension_value = 4;
269-
}
270220

271221
//
272222
// ShrinkWrapOptions is used to specify ShrinkWrap method in the Facet Tools.
@@ -282,120 +232,6 @@ message ShrinkWrapOptions {
282232
double curvature_angle =10;
283233
}
284234

285-
//
286-
// A Variation (represents a row into the variation table)
287-
message Variation {
288-
string id = 1;
289-
string name = 2;
290-
bool starred = 3;
291-
repeated InputParameter inputs = 4;
292-
repeated OutputParameter outputs = 5;
293-
}
294-
295-
//
296-
// An input column (represents the same input parameter across all the variations )
297-
message InputColumn {
298-
string id = 1;
299-
string name = 2;
300-
string range = 3;
301-
repeated InputParameter parameter_variations= 4;
302-
}
303-
304-
//
305-
// An output column (represents the same output parameter across all the variations )
306-
message OutputColumn {
307-
string id = 1;
308-
string name = 2;
309-
string range = 3;
310-
repeated OutputParameter parameter_variations= 4;
311-
}
312-
313-
//
314-
// Represents the quantity type for a physics parameter.
315-
enum QuantityType {
316-
QUANTITY_TYPE_ACCELERATION=0;
317-
QUANTITY_TYPE_ANGLE=1;
318-
QUANTITY_TYPE_AREA=2;
319-
QUANTITY_TYPE_AREA_DENSITY=3;
320-
QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA=4;
321-
QUANTITY_TYPE_CAPACITANCE=5;
322-
QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION=6;
323-
QUANTITY_TYPE_DENSITY=7;
324-
QUANTITY_TYPE_DYNAMIC_VISCOSITY=8;
325-
QUANTITY_TYPE_ELECTRIC_ADMITTANCE=9;
326-
QUANTITY_TYPE_ELECTRIC_CHARGE=10;
327-
QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY=11;
328-
QUANTITY_TYPE_ELECTRIC_CONDUCTANCE=12;
329-
QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY=13;
330-
QUANTITY_TYPE_ELECTRIC_CURRENT=14;
331-
QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY=15;
332-
QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT=16;
333-
QUANTITY_TYPE_ELECTRIC_FIELD=17;
334-
QUANTITY_TYPE_ELECTRIC_INDUCTANCE=18;
335-
QUANTITY_TYPE_ELECTRIC_POTENTIAL=19;
336-
QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC=20;
337-
QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE=21;
338-
QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC=22;
339-
QUANTITY_TYPE_ELECTRIC_RESISTANCE=23;
340-
QUANTITY_TYPE_ELECTRIC_RESISTIVITY=24;
341-
QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY=25;
342-
QUANTITY_TYPE_ENERGY=26;
343-
QUANTITY_TYPE_ENTROPY=27;
344-
QUANTITY_TYPE_FORCE=28;
345-
QUANTITY_TYPE_FORCE_CHANGE_RATE=29;
346-
QUANTITY_TYPE_FORCE_PER_LENGTH=30;
347-
QUANTITY_TYPE_FREQUENCY=31;
348-
QUANTITY_TYPE_HEAT_FLUX=32;
349-
QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT=33;
350-
QUANTITY_TYPE_INVERSE_AREA=34;
351-
QUANTITY_TYPE_INVERSE_LENGTH=35;
352-
QUANTITY_TYPE_KINEMATIC_VISCOSITY=36;
353-
QUANTITY_TYPE_LENGTH=37;
354-
QUANTITY_TYPE_MAGNETIC_FIELD=38;
355-
QUANTITY_TYPE_MASS=39;
356-
QUANTITY_TYPE_MASS_CONCENTRATION=40;
357-
QUANTITY_TYPE_MASS_FLOW=41;
358-
QUANTITY_TYPE_MASS_FLUX=42;
359-
QUANTITY_TYPE_MASS_FRACTION=43;
360-
QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA=44;
361-
QUANTITY_TYPE_MOLARITY=45;
362-
QUANTITY_TYPE_MOLAR_MASS=46;
363-
QUANTITY_TYPE_PERMEABILITY=47;
364-
QUANTITY_TYPE_PERMITTIVITY=48;
365-
QUANTITY_TYPE_POWER=49;
366-
QUANTITY_TYPE_POWER_DENSITY=50;
367-
QUANTITY_TYPE_POWER_RATIO=51;
368-
QUANTITY_TYPE_PRESSURE=52;
369-
QUANTITY_TYPE_RATIO=53;
370-
QUANTITY_TYPE_RATIO_CHANGE_RATE=54;
371-
QUANTITY_TYPE_REACTIVE_ENERGY=55;
372-
QUANTITY_TYPE_REACTIVE_POWER=56;
373-
QUANTITY_TYPE_ROTATIONAL_ACCELERATION=57;
374-
QUANTITY_TYPE_ROTATIONAL_SPEED=58;
375-
QUANTITY_TYPE_ROTATIONAL_STIFFNESS=59;
376-
QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH=60;
377-
QUANTITY_TYPE_SOLID_ANGLE=61;
378-
QUANTITY_TYPE_SPECIFIC_ENERGY=62;
379-
QUANTITY_TYPE_SPECIFIC_ENTROPY=63;
380-
QUANTITY_TYPE_SPECIFIC_VOLUME=64;
381-
QUANTITY_TYPE_SPECIFIC_WEIGHT=65;
382-
QUANTITY_TYPE_SPEED=66;
383-
QUANTITY_TYPE_TEMPERATURE=67;
384-
QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE=68;
385-
QUANTITY_TYPE_TEMPERATURE_DELTA=69;
386-
QUANTITY_TYPE_THERMAL_CONDUCTIVITY=70;
387-
QUANTITY_TYPE_THERMAL_RESISTANCE=71;
388-
QUANTITY_TYPE_TIME=72;
389-
QUANTITY_TYPE_TORQUE=73;
390-
QUANTITY_TYPE_TORQUE_PER_LENGTH=74;
391-
QUANTITY_TYPE_VOLUME=75;
392-
QUANTITY_TYPE_VOLUME_CONCENTRATION=76;
393-
QUANTITY_TYPE_VOLUME_FLOW=77;
394-
QUANTITY_TYPE_VOLUME_PER_LENGTH=78;
395-
QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79;
396-
}
397-
398-
399235
message Material{
400236
string name=1;
401237
repeated MaterialProperty material_properties=2;

ansys/api/geometry/v0/streaming.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
33
package ansys.api.geometry.v0;
4-
option csharp_namespace = "Ansys.Api.Geometry.V0";
4+
option csharp_namespace = "Ansys.Api.Geometry.V0.Streaming";
55

66
message StreamPackage{
77
// The type of content

0 commit comments

Comments
 (0)