#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"
Go to the source code of this file.
Functions | |
int | set_boundary (int nmin, int nmax, int flag, int bound_checker, int lefter, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *pressure_solid_1D, double *xa0, double *dx0, double *xa, double *dx, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_zero_gradient (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_zero_gradient (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_reflecting (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_reflecting_on_obstacle (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *pressure_solid_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_reflecting (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_reflecting_on_obstacle (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *pressure_solid_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_small_padding (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_small_padding (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_outflow (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_outflow (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_inflow (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_inflow (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | left_boundary_periodic (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int | right_boundary_periodic (int nmin, int nmax, double *rho_1D, double *eng_1D, double *pre_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *xa0, double *dx0, double *xa, double *dx, int flag, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int viscosity_on_off, int dimension) |
int left_boundary_inflow | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
outflow boundary condition
Definition at line 1092 of file set_boundary.c.
References Gamma, gasconstant, inflow_density, inflow_temperature, and inflow_velocity.
Referenced by set_boundary().
int left_boundary_outflow | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
outflow boundary condition
Definition at line 973 of file set_boundary.c.
Referenced by set_boundary().
int left_boundary_periodic | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
periodic boundary conditions
Definition at line 1203 of file set_boundary.c.
Referenced by set_boundary().
int left_boundary_reflecting | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Reflecting boundary condition
Definition at line 640 of file set_boundary.c.
Referenced by set_boundary().
int left_boundary_reflecting_on_obstacle | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | pressure_solid_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Reflecting boundary condition on obstacle
Definition at line 694 of file set_boundary.c.
Referenced by set_boundary().
int left_boundary_small_padding | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Small number (e.g. 1E-50) ghost cell filling
Definition at line 865 of file set_boundary.c.
References small.
Referenced by set_boundary().
int left_boundary_zero_gradient | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Zero gradient boundary condition
Definition at line 475 of file set_boundary.c.
Referenced by set_boundary().
int right_boundary_inflow | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
outflow boundary condition
Definition at line 1147 of file set_boundary.c.
References Gamma, gasconstant, inflow_density, inflow_temperature, and inflow_velocity.
Referenced by set_boundary().
int right_boundary_outflow | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
outflow boundary condition
Definition at line 1032 of file set_boundary.c.
Referenced by set_boundary().
int right_boundary_periodic | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
periodic boundary conditions
Definition at line 1259 of file set_boundary.c.
Referenced by set_boundary().
int right_boundary_reflecting | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Reflecting boundary condition
Definition at line 752 of file set_boundary.c.
Referenced by set_boundary().
int right_boundary_reflecting_on_obstacle | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | pressure_solid_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Reflecting boundary condition on obstacle
Definition at line 807 of file set_boundary.c.
Referenced by set_boundary().
int right_boundary_small_padding | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Small number (e.g. 1E-50) ghost cell filling
Definition at line 919 of file set_boundary.c.
References small.
Referenced by set_boundary().
int right_boundary_zero_gradient | ( | int | nmin, |
int | nmax, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
int | flag, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
Zero gradient boundary condition or if stratisfied atmosphere needed the atmosphere is extened into the ghost cells.
Definition at line 531 of file set_boundary.c.
References gasconstant, grav_acc, strat_const_atmos, y, and ymax.
Referenced by set_boundary().
int set_boundary | ( | int | nmin, |
int | nmax, | ||
int | flag, | ||
int | bound_checker, | ||
int | lefter, | ||
double * | rho_1D, | ||
double * | eng_1D, | ||
double * | pre_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | pressure_solid_1D, | ||
double * | xa0, | ||
double * | dx0, | ||
double * | xa, | ||
double * | dx, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | viscosity_on_off, | ||
int | dimension | ||
) |
The filling routine for the ghost cells according to the given boundary conditions.
Definition at line 17 of file set_boundary.c.
References boundary::back, bound, boundary::down, boundary::front, boundary::left, left_boundary_inflow(), left_boundary_outflow(), left_boundary_periodic(), left_boundary_reflecting(), left_boundary_reflecting_on_obstacle(), left_boundary_small_padding(), left_boundary_zero_gradient(), boundary::right, right_boundary_inflow(), right_boundary_outflow(), right_boundary_periodic(), right_boundary_reflecting(), right_boundary_reflecting_on_obstacle(), right_boundary_small_padding(), right_boundary_zero_gradient(), and boundary::up.
Referenced by ppm_step().