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

keep repeated modes at harmonic index 0 #197

Merged
merged 2 commits into from
Jan 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ansys/mapdl/reader/cyclic_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def _add_cyclic_properties(self):
mask_b = np.isclose(self.time_values, np.roll(self.time_values, -1))
self._is_repeated_mode = np.logical_or(mask_a, mask_b)

# should not have repeated modes at harmonic index of 0 or N/2
self._is_repeated_mode[self._resultheader["hindex"] == 0] = False
# should not have repeated modes at harmonic index N/2
self._is_repeated_mode[
self._resultheader["hindex"] == self.n_sector // 2
] = False
Expand All @@ -131,8 +130,7 @@ def _add_cyclic_properties(self):
self._repeated_index[mask_b] = np.nonzero(mask_a)[0]

def nodal_solution(self, rnum, phase=0, full_rotor=False, as_complex=False):
"""Returns the DOF solution for each node in the global
cartesian coordinate system.
"""Return the DOF solution for each node in the global cartesian coordinate system.

Parameters
----------
Expand Down