ansys / pydpf-core

Data Processing Framework - Python Core
http://dpf.docs.pyansys.com/
MIT License
70 stars 25 forks source link

Bug located in change shell layers operator #966

Open rajesh1359 opened 1 year ago

rajesh1359 commented 1 year ago

Before submitting the issue

Description of the bug

The scoping type of stress field container changes to "Elemental" from "Nodal" Automatically.

shell_layer_extract = self.dpf.operators.utility.change_shell_layers() shell_layer_extract.inputs.fields_container.connect(field_norm_stress) shell_layer_extract.inputs.e_shell_layer.connect(0) fields_top = shell_layer_extract.outputs.fields_container_as_fields_container()

This creates issue when we try to plot the resulting filed as there would be a mismatch between scoping and location type in field. It breaks at line in node.py: if external_scope.location in ["Elemental", "NodalElemental"]: raise ValueError('Input scope location must be "Nodal"')

Steps To Reproduce

Above mentioned

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

DPF Server 2023.2.pre1

Which Python version causes the issue?

3.10

Installed packages

aiohttp 3.8.4
aiosignal 1.3.1
ansys-dpf-core 0.8.1
ansys-dpf-gate 0.3.1
ansys-dpf-gatebin 0.3.1
ansys-grpc-dpf 0.7.1
anyio 3.6.2
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
arrow 1.2.3
asttokens 2.2.1
async-timeout 4.0.2
attrs 23.1.0
backcall 0.2.0
beautifulsoup4 4.12.2
bleach 6.0.0
cachetools 5.3.0 certifi 2022.12.7 cffi 1.15.1 charset-normalizer 3.1.0 colorama 0.4.6 comm 0.1.3 contourpy 1.0.7 cycler 0.11.0 debugpy 1.6.7 decorator 5.1.1 defusedxml 0.7.1 executing 1.2.0 fastjsonschema 2.16.3 fonttools 4.39.3 fqdn 1.5.1 frozenlist 1.3.3 google-api-core 2.11.0 google-api-python-client 2.86.0 google-auth 2.17.3 google-auth-httplib2 0.1.0 googleapis-common-protos 1.59.0 grpcio 1.54.0 httplib2 0.22.0 idna 3.4 imageio 2.27.0 importlib-metadata 6.5.0 importlib-resources 5.12.0 ipykernel 6.22.0 ipython 8.12.0 ipython-genutils 0.2.0 ipywidgets 8.0.6 isoduration 20.11.0 jedi 0.18.2 Jinja2 3.1.2 jsonpointer 2.3 jsonschema 4.17.3 jupyter 1.0.0 jupyter_client 8.2.0 jupyter-console 6.6.3 jupyter_core 5.3.0 jupyter-events 0.6.3 jupyter_server 2.5.0 jupyter_server_terminals 0.4.4 jupyterlab-pygments 0.2.2 jupyterlab-widgets 3.0.7 kiwisolver 1.4.4 MarkupSafe 2.1.2 matplotlib 3.7.1 matplotlib-inline 0.1.6 mistune 2.0.5 multidict 6.0.4 nbclassic 0.5.5 nbclient 0.7.3 nbconvert 7.3.1 nbformat 5.8.0 nest-asyncio 1.5.6 notebook 6.5.4 notebook_shim 0.2.2 numpy 1.24.2 packaging 23.1 pandocfilters 1.5.0 parso 0.8.3 pickleshare 0.7.5 Pillow 9.5.0 pip 22.0.4 platformdirs 3.2.0 pooch 1.7.0 prometheus-client 0.16.0 prompt-toolkit 3.0.38 protobuf 4.22.3 psutil 5.9.5 pure-eval 0.2.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycparser 2.21 Pygments 2.15.1 pyparsing 3.0.9 pyrsistent 0.19.3 python-dateutil 2.8.2 python-json-logger 2.0.7 pyvista 0.38.5 pywin32 306 pywinpty 2.0.10 PyYAML 6.0 pyzmq 25.0.2 qtconsole 5.4.2 QtPy 2.3.1 requests 2.28.2 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rsa 4.9 scooby 0.7.1 Send2Trash 1.8.0 setuptools 58.1.0 six 1.16.0 sniffio 1.3.0 soupsieve 2.4.1 stack-data 0.6.2 terminado 0.17.1 tinycss2 1.2.1 tornado 6.3 tqdm 4.65.0 traitlets 5.9.0 trame 2.3.2 trame-client 2.7.5 trame-components 2.1.0 trame-deckgl 2.0.1 trame-markdown 2.0.2 trame-matplotlib 2.0.1 trame-plotly 2.1.0 trame-rca 0.3.0 trame-router 2.0.1 trame-server 2.10.0 trame-simput 2.3.1 trame-vega 2.0.2 trame-vtk 2.4.4 trame-vuetify 2.2.4 typing_extensions 4.5.0 uri-template 1.2.0 uritemplate 4.1.1 urllib3 1.26.15 vtk 9.2.6 wcwidth 0.2.6 webcolors 1.13 webencodings 0.5.1 websocket-client 1.5.1 widgetsnbextension 4.0.7 wslink 1.10.1 yarl 1.8.2 zipp 3.15.0

anslpa commented 1 year ago

Hi @rajesh1359, would it be possible to have a complete script and a result file to test this issue ?