Skip to content

flobject.get_root() is returning ~2 MB of data through gRPC #1800

@raph-luc

Description

@raph-luc

Call: GRPC_TRACE: rpc = /ansys.api.fluent.v0.settings.Settings/GetStaticInfo, request = {'root': 'fluent'}

MWE:
Execute this with logging enabled

import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples

import_filename = examples.download_file("ablation.msh.h5", "pyfluent/examples/Ablation-tutorial")

session = pyfluent.launch_fluent()

session.tui.file.read_case(import_filename)

session.field_data.get_scalar_field_data.field_name.allowed_values()

session.solution.initialization.hybrid_initialize()

then check logs

Edit: this does not only happen when there is an API mismatch, this happens even with a built package/wheel installation with full codegen files

Tested using latest Fluent v241 container (2023-07-17T07:44:48Z)

Edit 2: Seems to be triggered by

self.field_data = FieldData(
self._field_data_service, self.field_info, _IsDataValid(self.scheme_eval)
)

which calls ansys.fluent.core.services.scheme_eval.SchemeEval.scheme_eval

S = Symbol # noqa N806
val = (
S("eval"),
(S("with-input-from-string"), input, S("read")),
S("user-initial-environment"),
)
return self.eval(val)

due to the logs of the grpc request

GRPC_TRACE: rpc = /grpcRemoting.SchemeEval/SchemeEval, request = {'input': {'list': {'item': [{'sym': 'eval'}, {'list': {'item': [{'sym': 'with-input-from-string'}, {'str': '(data-valid?)'}, {'sym': 'read'}]}}, {'sym': 'user-initial-environment'}]}}}

which receives the response

GRPC_TRACE: response = {'output': {'b': False}}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

2025 Q3 Jul - Sep

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions