Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ansys/api/acp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0.dev9
0.1.0.dev10
65 changes: 65 additions & 0 deletions src/ansys/api/acp/v0/butt_joint_sequence.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.butt_joint_sequence;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

message PrimaryPly {
base.ResourcePath sequence = 1;
int64 level = 2;
}

message Properties {
enum_types.StatusType status = 1;
bool active = 2;
int64 global_ply_nr = 3;
repeated PrimaryPly primary_plies = 4;
repeated base.ResourcePath secondary_plies = 5;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply { repeated ObjectInfo objects = 1; }

message CreateRequest {
base.CollectionPath collection_path = 1;
string name = 2;
Properties properties = 3;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);

rpc Get(base.GetRequest) returns (ObjectInfo);

rpc Put(ObjectInfo) returns (ObjectInfo);

rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);
}
2 changes: 0 additions & 2 deletions src/ansys/api/acp/v0/cad_component.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ message ObjectInfo {

message ListReply { repeated ObjectInfo objects = 1; }

message RefreshRequest { base.ResourcePath resource_path = 1; }

service ObjectService {
// Object is read-only => only list and get endpoints.

Expand Down
65 changes: 65 additions & 0 deletions src/ansys/api/acp/v0/cut_off_geometry.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.cut_off_geometry;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

enum OrientationType {
UP = 0;
DOWN = 1;
}

message Properties {
enum_types.StatusType status = 1;
bool active = 2;
base.ResourcePath cad_geometry = 3;
OrientationType orientation = 4;
double relative_merge_tolerance = 5;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply { repeated ObjectInfo objects = 1; }

message CreateRequest {
base.CollectionPath collection_path = 1;
string name = 2;
Properties properties = 3;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);

rpc Get(base.GetRequest) returns (ObjectInfo);

rpc Put(ObjectInfo) returns (ObjectInfo);

rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);
}
11 changes: 11 additions & 0 deletions src/ansys/api/acp/v0/enum_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,14 @@ enum ArrowType {
HALF_ARROW = 1;
STANDARD_ARROW = 2;
}

enum FileFormat {
ANSYS_H5 = 0;
ANSYS_CDB = 1;
ANSYS_DAT = 2;
ABAQUS_INP = 3; // currently unused
NASTRAN_BDF = 4; // currently unused
STEP = 5;
IGES = 6;
STL = 7;
}
72 changes: 72 additions & 0 deletions src/ansys/api/acp/v0/extrusion_guide.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.extrusion_guide;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";
import "ansys/api/acp/v0/array_types.proto";

enum ExtrusionGuideType {
BY_GEOMETRY = 0;
BY_DIRECTION = 1;
}

message Properties {
enum_types.StatusType status = 1;
bool active = 2;
base.ResourcePath edge_set = 3;
ExtrusionGuideType extrusion_guide_type = 4;
base.ResourcePath cad_geometry = 5;
array_types.DoubleArray direction = 6;

// MESH MORPHING PARAMETERS
double radius = 7;
double depth = 8;
bool use_curvature_correction = 9;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply { repeated ObjectInfo objects = 1; }

message CreateRequest {
base.CollectionPath collection_path = 1;
string name = 2;
Properties properties = 3;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);

rpc Get(base.GetRequest) returns (ObjectInfo);

rpc Put(ObjectInfo) returns (ObjectInfo);

rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);
}
11 changes: 8 additions & 3 deletions src/ansys/api/acp/v0/fabric.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ import "ansys/api/acp/v0/drop_off_material.proto";

message Properties {
enum_types.StatusType status = 1;
base.ResourcePath material = 9;
double thickness = 2;
double area_price = 3;
bool ignore_for_postprocessing = 4;

// SOLID MODEL OPTIONS
drop_off_material.MaterialHandlingType drop_off_material_handling = 5;
base.ResourcePath drop_off_material = 11;
cut_off_material.MaterialHandlingType cut_off_material_handling = 6;
base.ResourcePath cut_off_material = 12;

// DRAPING OPTIONS
ply_material.DrapingMaterialType draping_material_model = 7;
double draping_ud_coefficient = 8;
base.ResourcePath material = 9;
// todo: drop-off and cut-off material links (resource path).

// read only properties
// READ-ONLY PROPERTIES
double area_weight = 10;
}

Expand Down
62 changes: 62 additions & 0 deletions src/ansys/api/acp/v0/field_definition.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.field_definition;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

message Properties {
enum_types.StatusType status = 1;
bool locked = 2;
bool active = 3;
string field_variable_name = 4;
repeated base.ResourcePath scope_entities = 5;
base.ResourcePath scalar_field = 6;
bool full_mapping = 7;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply { repeated ObjectInfo objects = 1; }

message CreateRequest {
base.CollectionPath collection_path = 1;
string name = 2;
Properties properties = 3;
}

service ObjectService {
rpc List(base.ListRequest) returns (ListReply);

rpc Get(base.GetRequest) returns (ObjectInfo);

rpc Put(ObjectInfo) returns (ObjectInfo);

rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);
}
51 changes: 51 additions & 0 deletions src/ansys/api/acp/v0/imported_analysis_ply.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.imported_analysis_ply;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

message Properties {
// Object is generated on update and all properties are read only.
enum_types.StatusType status = 1;
base.ResourcePath material = 2;
double thickness = 3;
// angle in degree
double angle = 4;
bool active_in_post_mode = 5;
}

message ObjectInfo {
base.BasicInfo info = 1;
Properties properties = 2;
}

message ListReply { repeated ObjectInfo objects = 1; }

service ObjectService {
// Object is generated on update and read-only =>
// only list and get endpoints.
rpc List(base.ListRequest) returns (ListReply);
rpc Get(base.GetRequest) returns (ObjectInfo);
}
Loading