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

Faulty display of mesh in a Multi-stage cyclic symmetry with multiple Harmonic indexes #1882

Open
3 tasks done
ayush-kumar-423 opened this issue Nov 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working server issue on the server side

Comments

@ayush-kumar-423
Copy link
Contributor

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

import ansys.dpf.core as dpf
from ansys.dpf.core.plotter import DpfPlotter

path_rst = r"D:\...\ansys_rst\file.rst"

data_sources = dpf.DataSources(path_rst)
model = dpf.Model(data_sources)
mesh = model.metadata.meshed_region
print(model)

# cyclic support
op1 = dpf.operators.metadata.cyclic_support_provider()  # operator instantiation
op1.inputs.data_sources.connect(data_sources)
cyclic_support = op1.outputs.cyclic_support()

# mesh expansion
op2 = dpf.operators.metadata.cyclic_mesh_expansion()  # operator instantiation
op2.inputs.cyclic_support.connect(cyclic_support)
meshed_region = op2.outputs.meshed_region()

op3 = dpf.operators.result.cyclic_expanded_displacement()  # operator instantiation
op3.inputs.data_sources.connect(data_sources)
op3.inputs.read_cyclic.connect(3)  # optional
disp_fields_container = op3.outputs.fields_container()

pl = DpfPlotter()
pl.add_field(fields_container[0], deform_by=disp_fields_container[0])
pl.show_figure()

The output also has the original undeformed mesh.

Image

Steps To Reproduce

.

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

Ansys 2024 R2

Which Python version causes the issue?

3.11

Installed packages

.

@ayush-kumar-423 ayush-kumar-423 added the bug Something isn't working label Nov 9, 2024
@PProfizi PProfizi self-assigned this Nov 13, 2024
@PProfizi
Copy link
Contributor

Hey @MichaelNale it looks like the cyclic_support_provider is duplicating the last stage and causing issues later down the line.
I have a file to reproduce, just ping me.

@PProfizi PProfizi added the server issue on the server side label Nov 15, 2024
@PProfizi PProfizi assigned oparreno and unassigned PProfizi Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server issue on the server side
Projects
None yet
Development

No branches or pull requests

3 participants