TARANG.lib.global_fns.universal

Contents

TARANG.lib.global_fns.universal#

Classes#

UniversalArrays

Class representing universal arrays for the TARANG solver.

Module Contents#

class TARANG.lib.global_fns.universal.UniversalArrays(para)#

Class representing universal arrays for the TARANG solver.

COMPUTE_NLIN_FIRST_FLAG#

Flag to indicate if nonlinear computation is first.

Type:

bool

COMPUTE_DT_FLAG#

Flag to indicate if time step computation is enabled.

Type:

bool

T_LAST#

Flag to indicate if the last time step is reached.

Type:

bool

dt_fixed#

Fixed time step.

Type:

float

dt#

Variable time step.

Type:

float

FORCE_PHASE_FIRST#

Flag to indicate if force phase is first.

Type:

bool

phase_ch1#

Phase for the forcing.

Type:

float

iter#

Iteration count.

Type:

int

ubydx#

Velocity by grid spacing.

Type:

float

exp_factor_array#

Array for exponential factors.

Type:

array-like

exp_factor_array_eta#

Array for exponential factors for magnetic diffusivity (MHD).

Type:

array-like

cross_helicity#

Array for cross helicity (MHD).

Type:

array-like

exp_factor_array_kappa#

Array for exponential factors for scalar diffusivity.

Type:

array-like

temp_nlin#

Temporary array for nonlinear terms.

Type:

array-like

temp1_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp2_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp3_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp1b_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp2b_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp3b_RK#

Temporary array for Runge-Kutta scheme.

Type:

array-like

temp_scalar1_RK#

Temporary array for scalar Runge-Kutta scheme.

Type:

array-like

temp_scalar2_RK#

Temporary array for scalar Runge-Kutta scheme.

Type:

array-like

tempR#

Temporary real array.

Type:

array-like

dx#

Grid spacing in x direction.

Type:

float

dy#

Grid spacing in y direction.

Type:

float

dz#

Grid spacing in z direction.

Type:

float

t#

Array for time steps.

Type:

array-like

t_dt#

Array for time steps for dt.

Type:

array-like

t_field_save#

Array for time steps for field saving.

Type:

array-like

t_glob_energy_print#

Array for time steps for global energy printing.

Type:

array-like

t_ekTk_save#

Array for time steps for energy and transfer saving.

Type:

array-like

t_modes_save#

Array for time steps for modes saving.

Type:

array-like

para#
COMPUTE_NLIN_FIRST_FLAG = None#
COMPUTE_DT_FLAG = None#
T_LAST = False#
dt_fixed = 0#
dt = 0#
FORCE_PHASE_FIRST = None#
phase_ch1 = 0#
iter = 0#
ubydx = 0#
exp_factor_array = []#
temp_nlin = []#
temp1_RK = []#
temp2_RK = []#
temp3_RK = []#
temp1b_RK = []#
temp2b_RK = []#
temp3b_RK = []#
temp_scalar1_RK = []#
temp_scalar2_RK = []#
tempR = []#
dx = None#
dy = None#
dz = None#
t = []#
t_dt = []#
t_field_save = []#
t_glob_energy_print = []#
t_ekTk_save = []#
t_modes_save = []#
t_buf = []#
t_dt_buf = []#
set_arrays()#

Set the arrays for the universal arrays based on the simulation parameters.

set_exp_arrays()#

Set the exponential factor arrays based on the simulation parameters.

set_grid_space()#

Set the grid spacing based on the simulation parameters.