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
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ repos:
src/ansys, codegen, doc, examples, tests
]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.1
hooks:
- id: clang-format
files: ^.+.proto$
args: [ -i, -style=file ]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
Expand Down
6 changes: 2 additions & 4 deletions protos/ansys/api/fluent/v0/datamodel_se.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,14 @@ message SetStateResponse {
repeated string deletedpaths = 2;
}

message UpdateDictRequest
{
message UpdateDictRequest {
string rules = 1;
string path = 2;
utils.Variant dicttomerge = 3;
bool wait = 4;
}

message UpdateDictResponse
{
message UpdateDictResponse {
utils.Variant state = 1;
repeated string deletedpaths = 2;
}
Expand Down
10 changes: 5 additions & 5 deletions protos/ansys/api/fluent/v0/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ message BeginStreamingRequest {
* Event at end of the time step.
*/
message TimestepEndedEvent {
sint64 index = 1; // Time step index.
double size = 2; // Time step size.
sint64 index = 1; // Time step index.
double size = 2; // Time step size.
}

/**
* Event at end of the iteration.
*/
message IterationEndedEvent {
sint64 index = 1; // Iteration index
sint64 index = 1; // Iteration index
}

/**
Expand All @@ -44,14 +44,14 @@ message CalculationsEndedEvent {
* Event at case read.
*/
message CaseReadEvent {
string casefilepath = 1; // Case file path.
string casefilepath = 1; // Case file path.
}

/**
* Event at data read.
*/
message DataReadEvent {
string datafilepath = 1; // Data file path.
string datafilepath = 1; // Data file path.
}

/**
Expand Down
20 changes: 10 additions & 10 deletions protos/ansys/api/fluent/v0/field_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,25 @@ enum FieldType {

/**
* Payload tag, provides extra information about payload.
* For example it tells if payload data corresponds to cell or node location
* For example it tells if payload data corresponds to cell or node location
* or it contains boundary values etc.
*/
enum PayloadTag {
OVERSET_MESH = 0; // This tag is set if oversetMesh flag in SurfaceRequest is set to True.
ELEMENT_LOCATION = 1; // This tag is set if dataLocation in ScalarFieldRequest is Elements.
NODE_LOCATION = 2; // This tag is set if dataLocation in ScalarFieldRequest is Nodes.
BOUNDARY_VALUES = 3; // This tag is set if provideBoundaryValues in ScalarFieldRequest is set to True.
OVERSET_MESH = 0; // This tag is set if oversetMesh flag in SurfaceRequest is set to True.
ELEMENT_LOCATION = 1; // This tag is set if dataLocation in ScalarFieldRequest is Elements.
NODE_LOCATION = 2; // This tag is set if dataLocation in ScalarFieldRequest is Nodes.
BOUNDARY_VALUES = 3; // This tag is set if provideBoundaryValues in ScalarFieldRequest is set to True.
}

/**
* Information about payload
*/
message PayloadInfo {
uint64 surfaceId = 1; // Surface id corresponding to field data.
string fieldName = 2; // Field name e.g. vertices, faces, temperature, vector etc.
FieldType fieldType = 3; // Field type.
uint64 fieldSize = 4; // Field size. For bytes it will be number of bytes otherwise array size.
repeated PayloadTag payloadTag = 5; //PayloadTag to provide extra information about payload.
uint64 surfaceId = 1; // Surface id corresponding to field data.
string fieldName = 2; // Field name e.g. vertices, faces, temperature, vector etc.
FieldType fieldType = 3; // Field type.
uint64 fieldSize = 4; // Field size. For bytes it will be number of bytes otherwise array size.
repeated PayloadTag payloadTag = 5; // PayloadTag to provide extra information about payload.
}

/**
Expand Down