|
MFC
Exascale flow solver
|
Contains module m_viscous. More...
Go to the source code of this file.
Modules | |
| module | m_viscous |
| Computes viscous stress tensors and diffusive flux contributions for the Navier–Stokes equations. | |
Functions/Subroutines | |
| impure subroutine, public | m_viscous::s_initialize_viscous_module |
| Initialize the viscous module. | |
| subroutine | m_viscous::s_compute_axis_inv_re (grad_x_vf, grad_y_vf, grad_z_vf, alpha_visc, j, k, l, re_visc) |
| Compute viscous stress tensor near cylindrical axis, avoiding 1/r singularity at y_cb(-1)=0 Inverse Reynolds numbers of the mixture at one cell. Non-Newtonian fluids need the local shear rate, which comes from the velocity gradients; Newtonian ones reduce to the volume-fraction-weighted harmonic mean. | |
| subroutine, public | m_viscous::s_compute_viscous_stress_cylindrical_boundary (q_prim_vf, grad_x_vf, grad_y_vf, grad_z_vf, tau_re_vf, ix, iy, iz) |
| subroutine, public | m_viscous::s_get_viscous (ql_prim_rsx_vf, dql_prim_dx_n, dql_prim_dy_n, dql_prim_dz_n, ql_prim, qr_prim_rsx_vf, dqr_prim_dx_n, dqr_prim_dy_n, dqr_prim_dz_n, qr_prim, q_prim_qp, dq_prim_dx_qp, dq_prim_dy_qp, dq_prim_dz_qp, ix, iy, iz) |
| Computes viscous terms. | |
| subroutine | m_viscous::s_reconstruct_cell_boundary_values_visc (v_vf, vl_x, vr_x, norm_dir, vl_prim_vf, vr_prim_vf, ix, iy, iz) |
| Reconstruct left and right cell-boundary values of viscous primitive variables. | |
| subroutine, public | m_viscous::s_reconstruct_cell_boundary_values_visc_deriv (v_vf, vl_x, vr_x, norm_dir, vl_prim_vf, vr_prim_vf, ix, iy, iz) |
| Reconstruct left and right cell-boundary values of viscous primitive variable derivatives. | |
| subroutine | m_viscous::s_apply_scalar_divergence_theorem (vl_vf, vr_vf, dv_ds_vf, norm_dir, ix, iy, iz, iv_in, dl, dim, buff_size_in) |
| Compute cell-average spatial derivatives via the scalar divergence theorem. | |
| subroutine | m_viscous::s_compute_fd_gradient (var, grad_x, grad_y, grad_z) |
| Computes the scalar gradient fields via finite differences. | |
| subroutine, public | m_viscous::s_compact_ib_viscous_gradients (q_prim_vf, markers, id, dql_x, dqr_x, dql_y, dqr_y, dql_z, dqr_z) |
| With weno_Re_flux next to an immersed body, replace the WENO velocity gradient on the faces of direction id within ib_visc_band cells of a body cell by the compact one of weno_Re_flux = F: the normal difference across the face, and the mean of the two cells' central tangential differences. Ghost values extend the flow only a layer or two deep (the mirror leaves a kink at the wall), and the gradient stencil of weno_Re_flux, about five cells wide, carries that into the fluid faces next to the wall. The face j+1/2 is read by the viscous flux from dqR(j) and dqL(j+1), so both are set. | |
| subroutine | m_viscous::s_compact_ib_viscous_gradient (q, markers, id, dql_x, dqr_x, dql_y, dqr_y, dql_z, dqr_z) |
| One velocity component of s_compact_ib_viscous_gradients. The differences are written out per direction so that a coordinate array that does not exist (z_cc in 2D) is never touched. | |
| subroutine, public | m_viscous::s_compact_normal_viscous_gradients (q_prim_vf, id, dql_x, dqr_x, dql_y, dqr_y, dql_z, dqr_z) |
| weno_Re_flux_compact: set the face-normal velocity gradient (direction id) on every face to the difference across the face. The WENO chain (face values, cell gradient, reconstructed gradient, face mean) has zero damping at the checkerboard wavenumber, which leaves a no-slip wall's odd-mirror forcing undamped. The face j+1/2 is read by the viscous flux from dqR(j) and dqL(j+1), so both are set. Tangential gradients are unchanged. | |
| subroutine | m_viscous::s_compact_normal_viscous_gradient (q, id, cc, dql, dqr) |
| One velocity component of s_compact_normal_viscous_gradients; cc holds the cell centres along id. | |
| impure subroutine, public | m_viscous::s_finalize_viscous_module () |
| Finalize the viscous module. | |
Variables | |
| type(int_bounds_info) | m_viscous::iv |
| type(int_bounds_info) | m_viscous::is1_viscous |
| type(int_bounds_info) | m_viscous::is2_viscous |
| type(int_bounds_info) | m_viscous::is3_viscous |
| real(wp), dimension(:,:), allocatable | m_viscous::res_viscous |
| integer, parameter | m_viscous::ib_visc_band = 2 |
| Faces within this many cells of an immersed-boundary cell take the compact velocity gradient. | |
Contains module m_viscous.
Definition in file m_viscous.fpp.f90.