TARANG.lib.io.io_hydro#
Functions#
|
Initialize the hydrodynamic field based on the input parameters. |
|
Output the hydrodynamic field and global quantities at a given time step. |
|
Save the hydrodynamic field data to a file. |
|
Save global hydrodynamic quantities such as energy and dissipation to a file. |
|
Save specific modes of the hydrodynamic field to a file. |
|
Save the energy and transfer spectra of the hydrodynamic field to a file. |
|
Initialize files for saving energy and transfer spectra, global hydrodynamic quantities, |
|
Save the energy and transfer spectra, global hydrodynamic quantities, field save times, |
Module Contents#
- TARANG.lib.io.io_hydro.initial_hydro(para, U)#
Initialize the hydrodynamic field based on the input parameters.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
- Return type:
None
- TARANG.lib.io.io_hydro.output_hydro(para, t, U, univ)#
Output the hydrodynamic field and global quantities at a given time step.
- Parameters:
t (float) – Current simulation time.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage and global quantities.
- Return type:
None
- TARANG.lib.io.io_hydro.output_field_hydro(para, t, U, univ)#
Save the hydrodynamic field data to a file.
- Parameters:
t (float) – Current simulation time.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.io.io_hydro.output_glob_hydro(para, t, U, univ)#
Save global hydrodynamic quantities such as energy and dissipation to a file.
- Parameters:
t (float) – Current simulation time.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage and global quantities.
- Return type:
None
- TARANG.lib.io.io_hydro.output_modes_hydro(para, t, U, univ)#
Save specific modes of the hydrodynamic field to a file.
- Parameters:
t (float) – Current simulation time.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.io.io_hydro.output_ekTk_hydro(para, t, U, univ)#
Save the energy and transfer spectra of the hydrodynamic field to a file.
- Parameters:
t (float) – Current simulation time.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.io.io_hydro.init_save_hydro(para, U)#
Initialize files for saving energy and transfer spectra, global hydrodynamic quantities, field save times, time steps, and specific modes of the hydrodynamic field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
- Return type:
None
- TARANG.lib.io.io_hydro.file_save_hydro(para, U, univ)#
Save the energy and transfer spectra, global hydrodynamic quantities, field save times, time steps, and specific modes of the hydrodynamic field to their respective files.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage and global quantities.
- Return type:
None