Skip to content

Commit

Permalink
for now, only on the wound edge cells
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo1990 committed Oct 18, 2024
1 parent 6b7a277 commit 8b28502
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pyVertexModel/mesh_remodelling/remodelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ def remodel_mesh(self, num_step):
# Get the first segment feature
segmentFeatures = segmentFeatures_all.iloc[0]

if self.Geo.Cells[segmentFeatures['cell_to_split_from']].AliveStatus == 1:
segmentFeatures_all = segmentFeatures_all.drop(segmentFeatures.name)
continue

# Intercalate cells
allTnew, cellToSplitFrom, ghostNode, ghost_nodes_tried, has_converged, old_tets = (
self.intercalate_cells(segmentFeatures))

Expand Down Expand Up @@ -298,7 +303,7 @@ def remodel_mesh(self, num_step):
logger.info(f'=>> Full-Flip accepted')
self.Geo_n = self.Geo.copy(update_measurements=False)
backup_vars = save_backup_vars(self.Geo, self.Geo_n, self.Geo_0, num_step, self.Dofs)
# break
break
else:
# Go back to initial state
self.Geo, self.Geo_n, self.Geo_0, num_step, self.Dofs = load_backup_vars(backup_vars)
Expand Down

0 comments on commit 8b28502

Please sign in to comment.