Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLUENT: Problem reading face zones from mesh without cell zone #2126

Open
3 tasks done
PProfizi opened this issue Mar 3, 2025 · 1 comment
Open
3 tasks done

FLUENT: Problem reading face zones from mesh without cell zone #2126

PProfizi opened this issue Mar 3, 2025 · 1 comment
Labels
bug Something isn't working fluent Related to usage with Fluent result files

Comments

@PProfizi
Copy link
Contributor

PProfizi commented Mar 3, 2025

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

Raised by @mhoeijm

The question is whether it is normal for the fluent meshes_provider to not return meshes for face zones on bodies without a cell zone.
If this is expected behavior, should it then be improved?

The description in the example for this states:
If no region_scoping is connected, the MeshedRegion for all body and face zones is retrieved in a MeshesContainer

@mhoeijm feel free to add to this description of the issue.

Steps To Reproduce

Using the following script

import os

import ansys.dpf.core as dpf

FLUENT_BOX = r"box_no_cells-2.msh.h5"
os.environ["ANSYS_DPF_ACCEPT_LA"] = "Y"

ds = dpf.DataSources()
ds.set_result_file_path(FLUENT_BOX, key="cas")

streams = dpf.operators.metadata.streams_provider(data_sources=ds)
meshes = dpf.operators.mesh.meshes_provider(streams_container=streams, region_scoping=None).eval()

# get mesh info:
model = dpf.Model(data_sources=ds)
minfo: dpf.MeshInfo = model.metadata.mesh_info

print(model)

with the following file:

box_no_cells-2.msh.h5.zip

One box has a cell zone defined and the meshes_provider correctly returns the cell zone along with associated face zones, whereas the second box is made only of face zones which are not returned by the operator.

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

DPF Server 2025.2.pre0, Ansys 2025 R1

Which Python version causes the issue?

3.12

Installed packages

ansys-dpf-core==0.13.3

@PProfizi PProfizi added bug Something isn't working fluent Related to usage with Fluent result files labels Mar 3, 2025
@PProfizi
Copy link
Contributor Author

PProfizi commented Mar 3, 2025

@rafacanton FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fluent Related to usage with Fluent result files
Projects
None yet
Development

No branches or pull requests

1 participant