Skip to content

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

Open
@ayush-kumar-423

Description

@ayush-kumar-423

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

.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserverissue on the server side

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions