Scrambler
1
|
Module for updating grids by sweeping across the grid. More...
Public Member Functions | |
INTEGER function, public | SweepAdvanceStackSize (n) |
subroutine, public | SweepReadDomainData () |
Read in sweep-specific solver data and use it to initialize the system. | |
subroutine, public | sweepAdvance (Info, dom_range, lComplete, lProfile_opt) |
Advances the grid based on the available solvertime. | |
Private Member Functions | |
subroutine | LoadLevelStencilBuffers (n) |
Calculate upwinded_emf at edge centers using surrounding emf's at face centers and cell centers and transverse velocities at cell centers. | |
subroutine | cons_to_prim_1 (q) |
Transform an array of cells from conservative to primitive form. | |
subroutine | cons_to_prim_2 (q, w) |
Transform an array of cells from conservative to primitive form. | |
subroutine | prim_to_cons_1 (q) |
Transform an array of cells from conservative to primitive form. | |
subroutine | prim_to_cons_2 (w, q) |
Transform an array of cells from primitive to conservative form. | |
REAL(KIND=qPREC) function | calc_flux_x (left, right, flux, lambda_max) |
Calculate fluxes in the x-direction. | |
REAL(KIND=qPREC) function | calc_flux_y (left, right, flux, lambda_max) |
Calculate fluxes in the y-direction. | |
REAL(KIND=qPREC) function | calc_flux_z (left, right, flux, lambda_max) |
Calculate fluxes in the z-direction. | |
pure REAL(KIND=qPREC) function | minmod (x, y) |
Minmod function. | |
subroutine | protect (w) |
Sweeps version of protection of primitive variables. | |
subroutine | protect_all (w) |
Protects a slab of cells. | |
subroutine | Randomize (q) |
Returns a random array. |
Module for updating grids by sweeping across the grid.
Definition at line 48 of file sweep_scheme.f90.
INTEGER function, public SweepAdvanceStackSize | ( | INTEGER | n | ) |
Definition at line 74 of file sweep_scheme.f90.
subroutine, public SweepReadDomainData | ( | ) |
Read in sweep-specific solver data and use it to initialize the system.
Definition at line 90 of file sweep_scheme.f90.
subroutine, public sweepAdvance | ( | TYPE (InfoDef) | Info, |
INTEGER, dimension(3,2) | dom_range, | ||
LOGICAL | lComplete, | ||
LOGICAL, optional | lProfile_opt | ||
) |
Advances the grid based on the available solvertime.
Info | Info structure |
partialOK | Logical optional flag that determins whether partial advances are ok |
Definition at line 300 of file sweep_scheme.f90.
References calc_emf(), calc_final_emf(), calc_final_fluxes(), calc_fluxes(), calc_fluxes_noctu(), calc_tracer_fluxes(), CTU(), HVisc(), Init_prims(), Reconstruct(), store_fixup_fluxes(), SweepAfterStep(), SweepBeforeStep(), update_final(), update_final_fluxes(), update_fluxes(), updateB(), updateB_final(), and updatew2().
subroutine LoadLevelStencilBuffers | ( | INTEGER | n | ) | [private] |
Calculate upwinded_emf at edge centers using surrounding emf's at face centers and cell centers and transverse velocities at cell centers.
ez_fy | z component of emf at y face centers located at +-x |
ez_fx | z component of emf at x face centers located at +-y |
ez_c | z component of emf at +-x +-y cell centers |
vx | x component of velocity at x face centers located at +-y |
vy | y component of velocity at y face centers located at +-x |
Definition at line 3675 of file sweep_scheme.f90.
subroutine cons_to_prim_1 | ( | REAL(KIND=qPrec), dimension(:,:,:), intent(inout) | q | ) | [private] |
Transform an array of cells from conservative to primitive form.
q | array of cells |
Definition at line 3777 of file sweep_scheme.f90.
subroutine cons_to_prim_2 | ( | REAL(KIND=qPrec), dimension(:,:,:), intent(in) | q, |
REAL(KIND=qPrec), dimension(:,:,:), intent(out) | w | ||
) | [private] |
Transform an array of cells from conservative to primitive form.
q | array of cells |
Definition at line 3807 of file sweep_scheme.f90.
subroutine prim_to_cons_1 | ( | REAL(KIND=qPrec), dimension(:,:,:), intent(inout) | q | ) | [private] |
Transform an array of cells from conservative to primitive form.
q | array of cells |
Definition at line 3833 of file sweep_scheme.f90.
subroutine prim_to_cons_2 | ( | REAL(KIND=qPrec), dimension(:,:,:), intent(in) | w, |
REAL(KIND=qPrec), dimension(:,:,:), intent(out) | q | ||
) | [private] |
Transform an array of cells from primitive to conservative form.
w | array of cells in primitive form |
q | output array of cells in conservative form |
Definition at line 3864 of file sweep_scheme.f90.
REAL(KIND=qPREC) function calc_flux_x | ( | REAL(KIND=qPREC), dimension(:) | left, |
REAL(KIND=qPREC), dimension(:) | right, | ||
REAL(KIND=qPREC), dimension(:), intent(inout) | flux, | ||
REAL(KIND=qPREC), optional | lambda_max | ||
) | [private] |
Calculate fluxes in the x-direction.
left | left interface state |
right | right inteface state |
flux | resulting flux |
lambda_max | optional parameter for H-viscosity |
Definition at line 3892 of file sweep_scheme.f90.
REAL(KIND=qPREC) function calc_flux_y | ( | REAL(KIND=qPREC), dimension(:), intent(in) | left, |
REAL(KIND=qPREC), dimension(:), intent(in) | right, | ||
REAL(KIND=qPREC), dimension(:), intent(out) | flux, | ||
REAL(KIND=qPREC), optional | lambda_max | ||
) | [private] |
Calculate fluxes in the y-direction.
left | left interface state |
right | right inteface state |
flux | resulting flux |
lambda_max | optional parameter for H-viscosity |
Definition at line 3913 of file sweep_scheme.f90.
REAL(KIND=qPREC) function calc_flux_z | ( | REAL(KIND=qPREC), dimension(:), intent(in) | left, |
REAL(KIND=qPREC), dimension(:), intent(in) | right, | ||
REAL(KIND=qPREC), dimension(:), intent(out) | flux, | ||
REAL(KIND=qPREC), optional | lambda_max | ||
) | [private] |
Calculate fluxes in the z-direction.
left | left interface state |
right | right inteface state |
flux | resulting flux |
lambda_max | optional parameter for H-viscosity |
Definition at line 3936 of file sweep_scheme.f90.
pure REAL(KIND=qPREC) function minmod | ( | REAL(KIND=qPREC), intent(in) | x, |
REAL(KIND=qPREC), intent(in) | y | ||
) | [private] |
subroutine protect | ( | REAL(KIND=qPrec), dimension(:), intent(inout) | w | ) | [private] |
Sweeps version of protection of primitive variables.
w | primitive variables (iE is pressure) |
Definition at line 3967 of file sweep_scheme.f90.
subroutine protect_all | ( | REAL(KIND=qPrec), dimension(:,:,:), intent(inout) | w | ) | [private] |
Protects a slab of cells.
w | slab of cells in primitive form |
Definition at line 3987 of file sweep_scheme.f90.
subroutine Randomize | ( | REAL(KIND=qPREC), dimension(:,:,:) | q | ) | [private] |
Returns a random array.
q | 3D array to fill with random values |
Definition at line 4013 of file sweep_scheme.f90.