Scrambler  1
SweepScheme Module Reference

Module for updating grids by sweeping across the grid. More...

List of all members.

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.

Detailed Description

Module for updating grids by sweeping across the grid.

Include Files:
sweep_scheme_.f90

Definition at line 48 of file sweep_scheme.f90.


Member Function/Subroutine Documentation

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.

Parameters:
InfoInfo structure
partialOKLogical 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().

+ Here is the call graph for this function:

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.

Parameters:
ez_fyz component of emf at y face centers located at +-x
ez_fxz component of emf at x face centers located at +-y
ez_cz component of emf at +-x +-y cell centers
vxx component of velocity at x face centers located at +-y
vyy 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.

Parameters:
qarray 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.

Parameters:
qarray 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.

Parameters:
qarray 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.

Parameters:
warray of cells in primitive form
qoutput 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.

Parameters:
leftleft interface state
rightright inteface state
fluxresulting flux
lambda_maxoptional 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.

Parameters:
leftleft interface state
rightright inteface state
fluxresulting flux
lambda_maxoptional 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.

Parameters:
leftleft interface state
rightright inteface state
fluxresulting flux
lambda_maxoptional 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]

Minmod function.

Parameters:
xslope 1
yslope 2

Definition at line 3956 of file sweep_scheme.f90.

subroutine protect ( REAL(KIND=qPrec), dimension(:), intent(inout)  w) [private]

Sweeps version of protection of primitive variables.

Parameters:
wprimitive 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.

Parameters:
wslab 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.

Parameters:
q3D array to fill with random values

Definition at line 4013 of file sweep_scheme.f90.


The documentation for this module was generated from the following file:
 All Classes Files Functions Variables