MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_particles_el_kernels Module Reference

This module contains kernel functions used to map the effect of the lagrangian particles in the Eulerian framework. More...

Functions/Subroutines

subroutine s_compute_gaussian_contribution (pos, cell, func_s)
 Sum of one particle's Gaussian kernel over its stencil, func_s = sum(G V), used to normalize the projection.
subroutine s_gaussian_atomic (rad, vel, pos, force_p, gausum, cell, updatedvar, ind_start, ind_end)
 Add one particle's contribution to the projected fields ind_start:ind_end with atomic updates.
subroutine s_apply_gaussian_anisotropic (center, cellaux, nodecoord, func)
 Anisotropic Gaussian kernel at nodecoord for a particle at center: each direction is scaled by the local cell width.
subroutine s_interp_fluid_properties (pos, cell, q_prim_vf, wx, wy, wz, fluid_vel, fluid_rho, fluid_pres)
 Fluid velocity, density and pressure at the particle by barycentric interpolation.
subroutine s_get_particle_force (pos, rad, vel_p, mu_fluid, gamm, seed, fqsfluct, advance_fluct, cell, q_particles, fieldvars, rhs_old, wx, wy, wz, force, rmass_add, new_seed, new_fqsfluct, fluid_vel, fluid_rho, cson, force_status, re_p, mach_p)
 Force on one particle from quasi-steady drag, pressure gradient, added mass and drag fluctuations, and the added mass rmass_add that joins the particle inertia. The fluctuating force advances by a full time step only when advance_fluct (first RK stage); the other stages reuse it.
subroutine s_compute_qs_fluctuations (vel_p, fluid_vel, fluid_rho, cson, gas_mu, particle_diam, vol_frac, vmag, vel_p_mean, vel2_p_mean, seed, fqs_fluct_old, dt_loc, fqs_fluct_new)
 Stochastic quasi-steady force fluctuations: an Ornstein-Uhlenbeck process for the drag and lift fluctuations, driven by the granular temperature of the projected particle velocity moments (fluctuations assumed uncorrelated), advanced over dt_loc with its exact discretization. A. N. Osnes, M. Vartdal, M. Khalloufi, J. Capecelatro, and S. Balachandar, Comprehensive quasi-steady force correlations for compressible flow through random particle suspensions, Int. J. Multiphase Flow 165, 104485 (2023). A. M. Lattanzi, V. Tavanashad, S. Subramaniam, and J. Capecelatro, Stochastic model for the hydrodynamic force in Euler- Lagrange simulations of particle-laden flows, Phys. Rev. Fluids 7, 014301 (2022).
real(wp) function f_interp_barycentric (pos, cell, field_vf, field_index, wx, wy, wz)
 Barycentric Lagrange interpolation of field_vf(field_index) to pos with the precomputed weights, limited to the range of the stencil values so it cannot overshoot near discontinuities (e.g. a negative density behind a shock).
real(wp) function f_qs_parmar (rho, cson, mu_fluid, gamma, vmag, dp, volume_fraction)
 Quasi-steady drag coefficient beta (force = -beta*(u_p - u_f)) with Reynolds- and Mach-number corrections, and a volume- fraction correction for dilute random arrays. M. Parmar, A. Haselbacher, and S. Balachandar, Improved drag correlation for spheres and application to shock-tube experiments, AIAA J. 48(6), 1273-1276 (2010). A. S. Sangani, D. Z. Zhang, and A. Prosperetti, The added mass, Basset, and viscous drag coefficients in nondilute bubbly liquids undergoing small-amplitude oscillatory motion, Phys. Fluids A 3, 2955 (1991).
real(wp) function f_quadratic_lagrange_interpolation (x, c, fm)
 Quadratic Lagrange interpolant through (C(i), fM(i)), evaluated at x.
real(wp) function f_qs_osnes (rho, cson, mu_fluid, gamma, vmag, dp, volume_fraction)
 Quasi-steady drag coefficient beta as a function of Re, Ma and volume fraction. A. N. Osnes, M. Vartdal, M. Khalloufi, J. Capecelatro, and S. Balachandar, Comprehensive quasi-steady force correlations for compressible flow through random particle suspensions, Int. J. Multiphase Flow 165, 104485 (2023). E. Loth, J. T. Daspit, M. Jeong, T. Nagata, and T. Nonomura, Supersonic and hypersonic drag coefficients for a sphere, AIAA J. 59(8), 3261-3274 (2021). The rarefied (Re < 45) branch is reformulated to avoid the singularity as Ma -> 0, and the compression branch uses coefficients that keep J_M, C_M, G_M and H_M continuous across their switch points, as given in the Appendix of T. Daoud, T. Jackson, and S. Balachandar, A careful examination of closure models in Euler-Lagrange simulations of compressible multiphase flow in a planar shock particle curtain problem, Int. J. Multiphase Flow (2026), doi:10.1016/j.ijmultiphaseflow.2026.105740.
real(wp) function f_qs_gidaspow (rho, cson, mu_fluid, gamma, vmag, dp, volume_fraction)
 Quasi-steady drag coefficient beta from the Gidaspow model, converted from per cell volume to per particle with the particle volume fraction and volume. D. Gidaspow, Multiphase Flow and Fluidization, Academic Press (1994).

