WarpX
Functions | Variables
compute_domain Namespace Reference

Functions

def intceil (num)
 
def adjust_bounds (box_lo0, box_hi0, box_ncell0, mgs)
 
def nb_nodes_mpi (box_ncell, mgs, threadspernode, ompnumthreads, ngridpernode, ndim)
 

Variables

 box_lo0 = np.array([-25.e-6, -25.e-6, -15.e-6])
 
 box_hi0 = np.array([ 25.e-6, 25.e-6, 60.e-6])
 
int dx = 1.e-6
 
int dz = dx
 
 cell_size = np.array([dx, dx, dz])
 
bool compute_dz_boosted_frame = True
 
int gamma_boost = 30.
 
float dx_over_dz_boosted_frame = 1.1
 
 ndim = box_lo0.size
 
tuple box_ncell0 = ( box_hi0 - box_lo0 ) / cell_size
 
int ngridpernode = 16.
 
int ompnumthreads = 8.
 
int mgs = 1024.
 
int threadspernode = 64.
 
 distance_between_threads = int(68*4/threadspernode)
 
 c_option = int( ompnumthreads*distance_between_threads )
 
 box_lo
 
 box_hi
 
 box_ncell
 
 n_node
 
 n_mpi
 
string string_output = ' ### Parameters used ### \n'
 

Function Documentation

◆ adjust_bounds()

def compute_domain.adjust_bounds (   box_lo0,
  box_hi0,
  box_ncell0,
  mgs 
)

◆ intceil()

def compute_domain.intceil (   num)

◆ nb_nodes_mpi()

def compute_domain.nb_nodes_mpi (   box_ncell,
  mgs,
  threadspernode,
  ompnumthreads,
  ngridpernode,
  ndim 
)

Variable Documentation

◆ box_hi

compute_domain.box_hi

◆ box_hi0

compute_domain.box_hi0 = np.array([ 25.e-6, 25.e-6, 60.e-6])

◆ box_lo

compute_domain.box_lo

◆ box_lo0

compute_domain.box_lo0 = np.array([-25.e-6, -25.e-6, -15.e-6])

◆ box_ncell

compute_domain.box_ncell

◆ box_ncell0

tuple compute_domain.box_ncell0 = ( box_hi0 - box_lo0 ) / cell_size

◆ c_option

compute_domain.c_option = int( ompnumthreads*distance_between_threads )

◆ cell_size

compute_domain.cell_size = np.array([dx, dx, dz])

◆ compute_dz_boosted_frame

bool compute_domain.compute_dz_boosted_frame = True

◆ distance_between_threads

compute_domain.distance_between_threads = int(68*4/threadspernode)

◆ dx

int compute_domain.dx = 1.e-6

◆ dx_over_dz_boosted_frame

float compute_domain.dx_over_dz_boosted_frame = 1.1

◆ dz

int compute_domain.dz = dx

◆ gamma_boost

int compute_domain.gamma_boost = 30.

◆ mgs

int compute_domain.mgs = 1024.

◆ n_mpi

compute_domain.n_mpi

◆ n_node

compute_domain.n_node

◆ ndim

compute_domain.ndim = box_lo0.size

◆ ngridpernode

int compute_domain.ngridpernode = 16.

◆ ompnumthreads

int compute_domain.ompnumthreads = 8.

◆ string_output

string compute_domain.string_output = ' ### Parameters used ### \n'

◆ threadspernode

int compute_domain.threadspernode = 64.