Open kanthadya opened 1 year ago
Hi @kanthadya, this is strange, as this example of result extraction from a binout has never failed as far as I remember, and it being in the dev doc means that it still runs. Could you please share the error you get when running the script above on your binout file?
dsb = dpf.DataSources()
dsb.set_result_file_path(r'D:\Battery\TestRun\cell.binout0000', 'binout')
model_b = dpf.Model(dsb)
print(model_b)
DPF Model
------------------------------
Unknown analysis
Unit system: Undefined
Physics Type: Unknown
Available results:
------------------------------
DPF Meshed Region:
1 nodes
0 elements
Unit:
With
------------------------------
DPF Time/Freq Support:
Number of sets: 0
Cumulative Frequency () LoadStep Substep
Process finished with exit code 0
Note: maybe linked to https://github.com/ansys/pydpf-core/issues/976
Hi, I have a similar issue when I access the DPF model and print the available results:
model = dpf.Model(path/to/binout_file.binout)
(I've noticed that for the file to be read I need to add a .binout extension to it)
I get only a partial list of all the results in the file. It's missing the nodout_ results which I'm looking for in my analysis, and I know the results are inside the file because I can access them through LS-PrePost.
Available results:
- global_time_step: TimeFreq_steps Global Time Step
- global_kinetic_energy: TimeFreq_steps Global Kinetic Energy
- global_internal_energy: TimeFreq_steps Global Internal Energy
- global_spring_damper_energy: TimeFreq_steps Global Spring Damper Energy
- global_hourglass_energy: TimeFreq_steps Global Hourglass Energy
- global_system_damping_energy: TimeFreq_steps Global System Damping Energy
- global_sliding_interface_energy: TimeFreq_steps Global Sliding Interface Energy
- global_external_work: TimeFreq_steps Global External Work
- global_eroded_kinetic_energy: TimeFreq_steps Global Eroded Kinetic Energy
- global_eroded_internal_energy: TimeFreq_steps Global Eroded Internal Energy
- global_eroded_hourglass_energy: TimeFreq_steps Global Eroded Hourglass Energy
- global_total_energy: TimeFreq_steps Global Total Energy
- global_energy_ratio: TimeFreq_steps Global Energy Ratio
- global_energy_ratio_wo_eroded: TimeFreq_steps Global Energy Ratio Wo Eroded
- global_velocity: TimeFreq_steps Global Velocity
- global_added_mass: TimeFreq_steps Global Added Mass
- global_added_mass_percentage: TimeFreq_steps Global Added Mass Percentage
- part_internal_energy: TimeFreq_steps Part Internal Energy
- part_kinetic_energy: TimeFreq_steps Part Kinetic Energy
- part_eroded_internal_energy: TimeFreq_steps Part Eroded Internal Energy
- part_eroded_kinetic_energy: TimeFreq_steps Part Eroded Kinetic Energy
- part_added_mass: TimeFreq_steps Part Added Mass
- part_hourglass_energy: TimeFreq_steps Part Hourglass Energy
- part_momentum: TimeFreq_steps Part Momentum
- part_rigid_body_velocity: TimeFreq_steps Part Rigid Body Velocity
- interface_contact_mass: TimeFreq_steps Interface Contact Mass
- interface_contact_area: TimeFreq_steps Interface Contact Area
- interface_contact_force: TimeFreq_steps Interface Contact Force
- interface_contact_moment: TimeFreq_steps Interface Contact Moment
This is my setup:
# Name Version Build Channel
ansys-dpf-core 0.10.0 pypi_0 pypi
ansys-dpf-gate 0.4.1 pypi_0 pypi
ansys-dpf-gatebin 0.4.1 pypi_0 pypi
ansys-grpc-dpf 0.8.1 pypi_0 pypi
ANSYS 2023 R2
Python 3.11.5
Before submitting the issue
Description of the bug
dpf doesnt load any results from binout files
Steps To Reproduce
dsb = dpf.DataSources() dsb.set_result_file_path(r'D:\Battery\TestRun\cell.binout0000', 'binout') model_b = dpf.Model(dsb) print(model_b)
Which Operating System causes the issue?
Windows
Which DPF/Ansys version are you using?
Ansys 2023 R2
Which Python version causes the issue?
3.10
Installed packages
accessible-pygments==0.0.4 alabaster==0.7.13 altair==5.0.1 ansys-api-dyna==0.3.1 ansys-api-geometry==0.2.12 ansys-api-meshing-prime==0.1.1 ansys-dpf-core==0.8.1 ansys-dpf-gate==0.3.1 ansys-dpf-gatebin==0.3.1 -e git+https://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@github.com/ansys/pydyna.git@862d8fcff517afa16e9212431ba54a3aa18b4b2e#egg=ansys_dyna_core -e git+https://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@github.com/ansys/pygeometry@604f46099708e690255dc93589185f3a0b067a28#egg=ansys_geometry_core ansys-grpc-dpf==0.7.1 ansys-meshing-prime==0.4.0.dev6 ansys-sphinx-theme==0.9.9 anyascii==0.3.2 anyio==3.7.0 appdirs==1.4.4 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 astroid==2.15.5 asttokens==2.2.1 async-lru==2.0.2 attrs==23.1.0 Babel==2.12.1 backcall==0.2.0 beartype==0.15.0 beautifulsoup4==4.12.2 bleach==6.0.0 blinker==1.6.2 cachetools==5.3.1 certifi==2023.5.7 cffi==1.15.1 charset-normalizer==3.1.0 click==8.1.6 colorama==0.4.6 comm==0.1.3 commonmark==0.9.1 contourpy==1.1.0 cycler==0.11.0 debugpy==1.6.7 decorator==5.1.1 defusedxml==0.7.1 docutils==0.20.1 exceptiongroup==1.1.1 executing==1.2.0 fastjsonschema==2.17.1 fonttools==4.40.0 fqdn==1.5.1 gitdb==4.0.10 GitPython==3.1.32 google-api-core==2.11.1 google-api-python-client==2.90.0 google-auth==2.21.0 google-auth-httplib2==0.1.0 googleapis-common-protos==1.59.1 grpcio==1.56.0 grpcio-health-checking==1.48.2 httplib2==0.22.0 idna==3.4 imageio==2.31.1 imageio-ffmpeg==0.4.8 imagesize==1.4.1 importlib-metadata==6.7.0 iniconfig==2.0.0 ipykernel==6.23.3 ipython==8.14.0 ipywidgets==8.0.6 isoduration==20.11.0 jedi==0.18.2 Jinja2==3.1.2 joblib==1.2.0 json5==0.9.14 jsonpointer==2.4 jsonschema==4.17.3 jupyter-events==0.6.3 jupyter-lsp==2.2.0 jupyter_client==8.3.0 jupyter_core==5.3.1 jupyter_server==2.7.0 jupyter_server_terminals==0.4.4 jupyterlab==4.0.2 jupyterlab-pygments==0.2.2 jupyterlab-widgets==3.0.7 jupyterlab_server==2.23.0 kiwisolver==1.4.4 lazy-object-proxy==1.9.0 livereload==2.6.3 markdown-it-py==3.0.0 MarkupSafe==2.1.3 matplotlib==3.7.1 matplotlib-inline==0.1.6 mdurl==0.1.2 mistune==3.0.1 nbclient==0.8.0 nbconvert==7.6.0 nbformat==5.9.0 nbsphinx==0.9.2 nest-asyncio==1.5.6 notebook_shim==0.2.3 numpy==1.23.5 numpydoc==1.5.0 overrides==7.3.1 packaging==23.1 pandas==2.0.3 pandocfilters==1.5.0 parso==0.8.3 pickleshare==0.7.5 Pillow==9.5.0 Pint==0.22 platformdirs==3.8.0 pluggy==1.2.0 pooch==1.7.0 prometheus-client==0.17.0 prompt-toolkit==3.0.38 protobuf==3.20.3 psutil==5.9.5 pure-eval==0.2.2 pyarrow==12.0.1 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycparser==2.21 pydata-sphinx-theme==0.13.3 pydeck==0.8.0 Pygments==2.15.1 Pympler==1.0.1 pypandoc==1.11 pyparsing==3.1.1 pyrsistent==0.19.3 pytest==7.4.0 pytest-sphinx==0.5.0 python-dateutil==2.8.2 python-json-logger==2.0.7 pytz==2023.3 pytz-deprecation-shim==0.1.0.post0 pyvista==0.39.1 pywin32==306 pywinpty==2.0.10 PyYAML==6.0 pyzmq==25.1.0 recommonmark==0.7.1 requests==2.31.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.4.2 rsa==4.9 scikit-learn==1.2.2 scipy==1.11.0 scooby==0.7.2 Send2Trash==1.8.2 six==1.16.0 smmap==5.0.0 sniffio==1.3.0 snowballstemmer==2.2.0 soupsieve==2.4.1 Sphinx==7.0.1 sphinx-autoapi==2.1.1 sphinx-autobuild==2021.3.14 sphinx-autodoc-typehints==1.23.3 sphinx-copybutton==0.5.2 sphinx-gallery==0.13.0 sphinx-jinja==2.0.2 sphinx-notfound-page==0.8.3 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphinxcontrib-websupport==1.2.4 stack-data==0.6.2 streamlit==1.25.0 tenacity==8.2.2 terminado==0.17.1 threadpoolctl==3.1.0 tinycss2==1.2.1 toml==0.10.2 tomli==2.0.1 toolz==0.12.0 tornado==6.3.2 tqdm==4.65.0 traitlets==5.9.0 typing_extensions==4.6.3 tzdata==2023.3 tzlocal==4.3.1 uri-template==1.3.0 uritemplate==4.1.1 urllib3==1.26.16 validators==0.20.0 vtk==9.2.6 watchdog==3.0.0 wcwidth==0.2.6 webcolors==1.13 webencodings==0.5.1 websocket-client==1.6.1 widgetsnbextension==4.0.7 wrapt==1.15.0 zipp==3.16.2 (py310) PS D:\PYDYNA_PRE_RELEASE\pydyna>