From 902d1e4701d3d95edb92106828c959e08e317487 Mon Sep 17 00:00:00 2001 From: Rene Roos Date: Wed, 16 Nov 2022 08:29:41 +0100 Subject: [PATCH 1/3] add ply_type to the material properties --- src/ansys/api/acp/v0/material.proto | 3 +++ src/ansys/api/acp/v0/ply_type.proto | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/ansys/api/acp/v0/ply_type.proto diff --git a/src/ansys/api/acp/v0/material.proto b/src/ansys/api/acp/v0/material.proto index ee55deb..a61ee57 100644 --- a/src/ansys/api/acp/v0/material.proto +++ b/src/ansys/api/acp/v0/material.proto @@ -3,12 +3,15 @@ package ansys.api.acp.v0.material; import "ansys/api/acp/v0/base.proto"; import "ansys/api/acp/v0/enum_types.proto"; +import "ansys/api/acp/v0/ply_type.proto"; // Default CRUD messages message Properties { + //This is only a minimal set. List is not complete yet enum_types.StatusType status = 1; bool locked = 2; + ply_type.PlyType ply_type = 3; } message ObjectInfo { diff --git a/src/ansys/api/acp/v0/ply_type.proto b/src/ansys/api/acp/v0/ply_type.proto new file mode 100644 index 0000000..e7a0b42 --- /dev/null +++ b/src/ansys/api/acp/v0/ply_type.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package ansys.api.acp.v0.ply_type; + +//defines the ply type which is used for the post-processing +//to distinguish between isotropic, reinforced, and core materials +enum PlyType { + REGULAR = 0; + WOVEN = 1; + ORTHOTROPIC_HOMOGENEOUS_CORE = 2; + ISOTROPIC_HOMOGENEOUS_CORE = 3; + HONEYCOMB_CORE = 4; + ISOTROPIC = 5; + UNDEFINED = 6; + ADHESIVE = 7; +} \ No newline at end of file From 363ef4199b34e4ffcacc577cac1b7c7439064e6a Mon Sep 17 00:00:00 2001 From: Rene Roos Date: Thu, 17 Nov 2022 11:33:13 +0100 Subject: [PATCH 2/3] Move the definition of the PlyType enum to enum_types.proto --- src/ansys/api/acp/v0/enum_types.proto | 14 ++++++++++++++ src/ansys/api/acp/v0/ply_type.proto | 15 --------------- 2 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 src/ansys/api/acp/v0/ply_type.proto diff --git a/src/ansys/api/acp/v0/enum_types.proto b/src/ansys/api/acp/v0/enum_types.proto index 03ce1cb..7472520 100644 --- a/src/ansys/api/acp/v0/enum_types.proto +++ b/src/ansys/api/acp/v0/enum_types.proto @@ -18,3 +18,17 @@ enum RosetteSelectionMethod { ANSYS_CLASSIC = 6; DIRECTIONS_FROM_TABULAR_VALUES = 7; } + +//defines the ply type which is used for instance by the solid model +//extrusion and the post-processing to distinguish between isotropic, +//reinforced, and core materials +enum PlyType { + REGULAR = 0; + WOVEN = 1; + ORTHOTROPIC_HOMOGENEOUS_CORE = 2; + ISOTROPIC_HOMOGENEOUS_CORE = 3; + HONEYCOMB_CORE = 4; + ISOTROPIC = 5; + UNDEFINED = 6; + ADHESIVE = 7; +} \ No newline at end of file diff --git a/src/ansys/api/acp/v0/ply_type.proto b/src/ansys/api/acp/v0/ply_type.proto deleted file mode 100644 index e7a0b42..0000000 --- a/src/ansys/api/acp/v0/ply_type.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; -package ansys.api.acp.v0.ply_type; - -//defines the ply type which is used for the post-processing -//to distinguish between isotropic, reinforced, and core materials -enum PlyType { - REGULAR = 0; - WOVEN = 1; - ORTHOTROPIC_HOMOGENEOUS_CORE = 2; - ISOTROPIC_HOMOGENEOUS_CORE = 3; - HONEYCOMB_CORE = 4; - ISOTROPIC = 5; - UNDEFINED = 6; - ADHESIVE = 7; -} \ No newline at end of file From beeee07a459b50a3c5529bcaa35ff8fc3a19bb86 Mon Sep 17 00:00:00 2001 From: Rene Roos Date: Thu, 17 Nov 2022 11:45:10 +0100 Subject: [PATCH 3/3] fix material.proto --- src/ansys/api/acp/v0/material.proto | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansys/api/acp/v0/material.proto b/src/ansys/api/acp/v0/material.proto index a61ee57..7188492 100644 --- a/src/ansys/api/acp/v0/material.proto +++ b/src/ansys/api/acp/v0/material.proto @@ -3,7 +3,6 @@ package ansys.api.acp.v0.material; import "ansys/api/acp/v0/base.proto"; import "ansys/api/acp/v0/enum_types.proto"; -import "ansys/api/acp/v0/ply_type.proto"; // Default CRUD messages @@ -11,7 +10,7 @@ message Properties { //This is only a minimal set. List is not complete yet enum_types.StatusType status = 1; bool locked = 2; - ply_type.PlyType ply_type = 3; + enum_types.PlyType ply_type = 3; } message ObjectInfo {