From ff5f5683ced27670c95d12f94e3cdb2d971b8b1d Mon Sep 17 00:00:00 2001 From: Sven Berger Date: Thu, 11 Jul 2024 20:28:26 +0200 Subject: [PATCH] fix --- src/schemes/boundary/system.jl | 2 -- src/schemes/fluid/fluid.jl | 2 +- src/schemes/solid/total_lagrangian_sph/system.jl | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/schemes/boundary/system.jl b/src/schemes/boundary/system.jl index b1d23414b..98e32c9f9 100644 --- a/src/schemes/boundary/system.jl +++ b/src/schemes/boundary/system.jl @@ -383,8 +383,6 @@ function restart_with!(system::BoundarySPHSystem{<:BoundaryModelDummyParticles{C return system end -@inline viscosity_model(system::BoundarySPHSystem, neighbor_system) = system.boundary_model.viscosity - function calculate_dt(v_ode, u_ode, cfl_number, system::BoundarySystem) return Inf end diff --git a/src/schemes/fluid/fluid.jl b/src/schemes/fluid/fluid.jl index d810c8f76..1fcdd484a 100644 --- a/src/schemes/fluid/fluid.jl +++ b/src/schemes/fluid/fluid.jl @@ -37,7 +37,7 @@ end write_v0!(v0, system, density_calculator) = v0 -@inline viscosity_model(system::FluidSystem, neighbor_system) = system.viscosity +@inline viscosity_model(system::FluidSystem, neighbor_system) = neighbor_system.viscosity @inline viscosity_model(system::FluidSystem, neighbor_system::BoundarySystem) = neighbor_system.boundary_model.viscosity function compute_density!(system, u, u_ode, semi, ::ContinuityDensity) diff --git a/src/schemes/solid/total_lagrangian_sph/system.jl b/src/schemes/solid/total_lagrangian_sph/system.jl index 003ae16a6..8508d76b8 100644 --- a/src/schemes/solid/total_lagrangian_sph/system.jl +++ b/src/schemes/solid/total_lagrangian_sph/system.jl @@ -431,5 +431,5 @@ function cauchy_stress(system::TotalLagrangianSPHSystem) return cauchy_stress_tensors end -@inline viscosity_model(system::TotalLagrangianSPHSystem, neighbor_system) = system.boundary_model.viscosity +@inline viscosity_model(system::TotalLagrangianSPHSystem, neighbor_system) = neighbor_system.viscosity @inline viscosity_model(system::FluidSystem, neighbor_system::TotalLagrangianSPHSystem) = neighbor_system.boundary_model.viscosity