TARANG.libp.io.io_hydro#

Attributes#

Functions#

initial_hydro(U, univ)

Initialize the hydrodynamic field based on the input parameters.

output_hydro(t, U, univ)

Output the hydrodynamic field and global quantities at a given time step.

output_field_hydro(t, U, univ)

Save the hydrodynamic field data to a file.

output_glob_hydro(t, U, univ)

Save global hydrodynamic quantities such as energy and dissipation to a file.

output_modes_hydro(t, U, univ)

Save specific modes of the hydrodynamic field to a file.

output_ekTk_hydro(t, U, univ)

Save the energy and transfer spectra of the hydrodynamic field to a file.

init_save_hydro(U)

Initialize files for saving energy and transfer spectra, global hydrodynamic quantities,

file_save_hydro(U, univ)

Save the energy and transfer spectra, global hydrodynamic quantities, field save times,

Module Contents#

TARANG.libp.io.io_hydro.comm#
TARANG.libp.io.io_hydro.rank#
TARANG.libp.io.io_hydro.nprocs#
TARANG.libp.io.io_hydro.initial_hydro(U, univ)#

Initialize the hydrodynamic field based on the input parameters.

Parameters:
  • U (VectorField) – VectorField object representing the velocity field.

  • univ (UniversalArrays) – UniversalArrays object for temporary storage.

Return type:

None

TARANG.libp.io.io_hydro.output_hydro(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.libp.io.io_hydro.output_field_hydro(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.libp.io.io_hydro.output_glob_hydro(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.libp.io.io_hydro.output_modes_hydro(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.libp.io.io_hydro.output_ekTk_hydro(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.libp.io.io_hydro.init_save_hydro(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.libp.io.io_hydro.file_save_hydro(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