Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/schemes/fluid/pressure_acceleration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ end
return -volume_term * pressure_tilde * W_a
end

# Same as `pressure_acceleration_continuity_density`, but using the minus formulation
# when pressures are negative to avoid tensile instability.
# See Lyu et al. (2021). https://doi.org/10.1016/j.apor.2021.102938
Comment thread
svchb marked this conversation as resolved.
Outdated
@inline function tensile_instability_correction(m_a, m_b, rho_a, rho_b, p_a, p_b, W_a)
p = p_b + abs(p_a)
return -m_b * p / (rho_a * rho_b) * W_a
end

Comment thread
efaulhaber marked this conversation as resolved.
Outdated
function choose_pressure_acceleration_formulation(pressure_acceleration,
density_calculator, NDIMS, ELTYPE,
correction)
Expand Down
Loading