Skip to content

Commit

Permalink
rm cached
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Nov 7, 2024
1 parent 9d81526 commit ff016f2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 195 deletions.
Binary file removed 10.21105.joss.07044.pdf
Binary file not shown.
151 changes: 0 additions & 151 deletions examples/fluid/infinite_tank_2d.jl

This file was deleted.

4 changes: 0 additions & 4 deletions examples/preprocessing/aorta_inflow.jl

This file was deleted.

30 changes: 0 additions & 30 deletions examples/preprocessing/partitioning.jl

This file was deleted.

8 changes: 0 additions & 8 deletions src/schemes/fluid/entropically_damped_sph/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,6 @@ function create_cache_edac(initial_condition, ::TransportVelocityAdami)
return (; pressure_average, neighbor_counter, update_callback_used)
end

function create_cache_edac_particle_refinement(initial_condition, ::Nothing)
return (;)
end

function create_cache_edac_particle_refinement(initial_condition, ::ParticleRefinement)
return (;)
end

@inline function v_nvariables(system::EntropicallyDampedSPHSystem)
return v_nvariables(system, system.density_calculator)
end
Expand Down
4 changes: 2 additions & 2 deletions src/schemes/fluid/transport_velocity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ end
momentum_velocity_b = current_velocity(v_neighbor_system, neighbor_system, neighbor)
advection_velocity_b = advection_velocity(v_neighbor_system, neighbor_system, neighbor)

factor_a = beta_correction(particle_system, particle_refinement, particle) / rho_a
factor_a = beta_correction(system, particle_refinement, particle) / rho_a
factor_b = beta_correction(neighbor_system, particle_refinement, neighbor) / rho_b

A_a = factor_a * momentum_velocity_a * (advection_velocity_a - momentum_velocity_a)'
A_b = factor_b * momentum_velocity_b * (advection_velocity_b - momentum_velocity_b)'

grad_kernel_a = smoothing_kernel_grad(particle_system, pos_diff, distance, particle)
grad_kernel_a = smoothing_kernel_grad(system, pos_diff, distance, particle)
grad_kernel_b = smoothing_kernel_grad(neighbor_system, pos_diff, distance, neighbor)

return -m_b * (A_a * grad_kernel_a + A_b * grad_kernel_b)
Expand Down

0 comments on commit ff016f2

Please sign in to comment.