Skip to content

Commit

Permalink
Fix Monaghan-Kajtar BC (#264)
Browse files Browse the repository at this point in the history
* Fix Monaghan-Kajtar BC

* Reformat

* Add comment

* Revert NHS of rectangular tank example

* Revert change in rectangular tank example
  • Loading branch information
efaulhaber authored Nov 14, 2023
1 parent d549821 commit 5fe4af0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/general/semidiscretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,17 @@ end
return compact_support(system, system.boundary_model, neighbor)
end

@inline function compact_support(system, model, neighbor)
@inline function compact_support(system, model::BoundaryModelMonaghanKajtar, neighbor)
# Use the compact support of the fluid for solid-fluid interaction
return compact_support(neighbor, system)
end

@inline function compact_support(system, model::BoundaryModelMonaghanKajtar,
neighbor::BoundarySPHSystem)
# This NHS is never used
return 0.0
end

@inline function compact_support(system, model::BoundaryModelDummyParticles, neighbor)
# TODO: Monaghan-Kajtar BC are using the fluid's compact support for solid-fluid
# interaction. Dummy particle BC use the model's compact support, which is also used
Expand Down

0 comments on commit 5fe4af0

Please sign in to comment.