wiki:physflux_MHD

Version 3 (modified by trac, 12 years ago) ( diff )

SUBROUTINE physflux_MHD(ixyz, indx, iRequest, Info, q1D, f, s)


Defined In:

contrib/astro/physics/i_MHD_physfluxMUSCL.f90


Inputs:

  • Integer ixyz. Current slice direction
  • Integer indx. Current slice location
  • Integer iRequest. Request code
  • NodeInfo Info. A grid to be operated on.
  • REAL(KIND=qPrec) q1D. Data along slice
  • REAL(KIND=qPrec) f. Array of fluxes along slice
  • REAL(KIND=qPrec) s. Array of wave speeds along slice


Description:

Performs a number of tasks depending on the value of iRequest as follows:

  • Initialize - sets direction specific parameters (mu, mv, mw, mb1, mb2, mb3)
  • Finalize - Calculates intercell fluxes for species tracking, as well as VanLeer advection of tracers. Also updates the contribution to emf's from the intercell fluxes.
  • RequestPrimitive - converts q1D from conservative to primitive
  • RequestConserved - converts q1D from primitive to conservative
  • RequestFlat - sets Info%flat = 0.d0
  • RequestSteep - Does nothing
  • RequestProtect - Flattens interpolation where cell edge density/pressure is small
  • RequestPredictor - Updates reconstructed B-fields with extra MHD source terms
  • RequestFluxes - Calculates fluxes (f) from q1D in conservative form
  • RequestVisc - Sets Info%visc using HCarbuncleEntropyFix
  • !RequestHLLDflux - Calculates the intercell flux using the HLLD solver
  • RequestEigenDecomposition - Calculates eigenvectors (Info%left, Info%right) for Roe-Averaged values of q1DL and q1DR
  • RequestSidedEigenDecomposition - Calculates eigenvectors (Info%left, Info%right) for q1D
  • RequestSpeeds - Calculates wave speeds (s) for q1D


Called In:

contrib/astro/physics/i_physfluxMUSCL.f90


Modules Used:

NodeInfoDef.


Files Included:

None.

Note: See TracWiki for help on using the wiki.