|
ARTEMIS
|
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 | |
| def check_interp_points_and_weights.coarse_grid_limits | ( | sc, | |
| sf, | |||
| iimin, | |||
| iimax | |||
| ) |
| def check_interp_points_and_weights.coarsening_points_and_weights | ( | i, | |
| sc, | |||
| sf, | |||
| cr | |||
| ) |
| def check_interp_points_and_weights.fine_grid_limits | ( | sf | ) |
| def check_interp_points_and_weights.refinement_points_and_weights | ( | ii, | |
| sc, | |||
| sf, | |||
| 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 ].
| check_interp_points_and_weights.end |
| check_interp_points_and_weights.i = idxmin+ir |
| check_interp_points_and_weights.idxmin |
| check_interp_points_and_weights.ii = idxmin+ir |
| check_interp_points_and_weights.iimax |
| check_interp_points_and_weights.iimin |
| check_interp_points_and_weights.imax |
| check_interp_points_and_weights.imin |
| check_interp_points_and_weights.jj = idxmin+ir |
| check_interp_points_and_weights.numpts |
| check_interp_points_and_weights.weights |
| float check_interp_points_and_weights.ws = 0.0 |