Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
243 changes: 0 additions & 243 deletions ansys/api/discovery/v0/conditions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,71 +14,6 @@ service Conditions
rpc ChangeConditionSuppressionState(ChangeConditionSuppressionStateRequest) returns (ConditionChangedResponse);

rpc ChangeConditionName(ChangeConditionNameRequest) returns (ConditionChangedResponse);


//Heat condition methods
rpc CreateHeat(HeatCreationRequest) returns (HeatCreationResponse);

rpc ChangeHeatLocation(ChangeLocationExtendedRequest) returns(ConditionChangedResponse);

rpc ChangeTotalHeat(ChangeQuantityRequest) returns(ConditionChangedResponse);

rpc ChangeHeatPerUnitVolume(ChangeQuantityRequest) returns(ConditionChangedResponse);

rpc ChangeHeatPerUnitArea(ChangeQuantityRequest) returns(ConditionChangedResponse);

rpc ChangeHeatSpecification(ChangeHeatSpecificationRequest) returns(ConditionChangedResponse);

//Temperature condition methods
rpc CreateTemperature(TemperatureCreationRequest) returns (TemperatureCreationResponse);

rpc ChangeTemperatureLocation(ChangeLocationExtendedRequest) returns(ConditionChangedResponse);

rpc ChangeTemperatureMagnitude(ChangeQuantityRequest) returns(ConditionChangedResponse);

//Insulated condition methods
rpc CreateInsulated(InsulatedCreationRequest) returns (InsulatedCreationResponse);

rpc ChangeInsulatedLocation(ChangeLocationRequest) returns(ConditionChangedResponse);

//Fluid flow methods
rpc CreateFlowVelocityInlet(FlowVelocityInletCreationRequest) returns (FlowVelocityInletCreationResponse);

rpc CreateFlowVelocityOutlet(FlowVelocityOutletCreationRequest) returns (FlowVelocityOutletCreationResponse);

rpc CreateFlowPressureInlet(FlowPressureInletCreationRequest) returns (FlowPressureInletCreationResponse);

rpc CreateFlowPressureOutlet(FlowPressureOutletCreationRequest) returns (FlowPressureOutletCreationResponse);

rpc CreateFlowMassFlowInlet(FlowMassFlowInletCreationRequest) returns (FlowMassFlowInletCreationResponse);

rpc CreateFlowMassFlowOutlet(FlowMassFlowOutletCreationRequest) returns (FlowMassFlowOutletCreationResponse);

rpc ChangeFlowLocation(ChangeLocationRequest) returns (ConditionChangedResponse);

rpc ChangeFlowVelocityInletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowVelocityOutletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowPressureInletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowPressureOutletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowMassFlowInletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowMassFlowOutletMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowTemperatureInputEnabled(ChangeBooleanRequest) returns (ConditionChangedResponse);

rpc ChangeFlowTemperatureMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowSwirlingInputEnabled(ChangeBooleanRequest) returns (ConditionChangedResponse);

rpc ChangeFlowSwirlingMagnitude(ChangeQuantityRequest) returns (ConditionChangedResponse);

rpc ChangeFlowSpecification(ChangeFlowSpecificationRequest) returns (ConditionChangedResponse);

rpc ChangeFlowDirection(ChangeFlowDirectionRequest) returns (ConditionChangedResponse);
}

//General Requests
Expand All @@ -94,182 +29,4 @@ message ChangeConditionSuppressionStateRequest{
message ChangeConditionNameRequest{
string object_id = 1;
string new_name = 2;
}

message ChangeLocationRequest{
string object_id = 1;
repeated string locations = 2;
}

//enables the type of location to be changed as well as the scope. Only supported for specific condition types
message ChangeLocationExtendedRequest
{
ChangeLocationRequest change_location_request = 1;
LocationSpecification location_specification = 2;
}

message ChangeQuantityRequest{
string object_id = 1;
QuantityType quantity_type = 2;
double quantity_value = 3;
int32 unit = 4;
}

message ChangeBooleanRequest{
string object_id = 1;
bool boolean_value = 2;
}

// General Responses

message ConditionChangedResponse{
bool success = 1;
string message = 2;
}

message ConditionCreationResponse{
bool success = 1;
string message = 2;
}



// Solid thermal requests and responses

// Heat
message ChangeHeatSpecificationRequest{
string object_id = 1;
HeatSpecification heat_specification = 2;
}

message HeatCreationRequest{
string object_id = 1;
string simulation_id = 2;
LocationSpecification location_specification = 3;
repeated string locations = 4;
HeatSpecification heat_specification = 5;
Quantity quantity = 6;
}

message HeatCreationResponse{
ConditionCreationResponse condition_response = 1;
HeatDefinition condition_data = 2;
}

// Temperature
message TemperatureCreationRequest{
string object_id = 1;
string simulation_id = 2;
LocationSpecification location_specification = 3;
repeated string locations = 4;
QuantityType quantity_type = 5;
double quantity_value = 6;
int32 unit = 7;
}

message TemperatureCreationResponse{
ConditionCreationResponse condition_response = 1;
TemperatureDefinition condition_data = 2;
}

// Insulated
message InsulatedCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
}

message InsulatedCreationResponse{
ConditionCreationResponse condition_response = 1;
InsulatedDefinition condition_data = 2;
}

// Flow condition creation

// Velocity In
message FlowVelocityInletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
VelocityInletProperties velocity_inlet = 4;
}

message FlowVelocityInletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowVelocityInletDefinition condition_data = 2;
}

// Velocity Out
message FlowVelocityOutletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
VelocityOutletProperties velocity_outlet = 4;
}

message FlowVelocityOutletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowVelocityOutletDefinition condition_data = 2;
}

// Pressure In
message FlowPressureInletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
PressureInletProperties pressure_inlet = 4;
}

message FlowPressureInletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowPressureInletDefinition condition_data = 2;
}

// Pressure Out
message FlowPressureOutletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
PressureOutletProperties pressure_outlet = 4;
}
message FlowPressureOutletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowPressureOutletDefinition condition_data = 2;
}

// Mass Flow In
message FlowMassFlowInletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
MassFlowInletProperties mass_flow_inlet = 4;
}

message FlowMassFlowInletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowMassFlowInletDefinition condition_data = 2;
}

// Mass Flow Out
message FlowMassFlowOutletCreationRequest{
string object_id = 1;
string simulation_id = 2;
repeated string locations = 3;
MassFlowOutletProperties mass_flow_outlet = 4;
}

message FlowMassFlowOutletCreationResponse{
ConditionCreationResponse condition_response = 1;
FlowMassFlowOutletDefinition condition_data = 2;
}

message ChangeFlowSpecificationRequest{
string object_id = 1;
FlowSpecificationDefinition specification = 2;
}

message ChangeFlowDirectionRequest{
string object_id = 1;
FlowDirectionDefinition direction = 2;
bool reset_to_default_subtype = 3;
}
Loading