Skip to content

Commit 0dbf094

Browse files
committed
amend lmm ssp doc
1 parent e7ba6aa commit 0dbf094

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/lib/foodie_integrator_lmm_ssp.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module foodie_integrator_lmm_ssp
1212
!< where \(U_t = \frac{dU}{dt}\), *U* is the vector of *state* variables being a function of the time-like independent variable
1313
!< *t*, *R* is the (vectorial) residual function, the LMM-SSP class scheme implemented is:
1414
!<
15-
!< $$ U^n = \sum_{s=0}^{N_s-1}{\left[a_s U^{n-N_s+s} + \Delta t b_s \cdot R(t^{n-N_s+s}, U^{n-N_s+s}) \right]} $$
15+
!< $$ U^{n+N_s} = \sum_{s=1}^{N_s}{\left[a_s U^{n+s-1} + \Delta t b_s \cdot R(t^{n+s-1}, U^{n+s-1}) \right]} $$
1616
!<
1717
!<where \(N_s\) is the number of previous steps considered.
1818
!<

src/lib/foodie_integrator_lmm_ssp_vss.f90

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ module foodie_integrator_lmm_ssp_vss
1212
!< where \(U_t = \frac{dU}{dt}\), *U* is the vector of *state* variables being a function of the time-like independent variable
1313
!< *t*, *R* is the (vectorial) residual function, the LMM-SSP class scheme implemented is:
1414
!<
15+
!<#### Second order formula
16+
!<
1517
!< $$ U^{n+N_s} = \frac{1}{\Omega_{N_s-1}^2} U^n + \frac{\Omega_{N_s-1}^2 - 1}{\Omega_{N_s-1}^2} U^{n+N_s-1} +
1618
!< \frac{\Omega_{N_s-1} + 1}{\Omega_{N_s-1}} \Delta t^{n+N_s} R(U^{n+N_s-1}) $$
1719
!<
20+
!<#### Third order formula
21+
!<
22+
!< $$ U^{n+N_s} = \frac{3 \Omega_{N_s-1} + 2}{\Omega_{N_s-1}^3} U^n +
23+
!< \frac{(\Omega_{N_s-1} + 1)^2(\Omega_{N_s-1} - 2)}{\Omega_{N_s-1}^3} U^{n+N_s-1} +
24+
!< \frac{\Omega_{N_s-1} + 1}{\Omega_{N_s-1}^2} \Delta t^{n+N_s} R(U^n) +
25+
!< \frac{(\Omega_{N_s-1} + 1)^2}{\Omega_{N_s-1}^2} \Delta t^{n+N_s} R(U^{n+N_s-1}) $$
26+
!<
1827
!<where \(N_s\) is the number of previous steps considered and
1928
!<
20-
!< $$ \Omega_s = \sum_{i=1}^s \left{ \omega_i \right} \, 1 \le s \le N_s $$
29+
!< $$ \Omega_s = \sum_{i=1}^s { \omega_i }\quad 1 \leq s \leq N_s $$
2130
!< $$ \omega_i = \frac{\Delta t^{n + s}}{\Delta t^{n + N_s}} $$
2231
!<
2332
!< @note The value of \(\Delta t\) must be provided, it not being computed by the integrator.

0 commit comments

Comments
 (0)