WarpX
Namespaces | Functions | Variables
stencil.py File Reference

Namespaces

 stencil
 

Functions

def stencil.get_Fornberg_coeffs (order, staggered)
 
def stencil.modified_k (kx, dx, order, staggered)
 
def stencil.func_cosine (om, w_c, dt)
 
def stencil.compute_stencils (coeff_nodal, coeff_stagg, axis)
 
def stencil.compute_all (dx_boosted, dt, psatd_order, v_gal, nx=None)
 
def stencil.compute_guard_cells (errmin, errmax, stencil)
 
def stencil.plot_stencil (cells, stencil_nodal, stencil_stagg, label, path, name)
 
def stencil.run_main (dims, dx_boosted, dt, psatd_order, gamma=1., galilean=False, path='.', name='')
 

Variables

 stencil.sp = np.finfo(np.float32).eps
 
 stencil.dp = np.finfo(np.float64).eps
 
 stencil.parser = argparse.ArgumentParser()
 
 stencil.help
 
 stencil.args = parser.parse_args()
 
 stencil.input_file = args.input_file
 
 stencil.input_dict = parse_input_file(input_file)
 
 stencil.dims = int(input_dict['geometry.dims'][0])
 
 stencil.nx = np.array([int(w) for w in input_dict['amr.n_cell']])
 
 stencil.xmin = np.array([float(w) for w in input_dict['geometry.prob_lo']])
 
 stencil.xmax = np.array([float(w) for w in input_dict['geometry.prob_hi']])
 
tuple stencil.dx = (xmax-xmin) / nx
 lab frame More...
 
int stencil.gamma = 1.
 boosted frame More...
 
 stencil.beta = np.sqrt(1. - 1./gamma**2)
 
 stencil.dx_boosted = np.copy(dx)
 
float stencil.cfl = 0.999
 
float stencil.dt = cfl * np.min(dx_boosted) / c
 
 stencil.psatd_order = np.full(shape=dims, fill_value=16)
 
bool stencil.galilean = False