Skip to content

Commit fd005ca

Browse files
authored
Move MaterialTuningResult to SimulationResponse (#53)
1 parent c9b504f commit fd005ca

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

ansys/api/additive/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0-dev0
1+
4.0.0-dev0

ansys/api/additive/v0/additive_domain.proto

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,19 @@ message DownloadFileResponse {
301301
bytes content = 3; // chunk of file content
302302
string content_md5 = 4; // md5 hash of content
303303
Progress progress = 10; // download progress
304-
}
304+
}
305+
306+
message SimulationResponse {
307+
string id = 1;
308+
bytes logs = 2;
309+
oneof ResponseType {
310+
Progress progress = 10;
311+
MeltPool melt_pool = 11;
312+
PorosityResult porosity_result = 13;
313+
MicrostructureResult microstructure_result = 14;
314+
ThermalHistoryResult thermal_history_result = 15;
315+
ThermalStrainResult thermal_strain_result = 16;
316+
Microstructure3DResult microstructure_3d_result = 17;
317+
MaterialTuningResult result = 18;
318+
}
319+
}

ansys/api/additive/v0/additive_materials.proto

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ service MaterialsService {
2121

2222
rpc TuneMaterial (TuneMaterialRequest) returns (google.longrunning.Operation) {
2323
option (google.longrunning.operation_info) = {
24-
response_type: "TuneMaterialResponse"
24+
response_type: "SimulationResponse"
2525
metadata_type: "OperationMetadata"
2626
};
2727
}
@@ -57,11 +57,4 @@ message TuneMaterialRequest {
5757
MaterialTuningInput input = 2;
5858
}
5959

60-
message TuneMaterialResponse {
61-
string id = 1;
62-
oneof ResponseType {
63-
Progress progress = 10;
64-
MaterialTuningResult result = 11;
65-
}
66-
}
6760

0 commit comments

Comments
 (0)