Detailed Description

This module contains kernel functions used to map the effect of the lagrangian particles in the Eulerian framework.

Function/Subroutine Documentation

◆ f_interp_barycentric()

real(wp) function m_particles_el_kernels::f_interp_barycentric ( real(wp), dimension(3), intent(in) pos,
integer, dimension(3), intent(in) cell,
type(scalar_field), dimension(:), intent(in) field_vf,
integer, intent(in) field_index,
type(scalar_field), dimension(:), intent(in) wx,
type(scalar_field), dimension(:), intent(in) wy,
type(scalar_field), dimension(:), intent(in) wz )

Barycentric Lagrange interpolation of field_vf(field_index) to pos with the precomputed weights, limited to the range of the stencil values so it cannot overshoot near discontinuities (e.g. a negative density behind a shock).

Definition at line 1035 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_qs_gidaspow()

real(wp) function m_particles_el_kernels::f_qs_gidaspow ( real(wp), intent(in) rho,
real(wp), intent(in) cson,
real(wp), intent(in) mu_fluid,
real(wp), intent(in) gamma,
real(wp), intent(in) vmag,
real(wp), intent(in) dp,
real(wp), intent(in) volume_fraction )

Quasi-steady drag coefficient beta from the Gidaspow model, converted from per cell volume to per particle with the particle volume fraction and volume. D. Gidaspow, Multiphase Flow and Fluidization, Academic Press (1994).

Definition at line 1344 of file m_particles_EL_kernels.fpp.f90.

Here is the caller graph for this function:

◆ f_qs_osnes()

real(wp) function m_particles_el_kernels::f_qs_osnes ( real(wp), intent(in) rho,
real(wp), intent(in) cson,
real(wp), intent(in) mu_fluid,
real(wp), intent(in) gamma,
real(wp), intent(in) vmag,
real(wp), intent(in) dp,
real(wp), intent(in) volume_fraction )

Quasi-steady drag coefficient beta as a function of Re, Ma and volume fraction. A. N. Osnes, M. Vartdal, M. Khalloufi, J. Capecelatro, and S. Balachandar, Comprehensive quasi-steady force correlations for compressible flow through random particle suspensions, Int. J. Multiphase Flow 165, 104485 (2023). E. Loth, J. T. Daspit, M. Jeong, T. Nagata, and T. Nonomura, Supersonic and hypersonic drag coefficients for a sphere, AIAA J. 59(8), 3261-3274 (2021). The rarefied (Re < 45) branch is reformulated to avoid the singularity as Ma -> 0, and the compression branch uses coefficients that keep J_M, C_M, G_M and H_M continuous across their switch points, as given in the Appendix of T. Daoud, T. Jackson, and S. Balachandar, A careful examination of closure models in Euler-Lagrange simulations of compressible multiphase flow in a planar shock particle curtain problem, Int. J. Multiphase Flow (2026), doi:10.1016/j.ijmultiphaseflow.2026.105740.

Definition at line 1260 of file m_particles_EL_kernels.fpp.f90.

Here is the caller graph for this function:

◆ f_qs_parmar()

real(wp) function m_particles_el_kernels::f_qs_parmar ( real(wp), intent(in) rho,
real(wp), intent(in) cson,
real(wp), intent(in) mu_fluid,
real(wp), intent(in) gamma,
real(wp), intent(in) vmag,
real(wp), intent(in) dp,
real(wp), intent(in) volume_fraction )

Quasi-steady drag coefficient beta (force = -beta*(u_p - u_f)) with Reynolds- and Mach-number corrections, and a volume- fraction correction for dilute random arrays. M. Parmar, A. Haselbacher, and S. Balachandar, Improved drag correlation for spheres and application to shock-tube experiments, AIAA J. 48(6), 1273-1276 (2010). A. S. Sangani, D. Z. Zhang, and A. Prosperetti, The added mass, Basset, and viscous drag coefficients in nondilute bubbly liquids undergoing small-amplitude oscillatory motion, Phys. Fluids A 3, 2955 (1991).

Definition at line 1157 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_quadratic_lagrange_interpolation()

real(wp) function m_particles_el_kernels::f_quadratic_lagrange_interpolation ( real(wp), intent(in) x,
real(wp), dimension(3), intent(in) c,
real(wp), dimension(3), intent(in) fm )

Quadratic Lagrange interpolant through (C(i), fM(i)), evaluated at x.

Definition at line 1225 of file m_particles_EL_kernels.fpp.f90.

Here is the caller graph for this function:

◆ s_apply_gaussian_anisotropic()

subroutine m_particles_el_kernels::s_apply_gaussian_anisotropic ( real(wp), dimension(3), intent(in) center,
integer, dimension(3), intent(in) cellaux,
real(wp), dimension(3), intent(in) nodecoord,
real(wp), intent(out) func )

Anisotropic Gaussian kernel at nodecoord for a particle at center: each direction is scaled by the local cell width.

Definition at line 610 of file m_particles_EL_kernels.fpp.f90.

Here is the caller graph for this function:

◆ s_compute_gaussian_contribution()

subroutine m_particles_el_kernels::s_compute_gaussian_contribution ( real(wp), dimension(3), intent(in) pos,
integer, dimension(3), intent(in) cell,
real(wp), intent(out) func_s )

Sum of one particle's Gaussian kernel over its stencil, func_s = sum(G V), used to normalize the projection.

Definition at line 382 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:

◆ s_compute_qs_fluctuations()

subroutine m_particles_el_kernels::s_compute_qs_fluctuations ( real(wp), dimension(3), intent(in) vel_p,
real(wp), dimension(3), intent(in) fluid_vel,
real(wp), intent(in) fluid_rho,
real(wp), intent(in) cson,
real(wp), intent(in) gas_mu,
real(wp), intent(in) particle_diam,
real(wp), intent(in) vol_frac,
real(wp), intent(in) vmag,
real(wp), dimension(3), intent(in) vel_p_mean,
real(wp), dimension(3), intent(in) vel2_p_mean,
integer(seed_kind), intent(inout) seed,
real(wp), dimension(3), intent(in) fqs_fluct_old,
real(wp), intent(in) dt_loc,
real(wp), dimension(3), intent(out) fqs_fluct_new )

Stochastic quasi-steady force fluctuations: an Ornstein-Uhlenbeck process for the drag and lift fluctuations, driven by the granular temperature of the projected particle velocity moments (fluctuations assumed uncorrelated), advanced over dt_loc with its exact discretization. A. N. Osnes, M. Vartdal, M. Khalloufi, J. Capecelatro, and S. Balachandar, Comprehensive quasi-steady force correlations for compressible flow through random particle suspensions, Int. J. Multiphase Flow 165, 104485 (2023). A. M. Lattanzi, V. Tavanashad, S. Subramaniam, and J. Capecelatro, Stochastic model for the hydrodynamic force in Euler- Lagrange simulations of particle-laden flows, Phys. Rev. Fluids 7, 014301 (2022).

Definition at line 903 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_gaussian_atomic()

subroutine m_particles_el_kernels::s_gaussian_atomic ( real(wp), intent(in) rad,
real(wp), dimension(3), intent(in) vel,
real(wp), dimension(3), intent(in) pos,
real(wp), dimension(3), intent(in) force_p,
real(wp), intent(in) gausum,
integer, dimension(3), intent(in) cell,
type(scalar_field), dimension(:), intent(inout) updatedvar,
integer, intent(in) ind_start,
integer, intent(in) ind_end )

Add one particle's contribution to the projected fields ind_start:ind_end with atomic updates.

Definition at line 474 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:

◆ s_get_particle_force()

subroutine m_particles_el_kernels::s_get_particle_force ( real(wp), dimension(3), intent(in) pos,
real(wp), intent(in) rad,
real(wp), dimension(3), intent(in) vel_p,
real(wp), intent(in) mu_fluid,
real(wp), intent(in) gamm,
integer(seed_kind), intent(in) seed,
real(wp), dimension(3), intent(in) fqsfluct,
logical, intent(in) advance_fluct,
integer, dimension(3), intent(in) cell,
type(scalar_field), dimension(:), intent(in) q_particles,
type(scalar_field), dimension(:), intent(in) fieldvars,
type(scalar_field), dimension(:), intent(in) rhs_old,
type(scalar_field), dimension(:), intent(in) wx,
type(scalar_field), dimension(:), intent(in) wy,
type(scalar_field), dimension(:), intent(in) wz,
real(wp), dimension(3), intent(out) force,
real(wp), intent(out) rmass_add,
integer(seed_kind), intent(out) new_seed,
real(wp), dimension(3), intent(out) new_fqsfluct,
real(wp), dimension(3), intent(in) fluid_vel,
real(wp), intent(in) fluid_rho,
real(wp), intent(in) cson,
integer, intent(out) force_status,
real(wp), intent(out) re_p,
real(wp), intent(out) mach_p )

Force on one particle from quasi-steady drag, pressure gradient, added mass and drag fluctuations, and the added mass rmass_add that joins the particle inertia. The fluctuating force advances by a full time step only when advance_fluct (first RK stage); the other stages reuse it.

Parameters
[out]force_status0, or the first non-finite term (see force_term_names)
[out]mach_pParticle Reynolds and Mach numbers, for diagnostics

Definition at line 710 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function:

◆ s_interp_fluid_properties()

subroutine m_particles_el_kernels::s_interp_fluid_properties ( real(wp), dimension(3), intent(in) pos,
integer, dimension(3), intent(in) cell,
type(scalar_field), dimension(sys_size), intent(in) q_prim_vf,
type(scalar_field), dimension(:), intent(in) wx,
type(scalar_field), dimension(:), intent(in) wy,
type(scalar_field), dimension(:), intent(in) wz,
real(wp), dimension(3), intent(out) fluid_vel,
real(wp), intent(out) fluid_rho,
real(wp), intent(out) fluid_pres )

Fluid velocity, density and pressure at the particle by barycentric interpolation.

Definition at line 666 of file m_particles_EL_kernels.fpp.f90.

Here is the call graph for this function: