|
MFC
Exascale flow solver
|
Real fields of a bubble MPI slot, as (names, indices, count) in pack order. Used by both pack and unpack routines to ensure. More...
Functions/Subroutines | |
| impure subroutine | s_initialize_bubbles_el_module (q_cons_vf, bc_type, rows, ids, n_loc) |
| Initialize the Lagrangian subgrid bubble solver with this rank's n_loc bubbles from rows (input file, with global IDs ids, or restart). | |
| impure subroutine | s_load_bubbles (q_cons_vf, bc_type, rows, ids, n_loc) |
| Store this rank's n_loc bubbles: on a fresh start rows hold the input-file columns with global IDs ids, on a restart the restart-file columns. | |
| impure subroutine | s_add_bubbles (inputbubble, q_cons_vf, bub_id) |
| Add a new bubble from input data for a fresh start. | |
| impure subroutine | s_restart_bubbles (io_data, n_loc) |
| Store this rank's n_loc bubbles from the restart file columns io_data. | |
| subroutine | s_compute_bubble_el_dynamics (q_prim_vf, bc_type) |
| Contains the bubble dynamics subroutines. | |
| subroutine | s_compute_bubbles_el_source (q_cons_vf, q_prim_vf, rhs_vf) |
| Compute the Lagrangian bubble source terms and add them to the RHS. | |
| subroutine | s_smear_voidfraction (bc_type) |
| Smear the bubble effects onto the Eulerian grid. | |
| subroutine | s_get_pinf (bub_id, q_prim_vf, ptype, f_pinfl, cell, preterm1, term2, romega) |
| Compute the bubble driving pressure p_inf. | |
| impure subroutine | s_update_lagrange_tdv_rk (q_prim_vf, bc_type, stage, coef) |
| Advance the bubbles by one TVD RK stage with the stage coefficients coef (a row of rk_coef) and apply the boundaries. The last stage commits the step and updates the radius statistics. | |
| impure subroutine | s_enforce_el_bubbles_boundary_conditions (q_prim_vf) |
| Hand bubbles over between ranks, apply the domain boundaries and remove bubbles that left the liquid. | |
| impure subroutine | s_copy_bubble_time_level (dest, src) |
| Copy time level src into dest (1: committed u^n, 2: stage value). | |
| impure subroutine | s_sync_bubbles_for_save () |
| Bring the bubble state and void fraction to the host for a save, aborting on a negative or NaN radius. | |
| impure subroutine | s_lag_cloud_bbox_local (pmin, pmax) |
| Rank-local bounding box of Lagrangian bubble positions; pmin > pmax when the rank holds none. | |
| subroutine | s_calculate_lag_bubble_stats () |
| Compute the maximum and minimum radius of each bubble. | |
| impure subroutine | s_mpi_sendrecv_lag_bubbles () |
| Send the bubbles on the transfer list to their new ranks and append the bubbles received from the neighbors (host data). | |
| impure subroutine | s_pack_lag_bubble (k, q) |
| Pack bubble k into MPI send slot q, in the field order of s_unpack_lag_bubble. | |
| impure subroutine | s_unpack_lag_bubble (k, q) |
| Unpack bubble k from MPI receive slot q, in the field order of s_pack_lag_bubble. | |
| impure subroutine | s_copy_lag_bubble (dest, src) |
| Copy a lag bubble from a src index to a destination index. | |
| impure subroutine | s_finalize_lagrangian_solver () |
Variables | |
| integer, dimension(:,:), allocatable | lag_id |
| Global and local IDs. | |
| real(wp), dimension(:), allocatable | bub_r0 |
| Initial bubble radius. | |
| real(wp), dimension(:), allocatable | rmax_stats |
| Maximum radius. | |
| real(wp), dimension(:), allocatable | rmin_stats |
| Minimum radius. | |
| real(wp), dimension(:), allocatable | gas_mg |
| Bubble's gas mass. | |
| real(wp), dimension(:), allocatable | gas_betat |
| heatflux model (Preston et al., 2007) | |
| real(wp), dimension(:), allocatable | gas_betac |
| massflux model (Preston et al., 2007) | |
| real(wp), dimension(:), allocatable | bub_dphidt |
| subgrid velocity potential (Maeda & Colonius, 2018) | |
| real(wp), dimension(:,:), allocatable | gas_p |
| Pressure in the bubble. | |
| real(wp), dimension(:,:), allocatable | gas_mv |
| Vapor mass in the bubble. | |
| real(wp), dimension(:,:), allocatable | intfc_rad |
| Bubble radius. | |
| real(wp), dimension(:,:), allocatable | intfc_vel |
| Velocity of the bubble interface. | |
| real(wp), dimension(:,:,:), allocatable | mtn_pos |
| Bubble's position. | |
| real(wp), dimension(:,:,:), allocatable | mtn_posprev |
| Bubble's previous position. | |
| real(wp), dimension(:,:,:), allocatable | mtn_vel |
| Bubble's velocity. | |
| real(wp), dimension(:,:,:), allocatable | mtn_s |
| Bubble's computational cell position in real format. | |
| real(wp), dimension(:), allocatable | intfc_draddt |
| Time derivative of bubble's radius. | |
| real(wp), dimension(:), allocatable | intfc_dveldt |
| Time derivative of bubble's interface velocity. | |
| real(wp), dimension(:), allocatable | gas_dpdt |
| Time derivative of gas pressure. | |
| real(wp), dimension(:), allocatable | gas_dmvdt |
| Time derivative of the vapor mass in the bubble. | |
| real(wp), dimension(:,:), allocatable | mtn_dposdt |
| Time derivative of the bubble's position. | |
| real(wp), dimension(:,:), allocatable | mtn_dveldt |
| Time derivative of the bubble's velocity. | |
| real(wp) | rmax_glb |
| real(wp) | rmin_glb |
| Maximum and minimum bubbe size in the local domain. | |
| type(scalar_field), dimension(:), allocatable | q_beta |
| Projection of the Lagrangian bubbles in the Eulerian framework. | |
| type(scalar_field), dimension(:), allocatable | kahan_comp |
| Kahan compensation for q_beta accumulation. | |
| integer, dimension(:), allocatable | keep_bubble |
| integer, dimension(:,:), allocatable | wrap_bubble_loc |
| Periodic crossing per direction: -1 beg, 1 end, 0 none. | |
Real fields of a bubble MPI slot, as (names, indices, count) in pack order. Used by both pack and unpack routines to ensure.
Tracks Lagrangian bubbles and couples their dynamics to the Eulerian flow via volume averaging
| impure subroutine m_bubbles_el::s_add_bubbles | ( | real(wp), dimension(8), intent(in) | inputbubble, |
| type(scalar_field), dimension(sys_size), intent(in) | q_cons_vf, | ||
| integer, intent(in) | bub_id ) |
Add a new bubble from input data for a fresh start.
Definition at line 2101 of file m_bubbles_EL.fpp.f90.
| subroutine m_bubbles_el::s_calculate_lag_bubble_stats |
Compute the maximum and minimum radius of each bubble.
Definition at line 3522 of file m_bubbles_EL.fpp.f90.
| subroutine m_bubbles_el::s_compute_bubble_el_dynamics | ( | type(scalar_field), dimension(sys_size), intent(inout) | q_prim_vf, |
| type(integer_field), dimension(1:num_dims,1:2), intent(in) | bc_type ) |
Contains the bubble dynamics subroutines.
Host copies; amdflang reads Re_size stale cross-TU
Definition at line 2219 of file m_bubbles_EL.fpp.f90.
| subroutine m_bubbles_el::s_compute_bubbles_el_source | ( | type(scalar_field), dimension(sys_size), intent(inout) | q_cons_vf, |
| type(scalar_field), dimension(sys_size), intent(inout) | q_prim_vf, | ||
| type(scalar_field), dimension(sys_size), intent(inout) | rhs_vf ) |
Compute the Lagrangian bubble source terms and add them to the RHS.
Definition at line 2459 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_copy_bubble_time_level | ( | integer, intent(in) | dest, |
| integer, intent(in) | src ) |
Copy time level src into dest (1: committed u^n, 2: stage value).
Definition at line 3374 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_copy_lag_bubble | ( | integer, intent(in) | dest, |
| integer, intent(in) | src ) |
Copy a lag bubble from a src index to a destination index.
Definition at line 3724 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_enforce_el_bubbles_boundary_conditions | ( | type(scalar_field), dimension(sys_size), intent(in) | q_prim_vf | ) |
Hand bubbles over between ranks, apply the domain boundaries and remove bubbles that left the liquid.
Definition at line 3184 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_finalize_lagrangian_solver |
Definition at line 3748 of file m_bubbles_EL.fpp.f90.
| subroutine m_bubbles_el::s_get_pinf | ( | integer, intent(in) | bub_id, |
| type(scalar_field), dimension(sys_size), intent(in) | q_prim_vf, | ||
| integer, intent(in) | ptype, | ||
| real(wp), intent(out) | f_pinfl, | ||
| integer, dimension(3), intent(out) | cell, | ||
| real(wp), intent(out), optional | preterm1, | ||
| real(wp), intent(out), optional | term2, | ||
| real(wp), intent(out), optional | romega ) |
Compute the bubble driving pressure p_inf.
Getting p_cell in terms of only the current cell by interpolation
Obtain bilinear interpolation coefficients, based on the current location of the bubble.
Perform bilinear interpolation
Obtain biquadratic interpolation coefficients, based on the current location of the bubble.
Perform biquadratic interpolation
Obtaining the cell volume
Update values
Definition at line 2825 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_initialize_bubbles_el_module | ( | type(scalar_field), dimension(sys_size), intent(inout) | q_cons_vf, |
| type(integer_field), dimension(1:num_dims,1:2), intent(in) | bc_type, | ||
| real(wp), dimension(:,:), intent(in) | rows, | ||
| integer, dimension(:), intent(in) | ids, | ||
| integer, intent(in) | n_loc ) |
Initialize the Lagrangian subgrid bubble solver with this rank's n_loc bubbles from rows (input file, with global IDs ids, or restart).
Definition at line 535 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_lag_cloud_bbox_local | ( | real(wp), dimension(3), intent(out) | pmin, |
| real(wp), dimension(3), intent(out) | pmax ) |
Rank-local bounding box of Lagrangian bubble positions; pmin > pmax when the rank holds none.
Definition at line 3468 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_load_bubbles | ( | type(scalar_field), dimension(sys_size), intent(inout) | q_cons_vf, |
| type(integer_field), dimension(1:num_dims,1:2), intent(in) | bc_type, | ||
| real(wp), dimension(:,:), intent(in) | rows, | ||
| integer, dimension(:), intent(in) | ids, | ||
| integer, intent(in) | n_loc ) |
Store this rank's n_loc bubbles: on a fresh start rows hold the input-file columns with global IDs ids, on a restart the restart-file columns.
Definition at line 2015 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_mpi_sendrecv_lag_bubbles |
Send the bubbles on the transfer list to their new ranks and append the bubbles received from the neighbors (host data).
Definition at line 3572 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_pack_lag_bubble | ( | integer, intent(in) | k, |
| integer, intent(in) | q ) |
Pack bubble k into MPI send slot q, in the field order of s_unpack_lag_bubble.
Definition at line 3592 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_restart_bubbles | ( | real(wp), dimension(:,:), intent(in) | io_data, |
| integer, intent(in) | n_loc ) |
Store this rank's n_loc bubbles from the restart file columns io_data.
Definition at line 2190 of file m_bubbles_EL.fpp.f90.
| subroutine m_bubbles_el::s_smear_voidfraction | ( | type(integer_field), dimension(1:num_dims,1:2), intent(in) | bc_type | ) |
Smear the bubble effects onto the Eulerian grid.
Definition at line 2711 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_sync_bubbles_for_save |
Bring the bubble state and void fraction to the host for a save, aborting on a negative or NaN radius.
Definition at line 3430 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_unpack_lag_bubble | ( | integer, intent(in) | k, |
| integer, intent(in) | q ) |
Unpack bubble k from MPI receive slot q, in the field order of s_pack_lag_bubble.
Definition at line 3658 of file m_bubbles_EL.fpp.f90.
| impure subroutine m_bubbles_el::s_update_lagrange_tdv_rk | ( | type(scalar_field), dimension(sys_size), intent(in) | q_prim_vf, |
| type(integer_field), dimension(1:num_dims,1:2), intent(in) | bc_type, | ||
| integer, intent(in) | stage, | ||
| real(wp), dimension(4), intent(in) | coef ) |
Advance the bubbles by one TVD RK stage with the stage coefficients coef (a row of rk_coef) and apply the boundaries. The last stage commits the step and updates the radius statistics.
Definition at line 3117 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::bub_dphidt |
subgrid velocity potential (Maeda & Colonius, 2018)
Definition at line 418 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::bub_r0 |
Initial bubble radius.
Definition at line 399 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::gas_betac |
massflux model (Preston et al., 2007)
Definition at line 417 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::gas_betat |
heatflux model (Preston et al., 2007)
Definition at line 416 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::gas_dmvdt |
Time derivative of the vapor mass in the bubble.
Definition at line 470 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::gas_dpdt |
Time derivative of gas pressure.
Definition at line 469 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::gas_mg |
Bubble's gas mass.
Definition at line 415 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::gas_mv |
Vapor mass in the bubble.
Definition at line 434 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::gas_p |
Pressure in the bubble.
Definition at line 433 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::intfc_draddt |
Time derivative of bubble's radius.
Definition at line 467 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::intfc_dveldt |
Time derivative of bubble's interface velocity.
Definition at line 468 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::intfc_rad |
Bubble radius.
Definition at line 435 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::intfc_vel |
Velocity of the bubble interface.
Definition at line 436 of file m_bubbles_EL.fpp.f90.
| type(scalar_field), dimension(:), allocatable m_bubbles_el::kahan_comp |
Kahan compensation for q_beta accumulation.
Definition at line 489 of file m_bubbles_EL.fpp.f90.
| integer, dimension(:), allocatable m_bubbles_el::keep_bubble |
Definition at line 504 of file m_bubbles_EL.fpp.f90.
| integer, dimension(:,:), allocatable m_bubbles_el::lag_id |
Global and local IDs.
Definition at line 398 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::mtn_dposdt |
Time derivative of the bubble's position.
Definition at line 471 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:), allocatable m_bubbles_el::mtn_dveldt |
Time derivative of the bubble's velocity.
Definition at line 472 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:,:), allocatable m_bubbles_el::mtn_pos |
Bubble's position.
Definition at line 450 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:,:), allocatable m_bubbles_el::mtn_posprev |
Bubble's previous position.
Definition at line 451 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:,:), allocatable m_bubbles_el::mtn_s |
Bubble's computational cell position in real format.
Definition at line 453 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:,:,:), allocatable m_bubbles_el::mtn_vel |
Bubble's velocity.
Definition at line 452 of file m_bubbles_EL.fpp.f90.
| type(scalar_field), dimension(:), allocatable m_bubbles_el::q_beta |
Projection of the Lagrangian bubbles in the Eulerian framework.
Definition at line 488 of file m_bubbles_EL.fpp.f90.
| real(wp) m_bubbles_el::rmax_glb |
Definition at line 486 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::rmax_stats |
Maximum radius.
Definition at line 400 of file m_bubbles_EL.fpp.f90.
| real(wp) m_bubbles_el::rmin_glb |
Maximum and minimum bubbe size in the local domain.
Definition at line 486 of file m_bubbles_EL.fpp.f90.
| real(wp), dimension(:), allocatable m_bubbles_el::rmin_stats |
Minimum radius.
Definition at line 401 of file m_bubbles_EL.fpp.f90.
| integer, dimension(:,:), allocatable m_bubbles_el::wrap_bubble_loc |
Periodic crossing per direction: -1 beg, 1 end, 0 none.
Definition at line 505 of file m_bubbles_EL.fpp.f90.