Skip to content

Add per particle dbcs#1895

Merged
georghammerl merged 1 commit into4C-multiphysics:mainfrom
georghammerl:add_per_particle_dbcs
Mar 31, 2026
Merged

Add per particle dbcs#1895
georghammerl merged 1 commit into4C-multiphysics:mainfrom
georghammerl:add_per_particle_dbcs

Conversation

@georghammerl
Copy link
Copy Markdown
Member

@georghammerl georghammerl commented Mar 26, 2026

Description and Context

Extracted the per particle Dirichlet boundary condition from #1881 into a separate PR.
The first review comments are already included from the original PR.

  • New optional keyword DIRICHLET_FUNCT in particle definitions (e.g., "TYPE pdphase POS ... DIRICHLET_FUNCT 1")
  • Particles with DIRICHLET_FUNCT 1 are subject to a Dirichlet boundary condition prescribed by FUNCT1
  • Enables to apply Dirichlet boundary conditions on subsets of particle phases (works for any particle phase)
  • Activated via this new "flagged" condition for several phases
PARTICLE DYNAMIC/INITIAL AND BOUNDARY CONDITIONS:
  DIRICHLET_BOUNDARY_CONDITION_FLAGGED: [pdphase]

Related Issues and Pull Requests

(#1881)

Interested parties

@alhermann

@georghammerl georghammerl force-pushed the add_per_particle_dbcs branch 3 times, most recently from 52e6375 to 7a65f0e Compare March 27, 2026 07:55
Copy link
Copy Markdown
Member

@ppraegla ppraegla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice feature!

Comment thread tests/input_files/particle_sph_2d_pdbody_dbc_per_particle.4C.yaml Outdated
Comment thread src/particle/src/4C_particle_input.cpp Outdated
Comment thread src/particle/src/4C_particle_input.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_timint.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.hpp Outdated
Comment thread tests/input_files/particle_sph_2d_pdbody_dbc_per_particle.4C.yaml
Copy link
Copy Markdown
Contributor

@slfuchs slfuchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like this feature a lot! This enables not only simple moving boundaries in SPH but more complex examples

Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.hpp Outdated
@georghammerl georghammerl force-pushed the add_per_particle_dbcs branch 2 times, most recently from 3f9741c to fa49c46 Compare March 29, 2026 19:35
slfuchs
slfuchs previously approved these changes Mar 30, 2026
ppraegla
ppraegla previously approved these changes Mar 30, 2026
Copy link
Copy Markdown
Member

@ppraegla ppraegla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question and some nitpicking

Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Copy link
Copy Markdown
Member

@ppraegla ppraegla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Sorry, for another round of comments 🙈

Comment thread src/particle/src/engine/4C_particle_engine_particlereader.cpp Outdated
Comment thread src/particle/src/algorithm/4C_particle_algorithm_dirichlet_bc.cpp Outdated
Comment thread src/particle/src/4C_particle_input.cpp
@georghammerl georghammerl force-pushed the add_per_particle_dbcs branch from e58d26e to cf030a8 Compare March 31, 2026 12:56
@georghammerl georghammerl requested a review from ppraegla March 31, 2026 13:03
@georghammerl georghammerl enabled auto-merge March 31, 2026 14:06
Copy link
Copy Markdown
Contributor

@slfuchs slfuchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side!

@georghammerl georghammerl merged commit 206161d into 4C-multiphysics:main Mar 31, 2026
29 checks passed
@georghammerl georghammerl deleted the add_per_particle_dbcs branch March 31, 2026 18:37
@amgebauer amgebauer mentioned this pull request Apr 23, 2026
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants