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..7db9f9e --- /dev/null +++ b/src/ansys/api/acp/v0/fabric.proto @@ -0,0 +1,48 @@ +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; + + base.ResourcePath material = 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); +} 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; +}