TARANG.lib.time_advance.time_advance_hydro#
Functions#
|
Compute the right-hand side (RHS) for the hydrodynamic field. |
|
Check if the loop should be broken based on certain conditions. |
|
Perform a single time advancement step for the hydrodynamic field. |
|
Perform time advancement using the Euler method for the hydrodynamic field. |
|
Perform time advancement using the second-order Runge-Kutta (RK2) method for the hydrodynamic field. |
|
Compute the parts for the fourth-order Runge-Kutta (RK4) method for the hydrodynamic field. |
|
Perform time advancement using the fourth-order Runge-Kutta (RK4) method for the hydrodynamic field. |
Module Contents#
- TARANG.lib.time_advance.time_advance_hydro.compute_rhs_hydro(para, t, U, P, univ)#
Compute the right-hand side (RHS) for the hydrodynamic field.
- Parameters:
t (float) – Current time.
U (VectorField) – VectorField object representing the velocity field.
P (Pressure) – Pressure object representing the pressure field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_hydro.loop_breaker(para, U, univ)#
Check if the loop should be broken based on certain conditions.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Returns:
True if the loop should be broken, False otherwise.
- Return type:
bool
- TARANG.lib.time_advance.time_advance_hydro.time_adv_single_step_hydro(para, a, b, c, U, univ)#
Perform a single time advancement step for the hydrodynamic field.
- Parameters:
a (float) – Coefficient for the time advancement scheme.
b (float) – Coefficient for the time advancement scheme.
c (float) – Coefficient for the time advancement scheme.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_hydro.time_advance_Euler_hydro(para, U, P, univ)#
Perform time advancement using the Euler method for the hydrodynamic field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
P (Pressure) – Pressure object representing the pressure field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_hydro.time_advance_RK2_hydro(para, U, P, univ)#
Perform time advancement using the second-order Runge-Kutta (RK2) method for the hydrodynamic field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
P (Pressure) – Pressure object representing the pressure field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_hydro.compute_RK4_parts_hydro(para, b, factor, U, univ)#
Compute the parts for the fourth-order Runge-Kutta (RK4) method for the hydrodynamic field.
- Parameters:
b (float) – Coefficient for the time advancement scheme.
factor (float) – Factor for the time advancement scheme.
U (VectorField) – VectorField object representing the velocity field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_hydro.time_advance_RK4_hydro(para, U, P, univ)#
Perform time advancement using the fourth-order Runge-Kutta (RK4) method for the hydrodynamic field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
P (Pressure) – Pressure object representing the pressure field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None