TARANG.lib.time_advance.time_advance_scalar#
Functions#
|
Compute the right-hand side (RHS) for the scalar field. |
|
Check if the loop should be broken based on certain conditions. |
|
Perform a single time advancement step for the scalar field. |
|
Perform time advancement using the Euler method for the scalar field. |
|
Perform time advancement using the second-order Runge-Kutta (RK2) method for the scalar field. |
|
Compute the parts for the fourth-order Runge-Kutta (RK4) method for the scalar field. |
|
Perform time advancement using the fourth-order Runge-Kutta (RK4) method for the scalar field. |
Module Contents#
- TARANG.lib.time_advance.time_advance_scalar.compute_rhs_scalar(para, t, U, T, P, univ)#
Compute the right-hand side (RHS) for the scalar field.
- Parameters:
t (float) – Current time.
U (VectorField) – VectorField object representing the velocity field.
T (ScalarField) – ScalarField object representing the scalar 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_scalar.loop_breaker(para, U, T, univ)#
Check if the loop should be broken based on certain conditions.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
T (ScalarField) – ScalarField object representing the scalar 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_scalar.time_adv_single_step_scalar(para, a, b, c, U, T, univ)#
Perform a single time advancement step for the scalar 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.
T (ScalarField) – ScalarField object representing the scalar field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_scalar.time_advance_Euler_scalar(para, U, T, P, univ)#
Perform time advancement using the Euler method for the scalar field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
T (ScalarField) – ScalarField object representing the scalar 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_scalar.time_advance_RK2_scalar(para, U, T, P, univ)#
Perform time advancement using the second-order Runge-Kutta (RK2) method for the scalar field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
T (ScalarField) – ScalarField object representing the scalar 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_scalar.compute_RK4_parts_scalar(para, b, factor, U, T, univ)#
Compute the parts for the fourth-order Runge-Kutta (RK4) method for the scalar 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.
T (ScalarField) – ScalarField object representing the scalar field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None
- TARANG.lib.time_advance.time_advance_scalar.time_advance_RK4_scalar(para, U, T, P, univ)#
Perform time advancement using the fourth-order Runge-Kutta (RK4) method for the scalar field.
- Parameters:
U (VectorField) – VectorField object representing the velocity field.
T (ScalarField) – ScalarField object representing the scalar field.
P (Pressure) – Pressure object representing the pressure field.
univ (UniversalArrays) – UniversalArrays object for temporary storage.
- Return type:
None