PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions | Variables
sb_boundary.c File Reference

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
 

Detailed Description

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.

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
G. Muscianisi (g.mus.nosp@m.cian.nosp@m.isi@c.nosp@m.inec.nosp@m.a.it)
Date
June 15, 2012

Function Documentation

void SB_Boundary ( const Data d,
int  side,
Grid grid 
)

Main wrapper function used to assign shearing-box boundary conditions on flow variables.

Parameters
dpointer to the PLUTO Data structure
sidethe side of the computational domain (X1_BEG or X1_END)
gridpointer to an array of Grid structures
Returns
This function has no return value.
Todo:
Check if sb_Ly and sb_vy need to be global.

Variable Documentation

double sb_vy

velocity offset (>0), in USERDEF_BOUNDARY