Wrapper function to assign shearing-box boundary conditions. More...
#include "pluto.h"
Functions | |
void | SB_Boundary (const Data *d, int side, Grid *grid) |
Variables | |
double | sb_vy |
SB_Boundary() is a wrapper function used to assign shearing-box boundary conditions on both cell-centered and staggered variables at the X1_BEG and X1_END boundaries. It is called as a regular boundary condition after periodic boundary conditions have already been imposed on the solution arrays.
The function defines, for each type of variable (centered or staggered), the corresponding boundary region where shearing conditions must be applied using the RBox structure. The actual boundary condition is imposed by calling SB_SetBoundaryVar() with the desired array and its box layout.
Main wrapper function used to assign shearing-box boundary conditions on flow variables.
d | pointer to the PLUTO Data structure |
side | the side of the computational domain (X1_BEG or X1_END) |
grid | pointer to an array of Grid structures |
double sb_vy |
velocity offset (>0), in USERDEF_BOUNDARY