WarpX
Functions | Variables
check_interp_points_and_weights Namespace Reference

Functions

def fine_grid_limits (sf)
 
def coarse_grid_limits (sc, sf, iimin, iimax)
 
def coarsening_points_and_weights (i, sc, sf, cr)
 
def refinement_points_and_weights (ii, sc, sf, cr)
 

Variables

 cr = int( input( "\n Select coarsening ratio (cr=1,2,4): cr=" ) )
 TODO Coarsening for IO: interpolation points and weights def coarsening_points_and_weights_for_IO( i, sf, sc, cr ): if ( cr==1 ): numpts = 1+abs(sf-sc) idxmin = i-sc*(1-sf) elif ( cr>=2 ): numpts = 2-sf idxmin = i*cr+cr//2*(1-sc)-(1-sf) weights = np.zeros( numpts ) for ir in range( numpts ): weights[ir] = (1/numpts)*(1-sf)*(1-sc)+(1/numpts)*sf*sc return [ numpts, idxmin, weights ]. More...
 
 end
 
 iimin
 
 iimax
 
 imin
 
 imax
 
int nc = imax-imin+1
 
int nf = iimax-iimin+1
 
 numpts
 
 idxmin
 
 weights
 
 ii = idxmin+ir
 
float ws = 0.0
 
 jj = idxmin+ir
 
 i = idxmin+ir
 

Function Documentation

◆ coarse_grid_limits()

def check_interp_points_and_weights.coarse_grid_limits (   sc,
  sf,
  iimin,
  iimax 
)

◆ coarsening_points_and_weights()

def check_interp_points_and_weights.coarsening_points_and_weights (   i,
  sc,
  sf,
  cr 
)

◆ fine_grid_limits()

def check_interp_points_and_weights.fine_grid_limits (   sf)

◆ refinement_points_and_weights()

def check_interp_points_and_weights.refinement_points_and_weights (   ii,
  sc,
  sf,
  cr 
)

Variable Documentation

◆ cr

check_interp_points_and_weights.cr = int( input( "\n Select coarsening ratio (cr=1,2,4): cr=" ) )

TODO Coarsening for IO: interpolation points and weights def coarsening_points_and_weights_for_IO( i, sf, sc, cr ): if ( cr==1 ): numpts = 1+abs(sf-sc) idxmin = i-sc*(1-sf) elif ( cr>=2 ): numpts = 2-sf idxmin = i*cr+cr//2*(1-sc)-(1-sf) weights = np.zeros( numpts ) for ir in range( numpts ): weights[ir] = (1/numpts)*(1-sf)*(1-sc)+(1/numpts)*sf*sc return [ numpts, idxmin, weights ].

◆ end

check_interp_points_and_weights.end

◆ i

check_interp_points_and_weights.i = idxmin+ir

◆ idxmin

check_interp_points_and_weights.idxmin

◆ ii

check_interp_points_and_weights.ii = idxmin+ir

◆ iimax

check_interp_points_and_weights.iimax

◆ iimin

check_interp_points_and_weights.iimin

◆ imax

check_interp_points_and_weights.imax

◆ imin

check_interp_points_and_weights.imin

◆ jj

check_interp_points_and_weights.jj = idxmin+ir

◆ nc

int check_interp_points_and_weights.nc = imax-imin+1

◆ nf

int check_interp_points_and_weights.nf = iimax-iimin+1

◆ numpts

check_interp_points_and_weights.numpts

◆ weights

check_interp_points_and_weights.weights

◆ ws

float check_interp_points_and_weights.ws = 0.0