TARANG.lib.solver_fns.compute_nlin_mhd#
Functions#
|
Compute the product and transform for the magnetohydrodynamic (MHD) field. |
|
Compute the nonlinear terms for the magnetohydrodynamic (MHD) field. |
|
Convert velocity and magnetic fields to Elsasser variables. |
|
Convert Elsasser variables back to velocity and magnetic fields. |
|
Convert nonlinear terms of Elsasser variables back to velocity and magnetic fields. |
|
Compute the cross helicity of the velocity and magnetic fields. |
|
Convert forcing terms of Elsasser variables back to velocity and magnetic fields. |
|
Compute the time step for the magnetohydrodynamic (MHD) field. |
|
|
|
Module Contents#
- TARANG.lib.solver_fns.compute_nlin_mhd.compute_prod_transform(para, U, B, univ)#
Compute the product and transform for the magnetohydrodynamic (MHD) field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.compute_nlin_mhd(para, t, U, B, univ)#
Compute the nonlinear terms for the magnetohydrodynamic (MHD) field.
- Parameters:
t (float) – Current time.
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.UB_to_Elsasser(para, U, B, univ)#
Convert velocity and magnetic fields to Elsasser variables.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.Elsasser_to_UB(para, U, B, univ)#
Convert Elsasser variables back to velocity and magnetic fields.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.Elsasser_to_UB_nlin(para, U, B, univ)#
Convert nonlinear terms of Elsasser variables back to velocity and magnetic fields.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.compute_cross_helicity(para, U, B)#
Compute the cross helicity of the velocity and magnetic fields.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
- Returns:
Cross helicity of the velocity and magnetic fields.
- Return type:
float
- TARANG.lib.solver_fns.compute_nlin_mhd.Elsasser_to_UB_force(para, U, B, univ)#
Convert forcing terms of Elsasser variables back to velocity and magnetic fields.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.compute_dt_mhd(para, U, B, univ)#
Compute the time step for the magnetohydrodynamic (MHD) field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
B (VectorField) – VectorField object representing the magnetic field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.solver_fns.compute_nlin_mhd.UB_to_Elsasser_real(para, U, B, univ)#
- TARANG.lib.solver_fns.compute_nlin_mhd.Elsasser_to_UB_real(para, U, B, univ)#