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

Fix/Aplot not working when using amax and/or ainc #746

Merged
merged 1 commit into from
Dec 1, 2021
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: 0 additions & 6 deletions ansys/mapdl/core/mapdl_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ def generate_surface(self, density=4, amin=None, amax=None, ninc=None):
if amin or amax:
if amax is None:
amax = amin
else:
amax = ""

if amin is None: # amax is non-zero
amin = 1
Expand Down Expand Up @@ -312,10 +310,6 @@ def generate_surface(self, density=4, amin=None, amax=None, ninc=None):
self._mapdl.cmsel("S", "__tmp_area__", "AREA")
self._mapdl.cmsel("S", "__tmp_elem__", "ELEM")

# ensure the number of groups matches the number of areas
if len(groups) != len(orig_anum):
groups = None

# store the area number used for each element
entity_num = np.empty(grid.n_cells, dtype=np.int32)
if grid and groups:
Expand Down