Skip to content

DPF Returns Different Number of Elements on Different Runs #2333

Open
@Saivellampati

Description

@Saivellampati

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

We encountered an inconsistency while processing the .rst file L421_break_in_rst_2.rst using ANSYS DPF. Specifically, DPF returns a different number of elements across separate runs of the exact same code and file. This non-deterministic behavior makes it unreliable for consistent data extraction and post-processing.

Steps To Reproduce

import os 
import numpy as np
from ansys.dpf import core as dpf

filepath = "L421_break_in_rst_2.rst"
ds = dpf.DataSources()
ds.set_result_file_path(filepath, key="rst")
model = dpf.Model(data_sources=ds)

meshed_region = model.metadata.meshed_region
n_elements  = meshed_region.elements.n_elements
n_nodes = meshed_region.nodes.n_nodes

print(f"Number of Elements - {n_elements}")
print(f"Number of Nodes - {n_nodes}")

This is of bigger size(around 5gb)

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.13.8
Editable install with no version control (ansys-dpf-server_2025_1_pre0==2025.1rc0)
-e c:\users\sandeep\documents\pydpf\ansys_dpf_server_win_v2025.1.pre0
certifi==2025.4.26
charset-normalizer==3.4.2
colorama==0.4.6
contourpy==1.3.2
cycler==0.12.1
fonttools==4.58.1
grpcio==1.72.1
idna==3.10
importlib_metadata==8.7.0
Jinja2==3.1.6
kiwisolver==1.4.8
llvmlite==0.44.0
MarkupSafe==3.0.2
matplotlib==3.10.3
numba==0.61.2
numpy==2.2.6
packaging==25.0
pillow==11.2.1
platformdirs==4.3.8
pooch==1.8.2
protobuf==6.31.1
psutil==7.0.0
pydantic==2.11.5
pydantic-settings==2.9.1
pydantic_core==2.33.2
pyparsing==3.2.3
python-dateutil==2.9.0.post0
python-dotenv==1.1.0
pyvista==0.45.2
requests==2.32.3
scooby==0.10.1
setuptools==80.9.0
six==1.17.0
tqdm==4.67.1
typing-inspection==0.4.1
typing_extensions==4.14.0
urllib3==2.4.0
vtk==9.4.2
wheel==0.45.1
zipp==3.22.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions