|
MFC
Exascale flow solver
|
Contains module m_euler_lagrange. More...
Go to the source code of this file.
Modules | |
| module | m_euler_lagrange |
| Utilities shared by the Euler-Lagrange bubble and solid-particle solvers: cell location, domain and cell-volume helpers, boundary handling, RK stages and Fornberg gradients. Their file I/O is in m_data_output (writes) and m_start_up (reads). | |
Functions/Subroutines | |
| subroutine, public | m_euler_lagrange::s_get_lag_restart_point (save_count, qtime) |
| Save index and time the run starts from: zero on a fresh start, the restart point otherwise. | |
| impure subroutine, public | m_euler_lagrange::s_set_lag_comm_coords () |
| Physical coordinates for triggering MPI communication of a Lagrangian entity. | |
| impure subroutine, public | m_euler_lagrange::s_count_lag_entities_glb (n_loc, n_glb, path) |
| Sum the local count n_loc over the ranks into n_glb and abort if no entity lies in the domain. | |
| subroutine, public | m_euler_lagrange::s_get_cell (s_cell, get_cell) |
| Convert computational (real) cell coordinates to integer cell indices. | |
| logical function, public | m_euler_lagrange::f_lag_entity_in_physical_domain (pos_part) |
| True if pos lies in this rank's physical domain (ghost cells excluded). | |
| logical function, public | m_euler_lagrange::f_lag_entity_in_wall (cell) |
| True if cell is a ghost cell beyond one of this rank's wall or symmetry boundaries. | |
| impure subroutine, public | m_euler_lagrange::s_initialize_lag_gradient (n_weights) |
| Allocate the Fornberg first-derivative weights for an n_weights-point stencil and compute them on this rank's grid. | |
| impure subroutine, public | m_euler_lagrange::s_finalize_lag_gradient () |
| Deallocate the Fornberg first-derivative weights. | |
| subroutine, public | m_euler_lagrange::s_lag_gradient_dir (q, dq, dir) |
| Derivative of a cell-centered field along dir with the precomputed Fornberg finite-difference weights. | |
| impure subroutine | m_euler_lagrange::s_compute_fornberg_fd_weights (npts) |
| Fornberg first-derivative weights at every cell center in each direction, computed once on the host and copied to the device. | |
| subroutine | m_euler_lagrange::s_fornberg_weights (x0, stencil, npts, m_order, coeffs) |
| Fornberg (1988) finite-difference weights at x0 on the given stencil, for derivatives up to m_order. | |
| real(wp) function, public | m_euler_lagrange::f_lag_rk_stage (u_cur, u_n, rhs, coef) |
| One TVD RK stage in the Shu-Osher form of m_time_steppers, from stage value u_cur, step start u_n and stage RHS rhs. | |
| subroutine, public | m_euler_lagrange::s_apply_lag_entity_domain_bc (dir, pos, pos_prev, offset, keep, wrap_loc) |
| Apply this rank's domain boundary in direction dir to one Lagrangian entity at stage position pos (pos_prev before the stage): clamp it offset inside a wall, flag a periodic crossing in wrap_loc (-1 beg, 1 end, else 0), or clear keep once it leaves the domain. | |
| logical function | m_euler_lagrange::f_is_lag_entity_wall (bc) |
| True for the boundary types a Lagrangian entity cannot cross. | |
| impure subroutine, public | m_euler_lagrange::s_wrap_lag_entities_periodic (n_loc, wrap_loc, pos, pos_prev) |
| Shift the entities flagged by s_apply_lag_entity_domain_bc across the periodic domain, both time levels (host data). | |
| subroutine, public | m_euler_lagrange::s_get_char_vol (cellx, celly, cellz, charwidth, charvol) |
| Volume of cell (cellx, celly, cellz); in planar 2D the cell has depth charwidth. | |
Variables | |
| type(scalar_field), dimension(:), allocatable | m_euler_lagrange::weights_x_grad |
| Fornberg first-derivative weights at each cell center along x, y and z, one field per stencil point. | |
| type(scalar_field), dimension(:), allocatable | m_euler_lagrange::weights_y_grad |
| type(scalar_field), dimension(:), allocatable | m_euler_lagrange::weights_z_grad |
| integer | m_euler_lagrange::nweights_grad |
| Number of stencil points. | |
| real(wp), parameter | m_euler_lagrange::void_stat_min = 5.e-11_wp |
| Lagrangian volume fraction above which a cell counts in the cloud statistics. | |
Contains module m_euler_lagrange.
Definition in file m_euler_lagrange.fpp.f90.