Skip to content

Commit

Permalink
missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
svchb committed Jul 15, 2024
1 parent 0f3536c commit 431e3c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/schemes/boundary/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,24 @@ end
return zero(SVector{ndims(system), eltype(system)})
end

@inline function current_acceleration(system::BoundarySPHSystem, particle)
return current_acceleration(system, system.movement, particle)
end

@inline function current_acceleration(system, movement, particle)
(; cache, ismoving) = system

if ismoving[]
return extract_svector(cache.acceleration, system, particle)
end

return zero(SVector{ndims(system), eltype(system)})
end

@inline function current_acceleration(system, movement::Nothing, particle)
return zero(SVector{ndims(system), eltype(system)})
end

@inline function viscous_velocity(v, system::BoundarySPHSystem, particle)
return viscous_velocity(v, system.boundary_model.viscosity, system, particle)
end
Expand Down

0 comments on commit 431e3c0

Please sign in to comment.