ansys/pydpf-core

mesh::beam_properties error getting output field

Opened this issue · 0 comments

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

When the mesh::beam_properties output field in a given beam model is queried, an exception is raised:

ansys.dpf.gate.errors.DPFServerException: beam_properties:0<-mapdl::rst::beam_properties:1<-impossible to retrieve material property of index EX from the input file

This exception is raised when the beam model has more than one section, but only one material is defined.

Steps To Reproduce

The rst_file is the results file (*.rst) from a beam model with two beam sections and one material.

In the zip file Beam_I_L_1mat.zip there are two compressed files:

  • A *.inp with MAPDL commands to generate results file, and
  • A *.rst with the results

from ansys.dpf import core as dpf

rst_file = r"Beam_I_L_1mat.rst"

my_data_sources = dpf.DataSources(rst_file)

op = dpf.operators.mesh.beam_properties()
op.inputs.data_sources.connect(my_data_sources)

my_field_geometry = op.outputs.field_geometry()

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

Ansys 2024 R2

Which Python version causes the issue?

3.10

Installed packages

Package Version


ansys-dpf-core 0.13.0
cachetools 5.4.0
certifi 2024.7.4
charset-normalizer 3.3.2
colorama 0.4.6
contourpy 1.2.1
cycler 0.12.1
fonttools 4.53.1
google-api-core 2.19.1
google-api-python-client 2.140.0
google-auth 2.33.0
google-auth-httplib2 0.2.0
googleapis-common-protos 1.63.2
grpcio 1.65.4
httplib2 0.22.0
idna 3.7
importlib_metadata 8.2.0
kiwisolver 1.4.5
matplotlib 3.9.1.post1
numpy 1.26.4
packaging 24.1
pillow 10.4.0
pip 24.2
platformdirs 4.2.2
pooch 1.8.2
proto-plus 1.24.0
protobuf 5.27.3
psutil 6.0.0
pyasn1 0.6.0
pyasn1_modules 0.4.0
pyparsing 3.1.2
python-dateutil 2.9.0.post0
pyvista 0.44.1
requests 2.32.3
rsa 4.9
scooby 0.10.0
setuptools 65.5.0
six 1.16.0
tqdm 4.66.5
typing_extensions 4.12.2
uritemplate 4.1.1
urllib3 2.2.2
vtk 9.3.1
zipp 3.19.2