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
Hello,
I am getting this error when trying to access data from the .rst file:
The model includes the results at different times. I can read the result/data of strain and temperature up to ID 32 -cumulative (below is the list of data sets in the model) without any issue, but when I try to access the results beyond that I get the error shown in the attached image above. I am wondering what is causing this and what can I do to fix it. This also happened with another case with multiple time steps. I was able to read the data for earlier time steps only.
DPF Time/Freq Support:
Number of sets: 156
Cumulative Time (s) LoadStep Substep
1 1.000000 1 1
2 2.000000 1 2
3 3.000000 1 3
4 4.000000 1 4
5 5.000000 1 5
6 6.000000 1 6
7 7.000000 1 7
8 8.000000 1 8
9 9.000000 1 9
10 10.000000 1 10
11 11.000000 1 11
12 12.000000 1 12
13 13.000000 1 13
14 14.000000 1 14
15 15.000000 1 15
16 16.000000 1 16
17 17.000000 1 17
18 18.000000 1 18
19 19.000000 1 19
20 20.000000 1 20
21 20.100000 2 1
22 20.200000 2 2
23 20.300000 2 3
24 20.400000 2 4
25 20.500000 2 5
26 20.535000 2 6
27 20.570000 2 7
28 20.622500 2 8
29 20.701250 2 9
30 20.801250 2 10
31 20.901250 2 11
32 21.000000 2 12
33 22.000000 3 1
34 23.000000 3 2
35 24.000000 3 3
36 25.000000 3 4
37 26.000000 3 5
38 27.000000 3 6
39 28.000000 3 7
40 29.000000 3 8
41 30.000000 3 9
42 31.000000 3 10
43 32.000000 3 11
44 33.000000 3 12
45 34.000000 3 13
46 35.000000 3 14
47 36.000000 3 15
48 37.000000 3 16
49 38.000000 3 17
50 39.000000 3 18
51 40.000000 3 19
52 41.000000 3 20
53 41.100000 4 1
54 41.200000 4 2
55 41.300000 4 3
56 41.400000 4 4
57 41.500000 4 5
58 41.535000 4 6
59 41.570000 4 7
60 41.622500 4 8
61 41.701250 4 9
62 41.801250 4 10
63 41.901250 4 11
64 42.000000 4 12
65 43.000000 5 1
66 44.000000 5 2
67 45.000000 5 3
68 46.000000 5 4
69 47.000000 5 5
70 48.000000 5 6
71 49.000000 5 7
72 50.000000 5 8
73 51.000000 5 9
74 52.000000 5 10
75 53.000000 5 11
76 54.000000 5 12
77 55.000000 5 13
78 56.000000 5 14
79 57.000000 5 15
80 58.000000 5 16
81 59.000000 5 17
82 60.000000 5 18
83 61.000000 5 19
84 62.000000 5 20
85 62.100000 6 1
86 62.200000 6 2
87 62.300000 6 3
88 62.400000 6 4
89 62.500000 6 5
90 62.535000 6 6
91 62.570000 6 7
92 62.622500 6 8
93 62.701250 6 9
94 62.801250 6 10
95 62.901250 6 11
96 63.000000 6 12
97 64.000000 7 1
98 65.000000 7 2
99 66.000000 7 3
100 67.000000 7 4
101 68.000000 7 5
102 69.000000 7 6
103 70.000000 7 7
104 71.000000 7 8
105 72.000000 7 9
106 73.000000 7 10
107 74.000000 7 11
108 75.000000 7 12
109 76.000000 7 13
110 77.000000 7 14
111 78.000000 7 15
112 79.000000 7 16
113 80.000000 7 17
114 81.000000 7 18
115 82.000000 7 19
116 83.000000 7 20
117 83.100000 8 1
118 83.200000 8 2
119 83.300000 8 3
120 83.400000 8 4
121 83.500000 8 5
122 83.600000 8 6
123 83.700000 8 7
124 83.800000 8 8
125 83.900000 8 9
126 84.000000 8 10
127 85.000000 9 1
128 86.000000 9 2
129 87.000000 9 3
130 88.000000 9 4
131 89.000000 9 5
132 90.000000 9 6
133 91.000000 9 7
134 92.000000 9 8
135 93.000000 9 9
136 94.000000 9 10
137 95.000000 9 11
138 96.000000 9 12
139 97.000000 9 13
140 98.000000 9 14
141 99.000000 9 15
142 100.000000 9 16
143 101.000000 9 17
144 102.000000 9 18
145 103.000000 9 19
146 104.000000 9 20
147 104.100000 10 1
148 104.200000 10 2
149 104.300000 10 3
150 104.400000 10 4
151 104.500000 10 5
152 104.600000 10 6
153 104.700000 10 7
154 104.800000 10 8
155 104.900000 10 9
156 105.000000 10 10
The snippet of the code that I am using to access the data is attached below:
I am new to this. I will really appreciate any help/guidance/suggestions.
Thank you.
Steps To Reproduce
Read the result file.
set the time scope.
Read the strain, stress, temperature data.
import
from ansys.dpf import core as dpf
from ansys.mapdl import reader as pymapdl_reader
read .rst file
rst= 'LP_TW2.rst'
model = dpf.Model(rst)
print(model)
Set time scoping
time_scoping = [20] # cumulative time ID
time_scoping2 = [32] # cumulative time ID
Import nodal elastic strain data for the time step ID
elastic_strain_op = dpf.operators.result.strain_eqv_as_mechanical(time_scoping=time_scoping2,data_sources=model,requested_location=dpf.locations.nodal)
elastic_strain_fc = elastic_strain_op.eval()
elastic_strain_field = elastic_strain_fc[0]
elastic_strain_data = elastic_strain_field.data
Which Operating System causes the issue?
Windows
Which DPF/Ansys version are you using?
Ansys 2023 R2
Which Python version causes the issue?
3.11
Installed packages
aiobotocore 2.7.0
aiohttp 3.9.3
aioitertools 0.7.1
aiosignal 1.2.0
alabaster 0.7.12
altair 5.0.1
anaconda-anon-usage 0.4.3
anaconda-catalogs 0.2.0
anaconda-client 1.12.3
anaconda-cloud-auth 0.1.4
anaconda-navigator 2.5.2
anaconda-project 0.11.1
ansys-api-fluent 0.3.5
ansys-api-mapdl 0.5.1
ansys-api-mechanical 0.1.0
ansys-api-meshing-prime 0.1.1
ansys-api-platform-instancemanagement 1.0.0
ansys-api-systemcoupling 0.1.0
ansys-dpf-composites 0.2b2
ansys-dpf-core 0.8.0
ansys-dpf-gate 0.3.1
ansys-dpf-gatebin 0.4.1
ansys-dpf-post 0.4.0
ansys-fluent-core 0.12.5
ansys-grantami-bomanalytics 1.1.3
ansys-grantami-bomanalytics-openapi 1.0.0
ansys-grpc-dpf 0.8.1
ansys-mapdl-core 0.64.1
ansys-mapdl-reader 0.53.0
ansys-math-core 0.1.1
ansys-mechanical-core 0.7.1
ansys-meshing-prime 0.3.0
ansys-motorcad-core 0.1.3
ansys-openapi-common 1.2.1
ansys-optislang-core 0.2.0
ansys-platform-instancemanagement 1.0.3
ansys-pythonnet 3.1.0rc1
ansys-seascape 0.2.0
ansys-systemcoupling-core 0.1.3
anyio 4.2.0
appdirs 1.4.4
archspec 0.2.1
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
arrow 1.2.3
astroid 2.14.2
astropy 5.3.4
asttokens 2.0.5
async-lru 2.0.4
atomicwrites 1.4.0
attrs 23.1.0
autograd 1.6.2
autograd-gamma 0.5.0
Automat 20.2.0
autopep8 1.6.0
Babel 2.11.0
backports.functools-lru-cache 1.6.4
backports.tempfile 1.0
backports.weakref 1.0.post1
bcrypt 3.2.0
beautifulsoup4 4.12.2
binaryornot 0.4.4
black 23.11.0
bleach 4.1.0
blinker 1.6.2
bokeh 3.3.4
boltons 23.0.0
botocore 1.31.64
Bottleneck 1.3.7
Brotli 1.0.9
cachetools 4.2.2
certifi 2024.2.2
cffi 1.16.0
chardet 4.0.0
charset-normalizer 2.0.4
click 8.1.7
cloudpickle 2.2.1
clr-loader 0.2.6
clyent 1.2.2
colorama 0.4.6
colorcet 3.0.1
comm 0.1.2
conda 24.1.2
conda-build 24.1.2
conda-content-trust 0.2.0
conda_index 0.4.0
conda-libmamba-solver 24.1.0
conda-pack 0.6.0
conda-package-handling 2.2.0
conda_package_streaming 0.9.0
conda-repo-cli 1.0.75
conda-token 0.4.0
conda-verify 3.4.2
constantly 23.10.4
contourpy 1.2.0
cookiecutter 2.5.0
cryptography 42.0.2
cssselect 1.2.0
cycler 0.11.0
cytoolz 0.12.2
dask 2023.11.0
datashader 0.16.0
debugpy 1.6.7
decorator 5.1.1
defusedxml 0.7.1
diff-match-patch 20200713
dill 0.3.7
distributed 2023.11.0
distro 1.8.0
docstring-to-markdown 0.11
docutils 0.18.1
entrypoints 0.4
et-xmlfile 1.1.0
executing 0.8.3
fastjsonschema 2.16.2
filelock 3.13.1
flake8 6.0.0
Flask 2.2.5
fonttools 4.25.0
frozenlist 1.4.0
fsspec 2023.10.0
future 0.18.3
Genshi 0.7.7
gensim 4.3.0
gitdb 4.0.7
GitPython 3.1.37
gmpy2 2.1.2
google-api-core 2.18.0
google-api-python-client 2.125.0
google-auth 2.29.0
google-auth-httplib2 0.2.0
googleapis-common-protos 1.63.0
greenlet 3.0.1
grpcio 1.62.1
grpcio-status 1.48.2
h5py 3.9.0
hachiko 0.4.0
HeapDict 1.0.1
holoviews 1.18.3
httplib2 0.22.0
hvplot 0.9.2
hyperlink 21.0.0
idna 3.4
imagecodecs 2023.1.23
imageio 2.33.1
imagesize 1.4.1
imbalanced-learn 0.11.0
importlib-metadata 6.11.0
incremental 22.10.0
inflection 0.5.1
iniconfig 1.1.1
intake 0.6.8
intervaltree 3.1.0
ipykernel 6.28.0
ipython 8.20.0
ipython-genutils 0.2.0
ipywidgets 7.6.5
isort 5.9.3
itemadapter 0.3.0
itemloaders 1.1.0
itsdangerous 2.0.1
jaraco.classes 3.2.1
jedi 0.18.1
jellyfish 1.0.1
Jinja2 3.1.3
jmespath 1.0.1
joblib 1.2.0
json5 0.9.6
jsonpatch 1.32
jsonpointer 2.1
jsonschema 4.19.2
jsonschema-specifications 2023.7.1
jupyter 1.0.0
jupyter_client 8.6.0
jupyter-console 6.6.3
jupyter_core 5.5.0
jupyter-events 0.8.0
jupyter-lsp 2.2.0
jupyter_server 2.10.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.11
jupyterlab-pygments 0.1.2
jupyterlab_server 2.25.1
jupyterlab-widgets 3.0.9
keyring 23.13.1
kiwisolver 1.4.4
lazy_loader 0.3
lazy-object-proxy 1.6.0
lckr_jupyterlab_variableinspector 3.1.0
libarchive-c 2.9
libmambapy 1.5.6
linkify-it-py 2.0.0
llvmlite 0.42.0
lmdb 1.4.1
locket 1.0.0
lxml 4.9.3
lz4 4.3.2
Markdown 3.4.1
markdown-it-py 2.2.0
MarkupSafe 2.1.3
matplotlib 3.8.0
matplotlib-inline 0.1.6
mccabe 0.7.0
mdit-py-plugins 0.3.0
mdurl 0.1.0
menuinst 2.0.2
mistune 2.0.4
mkl-fft 1.3.8
mkl-random 1.2.4
mkl-service 2.4.0
more-itertools 10.1.0
mplcursors 0.5.3
mpmath 1.3.0
msgpack 1.0.3
multidict 6.0.4
multipledispatch 0.6.0
munkres 1.1.4
mypy 1.8.0
mypy-extensions 1.0.0
navigator-updater 0.4.0
nbclient 0.8.0
nbconvert 7.10.0
nbformat 5.9.2
nest-asyncio 1.6.0
networkx 3.1
nltk 3.8.1
notebook 7.0.8
notebook_shim 0.2.3
numba 0.59.0
numexpr 2.8.7
numpy 1.26.4
numpydoc 1.5.0
openpyxl 3.0.10
overrides 7.4.0
packaging 23.1
pandas 2.1.4
pandocfilters 1.5.0
panel 1.3.8
param 2.0.2
paramiko 2.8.1
parsel 1.8.1
parso 0.8.3
partd 1.4.1
pathlib 1.0.1
pathspec 0.10.3
patsy 0.5.3
pexpect 4.8.0
pickleshare 0.7.5
pillow 10.2.0
pip 23.3.1
pkce 1.0.3
pkginfo 1.9.6
platformdirs 3.10.0
plotly 5.9.0
pluggy 1.0.0
plumbum 1.8.2
ply 3.11
pooch 1.8.1
prometheus-client 0.14.1
prompt-toolkit 3.0.43
Protego 0.1.16
proto-plus 1.23.0
protobuf 3.20.3
psutil 5.9.8
ptyprocess 0.7.0
pure-eval 0.2.2
py-cpuinfo 9.0.0
pyaedt 0.6.70
pyansys 2023.2.0
pyansys-tools-versioning 0.5.0
pyarrow 14.0.2
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycodestyle 2.10.0
pycosat 0.6.6
pycparser 2.21
pyct 0.5.0
pycurl 7.45.2
pydantic 1.10.12
pydeck 0.8.0
PyDispatcher 2.0.5
pydocstyle 6.3.0
pyerfa 2.0.0
pyflakes 3.0.1
Pygments 2.15.1
pyiges 0.3.1
PyJWT 2.4.0
pylint 2.16.2
pylint-venv 2.3.0
pyls-spyder 0.4.0
PyNaCl 1.5.0
pyodbc 5.0.1
pyOpenSSL 24.0.0
pyparsing 3.0.9
pypiwin32 223
PyQt5 5.15.10
PyQt5-sip 12.13.0
PyQtWebEngine 5.15.6
PySocks 1.7.1
pyspnego 0.10.2
pytest 7.4.0
python-dateutil 2.8.2
python-dotenv 0.21.0
python-json-logger 2.0.7
python-lsp-black 1.2.1
python-lsp-jsonrpc 1.0.0
python-lsp-server 1.7.2
python-slugify 5.0.2
python-snappy 0.6.1
pythonnet 3.0.1
pytoolconfig 1.2.6
pytwin 0.3.0
pytz 2023.3.post1
pyvista 0.36.1
pyviz_comms 3.0.0
pywavelets 1.5.0
pywin32 305.1
pywin32-ctypes 0.2.0
pywinpty 2.0.10
PyYAML 6.0.1
pyzmq 25.1.2
QDarkStyle 3.0.2
qstylizer 0.2.2
QtAwesome 1.2.2
qtconsole 5.4.2
QtPy 2.4.1
queuelib 1.6.2
readme-renderer 36.0
referencing 0.30.2
regex 2023.10.3
reliability 0.8.16
requests 2.31.0
requests-file 1.5.1
requests-negotiate-sspi 0.5.2
requests-ntlm 1.2.0
requests-toolbelt 1.0.0
restview 3.0.1
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rich 13.3.5
rope 1.7.0
rpds-py 0.10.6
rpyc 5.3.0
rsa 4.9
rst2html5 2.0.1
rstviewer 0.0.8
Rtree 1.0.1
ruamel.yaml 0.17.21
ruamel-yaml-conda 0.17.21
s3fs 2023.10.0
scikit-image 0.22.0
scikit-learn 1.2.2
scipy 1.11.4
scooby 0.9.2
Scrapy 2.8.0
seaborn 0.12.2
semver 2.13.0
Send2Trash 1.8.2
service-identity 18.1.0
setuptools 68.2.2
sip 6.7.12
six 1.16.0
smart-open 5.2.1
smmap 4.0.0
sniffio 1.3.0
snowballstemmer 2.2.0
sortedcontainers 2.4.0
soupsieve 2.5
Sphinx 5.0.2
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
spyder 5.4.3
spyder-kernels 2.4.4
SQLAlchemy 2.0.25
sspilib 0.1.0
stack-data 0.2.0
statsmodels 0.14.0
streamlit 1.30.0
sympy 1.12
tables 3.9.2
tabulate 0.9.0
tblib 1.7.0
tenacity 8.2.2
terminado 0.17.1
text-unidecode 1.3
textdistance 4.2.1
threadpoolctl 2.2.0
three-merge 0.1.1
tifffile 2023.4.12
tinycss2 1.2.1
tldextract 3.2.0
toml 0.10.2
tomlkit 0.11.1
toolz 0.12.0
tornado 6.3.3
tqdm 4.65.0
traitlets 5.7.1
truststore 0.8.0
Twisted 23.10.0
twisted-iocpsupport 1.0.2
typing_extensions 4.9.0
tzdata 2023.3
tzlocal 2.1
uc-micro-py 1.0.1
ujson 5.4.0
Unidecode 1.2.0
uritemplate 4.1.1
urllib3 2.0.7
validators 0.18.2
vtk 9.3.0
w3lib 2.1.2
watchdog 2.1.6
wcwidth 0.2.5
webencodings 0.5.1
websocket-client 0.58.0
Werkzeug 2.2.3
whatthepatch 1.0.2
wheel 0.41.2
widgetsnbextension 3.5.2
win-inet-pton 1.1.0
wrapt 1.14.1
xarray 2023.6.0
xlwings 0.29.1
xyzservices 2022.9.0
yapf 0.31.0
yarl 1.9.3
zict 3.0.0
zipp 3.17.0
zope.interface 5.4.0
zstandard 0.19.0