From 19e9bd3cb21f46fd826f9f2fc3215e6c91548de3 Mon Sep 17 00:00:00 2001 From: Rene Roos Date: Tue, 21 Jun 2022 23:47:53 +0200 Subject: [PATCH 1/2] add proto files for Fabric and some enums --- src/ansys/api/acp/v0/cut_off_material.proto | 9 ++++ src/ansys/api/acp/v0/drop_off_material.proto | 9 ++++ src/ansys/api/acp/v0/enum_types.proto | 2 +- src/ansys/api/acp/v0/fabric.proto | 46 ++++++++++++++++++++ src/ansys/api/acp/v0/ply_material.proto | 15 +++++++ 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 src/ansys/api/acp/v0/cut_off_material.proto create mode 100644 src/ansys/api/acp/v0/drop_off_material.proto create mode 100644 src/ansys/api/acp/v0/fabric.proto create mode 100644 src/ansys/api/acp/v0/ply_material.proto diff --git a/src/ansys/api/acp/v0/cut_off_material.proto b/src/ansys/api/acp/v0/cut_off_material.proto new file mode 100644 index 0000000..eec20b2 --- /dev/null +++ b/src/ansys/api/acp/v0/cut_off_material.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package ansys.api.acp.v0.cut_off_material; + +//defines the source of the cut-off material +enum MaterialHandlingType { + COMPUTED = 0; + GLOBAL = 1; + CUSTOM = 2; +} diff --git a/src/ansys/api/acp/v0/drop_off_material.proto b/src/ansys/api/acp/v0/drop_off_material.proto new file mode 100644 index 0000000..293271d --- /dev/null +++ b/src/ansys/api/acp/v0/drop_off_material.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package ansys.api.acp.v0.drop_off_material; + +//defines the source of the drop-off material +enum MaterialHandlingType { + GLOBAL = 0; + CUSTOM = 1; +} + diff --git a/src/ansys/api/acp/v0/enum_types.proto b/src/ansys/api/acp/v0/enum_types.proto index 8623c94..c7a5b81 100644 --- a/src/ansys/api/acp/v0/enum_types.proto +++ b/src/ansys/api/acp/v0/enum_types.proto @@ -6,4 +6,4 @@ enum StatusType { UNKNOWN = 0; UPTODATE = 1; NOTUPTODATE = 2; -} \ No newline at end of file +} diff --git a/src/ansys/api/acp/v0/fabric.proto b/src/ansys/api/acp/v0/fabric.proto new file mode 100644 index 0000000..b9b3728 --- /dev/null +++ b/src/ansys/api/acp/v0/fabric.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; +package ansys.api.acp.v0.fabric; + +import "ansys/api/acp/v0/base.proto"; +import "ansys/api/acp/v0/enum_types.proto"; +import "ansys/api/acp/v0/ply_material.proto"; +import "ansys/api/acp/v0/cut_off_material.proto"; +import "ansys/api/acp/v0/drop_off_material.proto"; + +message Properties { + enum_types.StatusType status = 1; + double thickness = 2; + double area_price = 3; + bool ignore_for_postprocessing = 4; + drop_off_material.MaterialHandlingType drop_off_material_handling = 5; + cut_off_material.MaterialHandlingType cut_off_material_handling = 6; + ply_material.DrapingMaterialType draping_material_model = 7; + double draping_ud_coefficient = 8; +} + +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); +} diff --git a/src/ansys/api/acp/v0/ply_material.proto b/src/ansys/api/acp/v0/ply_material.proto new file mode 100644 index 0000000..fc01c7f --- /dev/null +++ b/src/ansys/api/acp/v0/ply_material.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package ansys.api.acp.v0.ply_material; + +//defines the draping model (algorithm) +enum DrapingMaterialType { + WOVEN = 0; + UD = 1; +} + +//defines the symmetry-type for stackups, sublaminates etc +enum SymmetryType { + NO_SYMMETRY = 0; + EVEN_SYMMETRY = 1; + ODD_SYMMETRY = 2; +} From f6ffe2dbd738b0c3a937e33fa84a7cab39ac3c95 Mon Sep 17 00:00:00 2001 From: Rene Roos Date: Wed, 22 Jun 2022 13:22:14 +0200 Subject: [PATCH 2/2] add material property to the Fabric object --- src/ansys/api/acp/v0/fabric.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ansys/api/acp/v0/fabric.proto b/src/ansys/api/acp/v0/fabric.proto index b9b3728..7db9f9e 100644 --- a/src/ansys/api/acp/v0/fabric.proto +++ b/src/ansys/api/acp/v0/fabric.proto @@ -16,6 +16,8 @@ message Properties { cut_off_material.MaterialHandlingType cut_off_material_handling = 6; ply_material.DrapingMaterialType draping_material_model = 7; double draping_ud_coefficient = 8; + + base.ResourcePath material = 9; } message ObjectInfo {