Skip to content

Commit e586e34

Browse files
authored
Add definitions for thermal strain sim (#23)
1 parent 160985c commit e586e34

File tree

4 files changed

+53
-71
lines changed

4 files changed

+53
-71
lines changed

ansys/api/additive/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.0
1+
1.4.0

ansys/api/additive/v0/additive_domain.proto

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,38 @@ message MaterialTuningResult {
216216
bytes log = 1;
217217
bytes optimized_parameters = 2;
218218
bytes characteristic_width_lookup = 10;
219-
}
219+
}
220+
221+
enum ThermalSolveType {
222+
THERMAL_SOLVE_TYPE_UNSPECIFIED = 0; // default value used in messages
223+
THERMAL_SOLVE_TYPE_SCAN_PATTERN = 1;
224+
}
225+
226+
message ThermalStrainInput {
227+
oneof FileType {
228+
StlFile stl_file = 1;
229+
BuildFile build_file = 2;
230+
}
231+
ThermalSolveType solve_type = 3;
232+
MachineSettings machine = 10;
233+
AdditiveMaterial material = 11;
234+
}
235+
236+
message ThermalStrainResult {
237+
string shrinkage_file = 1; // name of zip archive on server
238+
uint32 number_of_deposit_layers = 2;
239+
float layer_thickness = 3;
240+
}
241+
242+
message VoxelMeshInput {
243+
oneof FileType {
244+
StlFile stl_file = 1;
245+
BuildFile build_file = 2;
246+
}
247+
float voxel_size = 3;
248+
}
249+
250+
message VoxelMeshResult {
251+
string voxel_file = 1; // name of voxel file on server
252+
}
253+

ansys/api/additive/v0/additive_process_window_optimization.proto

Lines changed: 0 additions & 69 deletions
This file was deleted.

ansys/api/additive/v0/additive_simulation.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ service SimulationService {
1111
rpc Simulate(SimulationRequest) returns (stream SimulationResponse);
1212
rpc UploadFile(stream UploadFileRequest) returns (stream UploadFileResponse);
1313
rpc DownloadFile(DownloadFileRequest) returns (stream DownloadFileResponse);
14+
rpc Mesh(MeshRequest) returns (stream MeshResponse);
1415
}
1516

1617
message SimulationResponse {
@@ -21,6 +22,7 @@ message SimulationResponse {
2122
PorosityResult porosity_result = 13;
2223
MicrostructureResult microstructure_result = 14;
2324
ThermalHistoryResult thermal_history_result = 15;
25+
ThermalStrainResult thermal_strain_result = 16;
2426
}
2527
}
2628

@@ -31,6 +33,7 @@ message SimulationRequest {
3133
PorosityInput porosity_input = 11;
3234
MicrostructureInput microstructure_input = 12;
3335
ThermalHistoryInput thermal_history_input = 13;
36+
ThermalStrainInput thermal_strain_input = 14;
3437
}
3538
}
3639

@@ -63,3 +66,17 @@ message DownloadFileResponse {
6366
string content_md5 = 4; // md5 hash of content
6467
Progress progress = 10; // download progress
6568
}
69+
70+
message MeshRequest {
71+
string id = 1;
72+
oneof Input {
73+
VoxelMeshInput voxel_mesh_input = 10;
74+
}
75+
}
76+
77+
message MeshResponse {
78+
string id = 1;
79+
oneof ResponseType {
80+
VoxelMeshResult voxel_mesh_result = 10;
81+
}
82+
}

0 commit comments

Comments
 (0)