radis.lbl.gpu module

calc_gaussian_params(gaussian_param_data, init_h, iter_h, epsilon=0.0001)[source]
Parameters
  • gaussian_param_data (TYPE) – DESCRIPTION.

  • init_h (TYPE) – DESCRIPTION.

  • iter_h (TYPE) – DESCRIPTION.

  • epsilon (TYPE, optional) – DESCRIPTION. The default is 1e-4.

Return type

None.

calc_lorentzian_minmax(param_data, log_rT, log_2p)[source]
Parameters
  • param_data (TYPE) – DESCRIPTION.

  • log_rT (TYPE) – DESCRIPTION.

  • log_2p (TYPE) – DESCRIPTION.

Returns

DESCRIPTION.

Return type

TYPE

calc_lorentzian_params(param_data, init_h, iter_h, epsilon=0.0001)[source]
Parameters
  • param_data (TYPE) – DESCRIPTION.

  • init_h (TYPE) – DESCRIPTION.

  • iter_h (TYPE) – DESCRIPTION.

  • epsilon (TYPE, optional) – DESCRIPTION. The default is 1e-4.

Return type

None.

constant_memory_setter(cuda_module, var_str)[source]
gpu_init(v_arr, dxG, dxL, iso, v0, da, gamma, na, S0, El, Mm_arr, Q_intp_list, verbose=True, gpu=False)[source]
Parameters
  • v_arr (TYPE) – DESCRIPTION.

  • dxG (TYPE) – DESCRIPTION.

  • dxL (TYPE) – DESCRIPTION.

  • iso (TYPE) – DESCRIPTION.

  • v0 (TYPE) – DESCRIPTION.

  • da (TYPE) – DESCRIPTION.

  • gamma (TYPE) – DESCRIPTION.

  • na (TYPE) – DESCRIPTION.

  • S0 (TYPE) – DESCRIPTION.

  • El (TYPE) – DESCRIPTION.

  • Mm_arr (TYPE) – DESCRIPTION.

  • Q_intp_list (TYPE) – DESCRIPTION.

  • verbose (TYPE, optional) – DESCRIPTION. The default is True.

  • gpu (TYPE, optional) – DESCRIPTION. The default is False.

Return type

None.

gpu_iterate(p, T, mole_fraction, l=1.0, slit_FWHM=0.0, verbose=0, gpu=False)[source]
Parameters
  • p (float) – pressure [bar]

  • T (float) – temperature [K]

  • mole_fraction (float)

Other Parameters
  • verbose (bool, optional) – The default is True.

  • l (TYPE, optional) – DESCRIPTION. The default is 1.0.

  • slit_FWHM (TYPE, optional) – DESCRIPTION. The default is 0.0.

  • gpu (TYPE, optional) – DESCRIPTION. The default is False.

Returns

  • abscoeff_h (TYPE) – DESCRIPTION.

  • transmittance_h (TYPE) – DESCRIPTION.

class initData[source]

Bases: Structure

Max_lines[source]

Structure/Union member

N_blocks_per_grid[source]

Structure/Union member

N_iterations_per_thread[source]

Structure/Union member

N_lines[source]

Structure/Union member

N_points_per_block[source]

Structure/Union member

N_points_per_thread[source]

Structure/Union member

N_threads_per_block[source]

Structure/Union member

N_total[source]

Structure/Union member

N_v[source]

Structure/Union member

dv[source]

Structure/Union member

dxG[source]

Structure/Union member

dxL[source]

Structure/Union member

log_c2Mm[source]

Structure/Union member

shared_size_floats[source]

Structure/Union member

v_max[source]

Structure/Union member

v_min[source]

Structure/Union member

init_gaussian_params(log_2vMm, verbose)[source]
Parameters
  • log_2vMm (TYPE) – DESCRIPTION.

  • verbose (TYPE) – DESCRIPTION.

Returns

param_data – DESCRIPTION.

Return type

TYPE

init_lorentzian_params(na, gamma, verbose)[source]
Parameters
  • na (TYPE) – DESCRIPTION.

  • gamma (TYPE) – DESCRIPTION.

  • verbose (TYPE) – DESCRIPTION.

Returns

param_data – DESCRIPTION.

Return type

TYPE

class iterData[source]

Bases: Structure

N[source]

Structure/Union member

N_G[source]

Structure/Union member

N_L[source]

Structure/Union member

Q[source]

Structure/Union member

c2T[source]

Structure/Union member

hlog_T[source]

Structure/Union member

l[source]

Structure/Union member

log_2p[source]

Structure/Union member

log_rT[source]

Structure/Union member

log_wG_min[source]

Structure/Union member

log_wL_min[source]

Structure/Union member

p[source]

Structure/Union member

slit_FWHM[source]

Structure/Union member

py_calc_gaussian_envelope_params(log_2vMm, verbose=False)[source]
Parameters
  • log_2vMm (TYPE) – DESCRIPTION.

  • verbose (TYPE, optional) – DESCRIPTION. The default is False.

Returns

DESCRIPTION.

Return type

TYPE

py_calc_lorentzian_envelope_params(na, gamma, verbose=False)[source]
Parameters
  • na (TYPE) – DESCRIPTION.

  • gamma (TYPE) – DESCRIPTION.

  • verbose (TYPE, optional) – DESCRIPTION. The default is False.

Returns

DESCRIPTION..

Return type

TYPE

set_pTQ(p, T, mole_fraction, iter_h, l=1.0, slit_FWHM=0.0)[source]
Parameters
  • p (float) – pressure [bar].

  • T (float) – temperature [K].

  • mole_fraction (float)

  • iter_h (TYPE) – DESCRIPTION.

  • l (TYPE, optional) – DESCRIPTION. The default is 1.0.

  • slit_FWHM (TYPE, optional) – DESCRIPTION. The default is 0.0.

Return type

None.