TARANG.lib.force.compute_force_scalar#

Functions#

compute_force_scalar(para, U, T, univ)

Compute the scalar force for the vector and scalar fields.

compute_random_forcing(para, U, T, univ)

compute_rotation(para, U)

Compute the rotational force for the vector field.

compute_buoyancy(para, U, T)

Compute the buoyancy force for the vector and scalar fields.

craya_to_cartesian(u1, Vkx, Vkz, k_mag, i, j)

Module Contents#

TARANG.lib.force.compute_force_scalar.compute_force_scalar(para, U, T, univ)#

Compute the scalar force for the vector and scalar fields.

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

  • T (ScalarField) – ScalarField object representing the scalar field.

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

Return type:

None

TARANG.lib.force.compute_force_scalar.compute_random_forcing(para, U, T, univ)#
TARANG.lib.force.compute_force_scalar.compute_rotation(para, U)#

Compute the rotational force for the vector field.

Parameters:

U (VectorField) – VectorField object representing the velocity field.

Return type:

None

TARANG.lib.force.compute_force_scalar.compute_buoyancy(para, U, T)#

Compute the buoyancy force for the vector and scalar fields.

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

  • T (ScalarField) – ScalarField object representing the scalar field.

Return type:

None

TARANG.lib.force.compute_force_scalar.craya_to_cartesian(u1, Vkx, Vkz, k_mag, i, j)#