Skip to content

Fix MOVING_WALL grid velocity overwritten by mesh deformation - #3069

Open
BLACKNIGHT-cloud12 wants to merge 1 commit into
su2code:developfrom
BLACKNIGHT-cloud12:fix/moving-wall-deforming-2166
Open

BLACKNIGHT-cloud12 wants to merge 1 commit into
su2code:developfrom
BLACKNIGHT-cloud12:fix/moving-wall-deforming-2166

Conversation

@BLACKNIGHT-cloud12

@BLACKNIGHT-cloud12 BLACKNIGHT-cloud12 commented Dec 5, 2026 •

Copy link
Copy Markdown

Proposed Changes

When a config mixes MOVING_WALL and DEFORMING (or aeroelastic/external) markers, CMeshSolver::ComputeGridVelocity, CMeshSolver::ComputeGridVelocity_FromBoundary, and CGeometry::SetGridVelocity overwrite nodal grid velocities from mesh displacements, zeroing out the stationary MOVING_WALL nodes. CGeometry::SetWallVelocity also checked GetMarker_All_Moving without filtering by MOVING_WALL, so it touched DEFORMING markers too.

  • Skip non-MOVING_WALL markers in CGeometry::SetWallVelocity.
  • Re-apply SetWallVelocity when MOVING_WALL is active at the end of CGeometry::SetGridVelocity and inside CMeshSolver::ComputeGridVelocity / ComputeGridVelocity_FromBoundary before multigrid restriction.
  • Check GetSurface_Movement(MOVING_WALL) instead of GetnMarker_Moving() > 0 in CDriver::PreprocessStaticMesh.
  • Add unit tests for mixed MOVING_WALL + DEFORMING surfaces in CGeometry_test.cpp and moving_wall_tests.cpp.

Related Work

Fixes #2166.

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

This branch has not been deployed

No deployments
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.

1 participant