src.tools

Submodules

Package Contents

Functions

get_tensor_distance(S1, S2, rot_tensor)

S1 has a grid lu1 x lv1 and S2 lu2 x lv2x3 with the same Np

phi_coeff_from_nb(k, phisize)

the coefficents of Phi are store as 1d array,

get_matrix_dPhi(phisize, grids)

generate the tensor (2+lc) xluxlvx2 of divergence free vector fields

compute_j(boldpsi, matrixd_phi, Np)

compute_dpsi_full(dpsi, Np)

get_rot_tensor(Np)

compute_Qj(matrixd_phi, dpsi, dS)

take only the segment whitout rotation of j

compute_dQjdtheta(matrixd_phi, dpsi, dS, dtheta, dSdtheta)

take only the segment whitout rotation of j

compute_LS_old(T, j, dS, normalp)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3

compute_LS(T, matrixd_phi, dpsi, rot_tensor, normalp)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3

compute_dLS(T, matrixd_phi, dpsi, rot_tensor, normalp, theta, dtildetheta)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3

Attributes

eijk

src.tools.eijk
src.tools.get_tensor_distance(S1, S2, rot_tensor)

S1 has a grid lu1 x lv1 and S2 lu2 x lv2x3 with the same Np return the tensor Npxlu1xlv1xlu2xlv2 x 3 of the vector between such that T[i,j,k,l,m,n] is the nth coordinates bwn the rotation of 2pi i/Np psi1_j,k and psi2_l,m

src.tools.phi_coeff_from_nb(k, phisize)

the coefficents of Phi are store as 1d array, this function make the conversion with a 2d matrix

src.tools.get_matrix_dPhi(phisize, grids)

generate the tensor (2+lc) xluxlvx2 of divergence free vector fields lc is the number of fourier component given by phisize

src.tools.compute_j(boldpsi, matrixd_phi, Np)
src.tools.compute_dpsi_full(dpsi, Np)
src.tools.get_rot_tensor(Np)
src.tools.compute_Qj(matrixd_phi, dpsi, dS)

take only the segment whitout rotation of j

src.tools.compute_dQjdtheta(matrixd_phi, dpsi, dS, dtheta, dSdtheta)

take only the segment whitout rotation of j

src.tools.compute_LS_old(T, j, dS, normalp)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3 and j the current tensor (lc+2) x Np x lu1 x lv1 x 3 dS lu1 x lv1 normalp 3 x lu2 x lv2

src.tools.compute_LS(T, matrixd_phi, dpsi, rot_tensor, normalp)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3 and j the current tensor (lc+2) x Np x lu1 x lv1 x 3 dS lu1 x lv1 normalp 3 x lu2 x lv2

src.tools.compute_dLS(T, matrixd_phi, dpsi, rot_tensor, normalp, theta, dtildetheta)

T is the distance tensor Npxlu1xlv1xlu2xlv2 x 3 and j the current tensor (lc+2) x Np x lu1 x lv1 x 3 dS lu1 x lv1 normalp 3 x lu2 x lv2