From 6cb943c72674c465e98f40e73adbe02367146a19 Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Tue, 17 Dec 2024 11:52:18 -0700 Subject: [PATCH] Move MaterialTuningResult to SimulationResponse --- ansys/api/additive/VERSION | 2 +- ansys/api/additive/v0/additive_domain.proto | 17 ++++++++++++++++- ansys/api/additive/v0/additive_materials.proto | 9 +-------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index 45fbf50..eaa2409 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -3.1.0-dev0 +4.0.0-dev0 diff --git a/ansys/api/additive/v0/additive_domain.proto b/ansys/api/additive/v0/additive_domain.proto index a87fc3b..1c09a68 100644 --- a/ansys/api/additive/v0/additive_domain.proto +++ b/ansys/api/additive/v0/additive_domain.proto @@ -301,4 +301,19 @@ message DownloadFileResponse { bytes content = 3; // chunk of file content string content_md5 = 4; // md5 hash of content Progress progress = 10; // download progress -} \ No newline at end of file +} + +message SimulationResponse { + string id = 1; + bytes logs = 2; + oneof ResponseType { + Progress progress = 10; + MeltPool melt_pool = 11; + PorosityResult porosity_result = 13; + MicrostructureResult microstructure_result = 14; + ThermalHistoryResult thermal_history_result = 15; + ThermalStrainResult thermal_strain_result = 16; + Microstructure3DResult microstructure_3d_result = 17; + MaterialTuningResult result = 18; + } +} diff --git a/ansys/api/additive/v0/additive_materials.proto b/ansys/api/additive/v0/additive_materials.proto index 7c25697..6167f48 100644 --- a/ansys/api/additive/v0/additive_materials.proto +++ b/ansys/api/additive/v0/additive_materials.proto @@ -21,7 +21,7 @@ service MaterialsService { rpc TuneMaterial (TuneMaterialRequest) returns (google.longrunning.Operation) { option (google.longrunning.operation_info) = { - response_type: "TuneMaterialResponse" + response_type: "SimulationResponse" metadata_type: "OperationMetadata" }; } @@ -57,11 +57,4 @@ message TuneMaterialRequest { MaterialTuningInput input = 2; } -message TuneMaterialResponse { - string id = 1; - oneof ResponseType { - Progress progress = 10; - MaterialTuningResult result = 11; - } -}