PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
shearingbox.h
Go to the documentation of this file.
1 /* ///////////////////////////////////////////////////////////////////// */
25 /* ///////////////////////////////////////////////////////////////////// */
26 
28 #if INTERPOLATION == LINEAR || INTERPOLATION == WENO3 || INTERPOLATION == LimO3
29  #define SB_ORDER 2
30 #else
31  #define SB_ORDER 3
32 #endif
33 
34 #ifndef FARGO
35  #define SB_SYMMETRIZE_HYDRO YES
40  #define SB_SYMMETRIZE_EY (YES && (DIMENSIONS == 3))
44  #define SB_SYMMETRIZE_EZ YES
48  #define SB_FORCE_EMF_PERIODS NO
50 #else
51  #define SB_SYMMETRIZE_HYDRO NO
52  #define SB_SYMMETRIZE_EY (NO && (DIMENSIONS == 3))
53  #define SB_SYMMETRIZE_EZ NO
54  #define SB_FORCE_EMF_PERIODS NO
55 #endif
56 
57 /* ----------------------------
58  Global variables
59  ---------------------------- */
60 
61 extern double sb_q;
65 extern double sb_Omega;
69 extern double sb_vy;
71 #define sb_A (-0.5*sb_Omega*sb_q)
74 void SB_Boundary (const Data *, int, Grid *) ;
75 void SB_ShearingInterp (double *, double *, double, int, Grid *);
76 void SB_CorrectFluxes (Data_Arr, double, double, Grid *);
77 #ifdef STAGGERED_MHD
78 void SB_CorrectEMF (EMF *, Data_Arr, double, Grid *);
79 #endif
80 int SB_JSHIFT (int);
81 void SB_SaveFluxes (State_1D *, Grid *);
82 void SB_SetBoundaryVar(double ***, RBox *, int, double, Grid *);
83 void SB_ShiftBoundaryVar(double ***, RBox *, int, double, Grid *);
84 void SB_FillBoundaryGhost(double ***, RBox *, int, int, Grid *);
85 
86 #ifdef PARALLEL
87  void ExchangeX (real *, real *, int, Grid *);
88 #endif
89