-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Before submitting the issue
- I have checked for Compatibility issues
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
A specific .rth file fails to load using ansys-pydpf-core, while, other .rth files load correctly using the same workflow. The problematic .rth file opens successfully in ANSYS Mechanical APDL. This suggests the file itself is valid, and the issue may be related to how PyDPF handles certain .rth file variants.
File attached here
Steps To Reproduce
import ansys.dpf.core as dpf
import os
os.environ["ANSYS_DPF_ACCEPT_LA"] = 'Y'
os.environ["ANSYSLMD_LICENSE_FILE"] =1055@************
path = r"scenario_1.rth"
model = dpf.Model(path,)
print(model)
ERROR MSG-
`---------------------------------------------------------------------------
DPFServerException Traceback (most recent call last)
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\errors.py:123, in protect_source_op_not_found..wrapper(*args, **kwargs)
122 try:
--> 123 out = func(*args, **kwargs)
124 except DPFServerException as error:
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:538, in Metadata.result_info(self)
532 """Result Info instance.
533
534 Returns
535 -------
536 result_info : :class:ansys.dpf.core.result_info.ResultInfo
537 """
--> 538 self._cache_result_info()
540 return self._result_info
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:308, in Metadata._cache_result_info(self)
307 if not self._result_info:
--> 308 self._result_info = self._load_result_info()
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:459, in Metadata._load_result_info(self)
458 else:
--> 459 raise e
460 except:
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:453, in Metadata._load_result_info(self)
452 try:
--> 453 result_info = op.get_output(0, types.result_info)
454 except Exception as e:
455 # give the user a more helpful error
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\dpf_operator.py:593, in Operator.get_output(self, pin, output_type)
592 if len(type_tuple) >= 3:
--> 593 internal_obj = type_tuple[1](self, pin)
594 if internal_obj is None:
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:617, in OperatorCAPI.operator_getoutput_result_info(op, iOutput)
616 if errorSize.value != 0:
--> 617 raise errors.DPFServerException(sError.value)
618 return res
DPFServerException: Unable to open the following file: C:\Users\sandeep\Documents\PyDPF\test-data\rth\scenario_1.rth, failed to read inputs of provider operator
ResultInfoProvider:4<-mapdl::rth::ResultInfoProvider:5<-TimeFreqSupportProvider:6<-mapdl::rth::TimeFreqSupportProvider:7<-mapdl::rth::TimeFreqSupportProvider
During handling of the above exception, another exception occurred:
DPFServerException Traceback (most recent call last)
Cell In[5], line 1
----> 1 print(model)
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:229, in Model.str(self)
227 txt = "DPF Model\n"
228 txt += "-" * 30 + "\n"
--> 229 txt += str(self.results)
230 txt += "-" * 30 + "\n"
231 txt += str(self.metadata.meshed_region)
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\model.py:182, in Model.results(self)
136 """Available results of the model.
137
138 Organizes the results from DPF into accessible methods. All the available
(...) 177
178 """
179 if not self._results:
180 args = [
181 self.metadata._build_connector(),
--> 182 self.metadata.result_info,
183 self.mesh_by_default,
184 self._server,
185 ]
186 if misc.DYNAMIC_RESULTS:
187 try:
File ~\Documents\PyDPF\py312\Lib\site-packages\ansys\dpf\core\errors.py:128, in protect_source_op_not_found..wrapper(*args, **kwargs)
126 if "source operator not found" in details:
127 return None
--> 128 raise DPFServerException(details)
130 return out
DPFServerException: Unable to open the following file: C:\Users\sandeep\Documents\PyDPF\test-data\rth\scenario_1.rth, failed to read inputs of provider operator`
Which Operating System causes the issue?
Windows
Which DPF/Ansys version are you using?
DPF Server 2025.1.pre0
Which Python version causes the issue?
3.12
Installed packages
annotated-types==0.7.0
ansys-dpf-core==0.14.2
anyio==4.12.0
argon2-cffi==25.1.0
argon2-cffi-bindings==25.1.0
arrow==1.4.0
asttokens==3.0.0
async-lru==2.0.5
attrs==25.4.0
babel==2.17.0
beautifulsoup4==4.14.3
bleach==6.3.0
blosc2==3.11.0
certifi==2025.10.5
cffi==2.0.0
charset-normalizer==3.4.4
colorama==0.4.6
comm==0.2.3
contourpy==1.3.3
cycler==0.12.1
debugpy==1.8.17
decorator==5.2.1
defusedxml==0.7.1
executing==2.2.1
fastjsonschema==2.21.2
fonttools==4.60.1
fqdn==1.5.1
grpcio==1.76.0
h11==0.16.0
h5py==3.15.1
httpcore==1.0.9
httpx==0.28.1
idna==3.11
importlib_metadata==8.7.0
ipykernel==7.1.0
ipython==9.6.0
ipython_pygments_lexers==1.1.1
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.6
json5==0.12.1
jsonpointer==3.0.0
jsonschema==4.25.1
jsonschema-specifications==2025.9.1
jupyter-events==0.12.0
jupyter-lsp==2.3.0
jupyter_client==8.6.3
jupyter_core==5.9.1
jupyter_server==2.17.0
jupyter_server_terminals==0.5.3
jupyterlab==4.5.0
jupyterlab_pygments==0.3.0
jupyterlab_server==2.28.0
kiwisolver==1.4.9
lark==1.3.1
llvmlite==0.45.1
MarkupSafe==3.0.3
matplotlib==3.10.7
matplotlib-inline==0.2.1
mistune==3.1.4
msgpack==1.1.2
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
ndindex==1.10.0
nest-asyncio==1.6.0
notebook==7.5.0
notebook_shim==0.2.4
numba==0.62.1
numexpr==2.14.1
numpy==1.26.4
packaging==25.0
pandocfilters==1.5.1
parso==0.8.5
pillow==12.0.0
platformdirs==4.5.0
pooch==1.8.2
prometheus_client==0.23.1
prompt_toolkit==3.0.52
protobuf==6.33.0
psutil==7.1.2
pure_eval==0.2.3
py-cpuinfo==9.0.0
pycparser==2.23
pydantic==2.12.5
pydantic-settings==2.12.0
pydantic_core==2.41.5
Pygments==2.19.2
pyparsing==3.2.5
python-dateutil==2.9.0.post0
python-dotenv==1.2.1
python-json-logger==4.0.0
pyvista==0.46.3
pywinpty==3.0.2
PyYAML==6.0.3
pyzmq==27.1.0
referencing==0.37.0
requests==2.32.5
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rfc3987-syntax==1.1.0
rpds-py==0.30.0
scipy==1.15.1
scooby==0.10.2
Send2Trash==1.8.3
setuptools==80.9.0
six==1.17.0
soupsieve==2.8
stack-data==0.6.3
tables==3.10.2
terminado==0.18.1
tinycss2==1.4.0
tornado==6.5.2
tqdm==4.67.1
traitlets==5.14.3
typing-inspection==0.4.2
typing_extensions==4.15.0
tzdata==2025.2
uri-template==1.3.0
urllib3==2.5.0
vtk==9.5.2
wcwidth==0.2.14
webcolors==25.10.0
webencodings==0.5.1
websocket-client==1.9.0
wheel==0.45.1
zipp==3.23.0