Skip to content

Commit 638397d

Browse files
pyansys-ci-bottfs_caslservice
andauthored
sync: file sync performed by ansys-tools-repo-sync (#58)
sync: add changes from local folder Co-authored-by: tfs_caslservice <tfs_caslservice@cdcw22cslbld07>
1 parent 7e4c604 commit 638397d

File tree

5 files changed

+285
-0
lines changed

5 files changed

+285
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
package ansys.api.discovery.v0.assignments.fanassignment;
4+
5+
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/discovery/v0/discoverymodels.proto";
7+
import "ansys/api/discovery/v0/engineeringdata/fandata.proto";
8+
9+
option csharp_namespace = "Ansys.Api.Discovery.V0.Assignments";
10+
11+
service Fan
12+
{
13+
rpc CreateInternalFanAssignment(InternalFanAssignmentCreationRequest) returns (InternalFanAssignmentCreationResponse);
14+
15+
rpc CreateExternalFanAssignment(ExternalFanAssignmentCreationRequest) returns (ExternalFanAssignmentCreationResponse);
16+
17+
rpc ChangeFanAssignment(ChangeAssignmentRequest) returns (ChangeResponse);
18+
19+
rpc ChangeExternalFanSpecification(ChangeExternalFanSpecificationRequest) returns (ChangeResponse);
20+
21+
rpc ChangeFanLocation(ChangeLocationExtendedRequest) returns (ChangeResponse);
22+
23+
rpc ChangeExternalFanGaugePressure(ChangeQuantityRequest) returns (ChangeResponse);
24+
25+
rpc ChangeInternalFanInletFace(ChangeLocationRequest) returns (ChangeResponse);
26+
27+
rpc ChangeInternalFanIsShrouded(ChangeBooleanRequest) returns (ChangeResponse);
28+
29+
rpc ChangeInternalFanHubRadius(ChangeQuantityRequest) returns (ChangeResponse);
30+
31+
rpc ChangeInternalFanTipRadius(ChangeQuantityRequest) returns (ChangeResponse);
32+
33+
rpc ChangeInternalFanTotalHeat(ChangeQuantityRequest) returns (ChangeResponse);
34+
35+
rpc ChangeInternalFanSpecifyTotalHeat(ChangeBooleanRequest) returns (ChangeResponse);
36+
}
37+
38+
message InternalFanAssignmentCreationRequest{
39+
DoubleSidedScopedCreationData creation_data = 1;
40+
ansys.api.dbu.v0.PhysicsEntityIdentifier fan_id = 2;
41+
InternalFanAssignmentProperties internal_fan_assignment_properties = 3;
42+
}
43+
44+
message ExternalFanAssignmentCreationRequest{
45+
ScopedCreationData creation_data = 1;
46+
ansys.api.dbu.v0.PhysicsEntityIdentifier fan_id = 2;
47+
ExternalFanAssignmentProperties external_fan_assignment_properties = 3;
48+
}
49+
50+
message InternalFanAssignmentCreationResponse{
51+
CreationResponse condition_response = 1;
52+
InternalFanAssignmentDefinition condition_data = 2;
53+
}
54+
55+
message ExternalFanAssignmentCreationResponse{
56+
CreationResponse condition_response = 1;
57+
ExternalFanAssignmentDefinition condition_data = 2;
58+
}
59+
60+
message ChangeExternalFanSpecificationRequest{
61+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
62+
ExternalFanSpecification specification = 2;
63+
}
64+
65+
message ExternalFanAssignmentProperties {
66+
ExternalFanSpecification specification = 1;
67+
Quantity gauge_pressure = 2;
68+
bool is_swirling = 3;
69+
}
70+
71+
message InternalFanAssignmentProperties {
72+
bool is_shrouded = 1;
73+
OptionalQuantity specify_total_heat = 2;
74+
Quantity hub_radius = 3;
75+
Quantity tip_radius = 4;
76+
bool is_swirling = 5;
77+
}
78+
79+
enum ExternalFanSpecification
80+
{
81+
INTAKE = 0;
82+
EXHAUST = 1;
83+
}
84+
85+
// Return definitions
86+
message InternalFanAssignmentDefinition {
87+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
88+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
89+
string label = 3;
90+
repeated string locations = 4;
91+
bool suppressed = 5;
92+
ExternalFanAssignmentProperties assignment_properties = 6;
93+
ansys.api.discovery.v0.engineeringdata.fandata.FanDataProperties fan_properties = 7;
94+
}
95+
96+
message ExternalFanAssignmentDefinition {
97+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
98+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
99+
string label = 3;
100+
repeated string locations = 4;
101+
bool suppressed = 5;
102+
InternalFanAssignmentProperties assignment_properties = 6;
103+
ansys.api.discovery.v0.engineeringdata.fandata.FanDataProperties fan_properties = 7;
104+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
package ansys.api.discovery.v0.conditions.operatingpressure;
4+
5+
import "ansys/api/discovery/v0/discoverymodels.proto";
6+
7+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
8+
9+
service OperatingPressure
10+
{
11+
rpc ChangePressureMagnitude(ChangeQuantityRequest) returns(ChangeResponse);
12+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
package ansys.api.discovery.v0.connections.fluidinterface;
4+
5+
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/discovery/v0/conditions/condition.proto";
7+
import "ansys/api/discovery/v0/connections/contact.proto";
8+
import "ansys/api/discovery/v0/discoverymodels.proto";
9+
10+
option csharp_namespace = "Ansys.Api.Discovery.V0.Connections";
11+
12+
service FluidInterface
13+
{
14+
rpc ChangeFSInterfaceType(ChangeFSInterfaceTypeRequest) returns (ChangeResponse);
15+
rpc ChangeFSInterfaceFaceGroupingMethod(ChangeFSInterfaceFaceGroupingMethodRequest) returns (ChangeResponse);
16+
rpc ChangeFSInterfaceSpecifyConductanceMethod(ChangeFSInterfaceConductanceMethod) returns (ChangeResponse);
17+
18+
rpc ChangeFSInterfaceThermalMaterialAssignment(ChangeAssignmentRequest) returns (ChangeResponse);
19+
rpc ChangeFSInterfaceThermalConductance(ChangeQuantityRequest) returns (ChangeResponse);
20+
rpc ChangeFSInterfaceThermalConductivity(ChangeQuantityRequest) returns (ChangeResponse);
21+
rpc ChangeFSInterfaceThermalThickness(ChangeQuantityRequest) returns (ChangeResponse);
22+
23+
rpc ChangeFSInterfaceDetectionDistanceHigh(ChangeQuantityRequest) returns (ChangeResponse);
24+
rpc ChangeFSInterfaceFaceOverlapAllowance(ChangeQuantityRequest) returns (ChangeResponse);
25+
26+
rpc ChangeFSInterfaceInternalRadiationInputEnabled(ChangeBooleanRequest) returns (ChangeResponse);
27+
rpc ChangeFSInterfaceInternalEmissivity(ChangeQuantityRequest) returns (ChangeResponse);
28+
}
29+
30+
message ChangeFSInterfaceTypeRequest{
31+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
32+
FluidSolidInterfaceType interface_type = 2;
33+
}
34+
35+
// Contact group condition definitions
36+
enum FluidSolidInterfaceType {
37+
CONDUCTING = 0;
38+
EXCLUDE = 1;
39+
}
40+
41+
message ChangeFSInterfaceFaceGroupingMethodRequest{
42+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
43+
FluidInterfaceFaceGroupingMethod face_grouping_method = 2;
44+
}
45+
46+
enum FluidInterfaceFaceGroupingMethod {
47+
GROUPBYBODY = 0;
48+
GROUPTANGENTFACES = 1;
49+
NOGROUPING = 2;
50+
}
51+
52+
message ChangeFSInterfaceConductanceMethod{
53+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
54+
FluidInterfaceFaceThermalConductanceMethod thermal_conductivity_method = 2;
55+
}
56+
57+
enum FluidInterfaceFaceThermalConductanceMethod {
58+
INSULATED = 0;
59+
THERMALCONDUCTANCE = 1;
60+
THICKNESSANDCONDUCTIVITY = 2;
61+
THICKNESSANDMATERIAL = 3;
62+
}

ansys/api/discovery/v0/discoverymodels.proto

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ message ChangeDoubleRequest{
122122
double value = 2;
123123
}
124124

125+
message ChangeAssignmentRequest{
126+
ansys.api.dbu.v0.PhysicsEntityIdentifier assigner_object_id = 1;
127+
ansys.api.dbu.v0.PhysicsEntityIdentifier referenced_object_id = 2;
128+
}
129+
125130
message ChangeEmptyRequest{
126131
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
127132
}
@@ -211,6 +216,36 @@ message VectorOfOptionalQuantities{
211216
OptionalQuantity z = 3;
212217
}
213218

219+
message TableHeader{
220+
string table_name = 1;
221+
int32 number_of_data_rows = 2;
222+
int32 number_of_data_columns = 3;
223+
}
224+
225+
message QuantityTable{
226+
TableHeader header = 1;
227+
repeated QuantityTableRow row_data = 2;
228+
}
229+
230+
message QuantityTableRow{
231+
repeated Quantity row_cells = 1;
232+
}
233+
234+
message QuantityVectorTable{
235+
TableHeader header = 1;
236+
repeated QuantityVector row_data = 2;
237+
}
238+
239+
message QuantityPairTable{
240+
TableHeader header = 1;
241+
repeated QuantityPair row_data = 2;
242+
}
243+
244+
message QuantityPair{
245+
Quantity independant_data = 1;
246+
Quantity dependant_data = 2;
247+
}
248+
214249

215250
// Represents the quantity type for a physics parameter.
216251
enum QuantityType {
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2+
syntax = "proto3";
3+
package ansys.api.discovery.v0.engineeringdata.fandata;
4+
5+
import "ansys/api/dbu/v0/dbumodels.proto";
6+
import "ansys/api/discovery/v0/discoverymodels.proto";
7+
8+
option csharp_namespace = "Ansys.Api.Discovery.V0.EngineeringData";
9+
10+
service FanData
11+
{
12+
//Fan Data condition methods
13+
rpc CreateFan(FanCreationRequest) returns (FanCreationResponse);
14+
15+
// change fan name
16+
17+
// change specification
18+
19+
// set pressure rise
20+
21+
// add row to VFR table
22+
23+
// remove row from VFR table
24+
25+
// add row to Vel table
26+
27+
// remove row from Vel table
28+
}
29+
30+
31+
message FanCreationRequest{
32+
FanDataProperties fan_data = 2;
33+
}
34+
35+
message FanCreationResponse{
36+
CreationResponse data_response = 1;
37+
FanDataDefinition engineering_data = 2;
38+
}
39+
40+
41+
//FanData condition definitions
42+
message FanDataProperties {
43+
ansys.api.dbu.v0.PhysicsEntityIdentifier data_id = 1;
44+
string fan_name = 2;
45+
FanSpecification fan_specification = 3;
46+
Quantity constant_pressure_rise = 4;
47+
QuantityPairTable volume_flow_rate_vs_pressure_table = 5;
48+
QuantityPairTable velocity_vs_pressure_table = 6;
49+
FanManufacturerData manufacturer_data = 7;
50+
}
51+
52+
enum FanSpecification
53+
{
54+
VOLUMEFLOWRATE = 0;
55+
CONSTANTPRESSURERISE = 1;
56+
VELOCITY = 2;
57+
}
58+
59+
message FanManufacturerData{
60+
string manufacturer = 1;
61+
string model_number = 2;
62+
Quantity outer_radius = 3;
63+
Quantity inner_radius = 4;
64+
string notes = 5;
65+
string disclaimer = 6;
66+
bool is_user_defined = 7;
67+
}
68+
69+
70+
message FanDataDefinition {
71+
FanDataProperties fan_data = 1;
72+
}

0 commit comments

Comments
 (0)