-
Notifications
You must be signed in to change notification settings - Fork 58
Description
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
pyfluent/src/ansys/fluent/core/session.py
Lines 161 to 163 in daf072d
| 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
pyfluent/src/ansys/fluent/core/services/scheme_eval.py
Lines 320 to 326 in daf072d
| 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
Type
Projects
Status