SolutionVariable#
Generated reference
- Source file:
ansys/api/fluent/v1/solution_variable.proto- Proto package:
ansys.api.fluent.v1.solution_variable- Contains:
1 service, 15 messages, 1 enum
Services
Service: SolutionVariable
SolutionVariable service provides methods for retrieving and setting solution variable data and metadata.
GetZonesInfo- Request:
- Response:
Retrieves domain and zone metadata.
GetSolutionVariableInfo- Request:
- Response:
Retrieves solution variable metadata for a domain and zone.
GetSolutionVariableData- Request:
- Response:
stream of GetSolutionVariableDataResponse
Retrieves solution variable data, streamed in chunks.
SetSolutionVariableData- Request:
- Response:
Sets solution variable data by streaming data chunks to the server.
Messages
GetZonesInfoRequest
Request to retrieve domain and zone metadata.
GetZonesInfoResponse
Response containing domain and zone metadata.
domains_info(1)repeated DomainInfoDomains info.
zones_info(2)repeated ZoneInfoZones info.
DomainInfo
Domain metadata.
name(1)stringDomain name.
domain_id(2)uint32Domain ID.
ZoneInfo
Zone metadata.
name(1)stringZone name.
zone_id(2)uint64Zone ID.
zone_type(3)stringZone type, e.g., velocity-inlet.
thread_type(4)ThreadTypeZone thread type.
partitions_info(5)repeated PartitionInfoPartitions info.
PartitionInfo
Partition range metadata.
count(1)uint64Count in partition
start_index(2)uint64Global start index
end_index(3)uint64Global end index
GetSolutionVariableInfoRequest
Request to retrieve solution metadata for a given domain and zone.
domain_id(1)uint32Domain ID.
zone_id(2)uint64Zone ID.
GetSolutionVariableInfoResponse
Response containing solution metadata.
svars_info(1)repeated SolutionVariableInfoSolution variable info.
SolutionVariableInfo
Solution variable information.
name(1)stringSolution variable name.
dimension(2)uint32Dimension e.g. for centroid it will be 3.
field_type(3)FieldTypeData type defined in field_data.proto.
GetSolutionVariableDataRequest
Request to retrieve solution variable data, possibly streamed in chunks.
chunk_size(1)uint32Chunk size.
provide_bytes_stream(2)boolIf true, streams bytes; if false, streams typed arrays.
name(3)stringSolution variable Name.
domain_id(4)uint32Domain ID.
zones(5)repeateduint64List of zone IDs.
GetSolutionVariableDataResponse
Streamed response containing payload or payload info.
Info
Payload metadata.
field_type(1)FieldTypeField type.
field_size(2)uint64Field size. For bytes it will be number of bytes otherwise array size.
zone(3)uint64Zone ID.
Payload
Payload chunk union.
byte_payload(1)oneof chunkbytesBytes payload.
double_payload(2)oneof chunk DoublePayloadDouble payload.
float_payload(3)oneof chunk FloatPayloadFloat payload.
long_payload(4)oneof chunk LongPayloadLong payload.
int_payload(5)oneof chunk IntPayloadInt payload.
SetSolutionVariableDataRequest
Request to set solution variable data via a streaming API.
header(1)oneof array SolutionVariableHeaderSolution variable name and domain ID.
payload(2)oneof array PayloadPayload.
payload_info(3)oneof array InfoPayload info.
SolutionVariableHeader
Solution variable header containing the name and domain ID.
name(1)stringSolution variable Name.
domain_id(2)uint32Domain ID.
SetSolutionVariableDataResponse
Response to the SetSolutionVariableData request.
Enumerations
ThreadType (enum)
Thread type of the zone.
THREAD_TYPE_UNSPECIFIED(0)Default value. Thread type is unspecified.
THREAD_TYPE_CELL(1)Zone uses cell threads.
THREAD_TYPE_FACE(2)Zone uses face threads.