Skip to content

Conversation

@Xiangyu-Hu
Copy link
Owner

@Xiangyu-Hu Xiangyu-Hu commented Nov 29, 2025

This pull request simplifies the logic for tagging cells near an interface in the mesh dynamics code. The main change is to use the absolute value of the signed distance to the interface, instead of a more complex calculation involving the normal direction, to determine if a cell is near the interface.

Cell tagging logic simplification:

  • In both InitialCellTagging::UpdateKernel::update and InitialCellTaggingFromCoarse::UpdateKernel::update (in mesh_local_dynamics.cpp), replaced the calculation that combined signed distance and normal direction with a simpler check using only the absolute value of the signed distance to determine if a cell is within one grid spacing of the interface. [1] [2]

@Xiangyu-Hu Xiangyu-Hu merged commit 1624adc into master Nov 30, 2025
8 checks passed
@Xiangyu-Hu Xiangyu-Hu deleted the xiangyu/simpler_cell_tagging branch November 30, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants