Skip to content

Commit

Permalink
sync: file sync performed by ansys-tools-repo-sync (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: tfs_caslservice <tfs_caslservice@PDUCASLVM02>
  • Loading branch information
RobPasMue and tfs_caslservice authored Oct 19, 2023
1 parent 206d9ca commit 2391655
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ansys/api/geometry/v0/bodies.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,30 @@ service Bodies
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);

rpc Boolean(BooleanRequest) returns (BooleanResponse);

rpc GetVertices(ansys.api.dbu.v0.EntityIdentifier) returns (GetVerticesResponse);

rpc GetBoundingBox(ansys.api.dbu.v0.EntityIdentifier) returns (GetBoundingBoxResponse);

rpc GetSurfaceBodyThickness(ansys.api.dbu.v0.EntityIdentifier) returns (GetSurfaceBodyThicknessResponse);

rpc IsEnclosureBody(ansys.api.dbu.v0.EntityIdentifier) returns (IsEnclosureBodyResponse);
}

message IsEnclosureBodyResponse {
bool result = 1;
}

message GetSurfaceBodyThicknessResponse {
double result = 1;
}

message GetBoundingBoxResponse {
Box box = 1;
}

message GetVerticesResponse {
repeated Vertex vertices = 1;
}

message BooleanRequest {
Expand Down
29 changes: 29 additions & 0 deletions ansys/api/geometry/v0/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,34 @@ service Commands{
rpc DeleteBeamProfile(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty);

rpc GetAssembly(ansys.api.dbu.v0.EntityIdentifier) returns (GetAssemblyResponse);

rpc GetBeamProfileName(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamProfileNameResponse);

rpc GetBeamProfileParts(google.protobuf.Empty) returns (GetBeamProfilePartsResponse);

rpc GetBeamProperties(ansys.api.dbu.v0.EntityIdentifier) returns (BeamProperties);

rpc GetBeamCrossSectionInfo(ansys.api.dbu.v0.EntityIdentifier) returns (BeamCrossSectionInfo);

rpc GetAllSpotWelds(google.protobuf.Empty) returns (GetAllSpotWeldsResponse);

rpc GetAllCADWelds(google.protobuf.Empty) returns (GetAllCADWeldsResponse);
}

message GetAllSpotWeldsResponse {
repeated SpotWeld welds = 1;
}

message GetAllCADWeldsResponse {
repeated Weld welds = 1;
}

message GetBeamProfilePartsResponse {
repeated Part parts = 1;
}

message GetBeamProfileNameResponse{
string name = 1;
}

message RenameManyRequest{
Expand Down Expand Up @@ -204,6 +232,7 @@ message UploadFileRequest {

message UploadFileResponse {
string file_path=1;
ansys.api.dbu.v0.EntityIdentifier document_id=2;
}

message CreateSphereRequest {
Expand Down
8 changes: 8 additions & 0 deletions ansys/api/geometry/v0/components.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ service Components{
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);

rpc SetPlacement(SetPlacementRequest) returns (SetPlacementResponse);

rpc GetBeamBodies(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamBodiesResponse);

rpc GetPart(ansys.api.dbu.v0.EntityIdentifier) returns (Part);
}

message GetBeamBodiesResponse {
repeated string beams = 1;
}

message SetPlacementRequest {
Expand Down
72 changes: 72 additions & 0 deletions ansys/api/geometry/v0/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ message Curve{
repeated Point points = 4;
}

message CurveGeometry {
Point origin = 1;
double radius = 2;
double major_radius = 3;
double minor_radius = 4;
Direction direction = 5;
Direction reference = 6;
Direction axis = 7;
}

message TrimmedCurve {
CurveGeometry curve = 1;
Point start = 2;
Point end = 3;
double interval_start = 4;
double interval_end = 5;
double length = 6;
}

//
// A edge.
message Edge{
Expand Down Expand Up @@ -392,4 +411,57 @@ enum SegmentType {

message UpdateState {
int32 state=1;
}

message Vertex {
Point position = 1;
repeated Edge edges = 2;
}
message TrimmedCurveList {
repeated TrimmedCurve curves = 1;
}

message SpotWeld {
map<string, Point> weld_points = 1;
}

message Weld {
repeated TrimmedCurveList geometry = 1;
string display_name = 2;
double length = 3;
double volume = 4;
double mass = 5;
double time = 6;
double rod_length = 7;
bool is_intermittent = 8;
int32 sequence_id = 9;
double size1 = 10;
double size2 = 11;

// This data only exists if the weld is intermittent
bool is_angular = 12;
bool is_at_center = 13;
double intermittent_length = 14;
int32 number_of_welds = 15;
double pitch = 16;
}

message BeamProperties {
double area = 1;
double centroid_x = 2;
double centroid_y = 3;
double warping_constant = 4;
double ixx = 5;
double ixy = 6;
double iyy = 7;
double torsional_constant = 8;
double shear_center_x = 9;
double shear_center_y = 10;
}

message BeamCrossSectionInfo {
int32 section_anchor = 1;
double section_angle = 2;
Frame section_frame = 3;
repeated TrimmedCurveList section_profile = 4;
}

0 comments on commit 2391655

Please sign in to comment.