Skip to main content
. 2025 Feb 28;18(5):1080. doi: 10.3390/ma18051080
Algorithm 2 Summary of Non-Matching Mesh Algorithm with Multi-Time Stepping
  •   1:

    procedureintegrate a two-domain non-matching mesh with MTS

  •   2:

          while tration+k+11 or (tration+k1 and tration+k+11+TOL) do

  •   3:

             Compute u¨Γs with operator Ns in Equation (34) on Γs

  •   4:

             Integrate small domain Ωs and compute vectors fsint,fsext

  •   5:

             Compute trial times tTsn+k, tTLN+1 and time step ratios tration+k, tration+k+1

  •   6:

          Compute time step reduction factors αL,αs

  •   7:

          if αLαs then

  •   8:

             ΔtL=αL·ΔtL

  •   9:

          else

  • 10:

             Δts=αs·Δts

  • 11:

             Compute u¨Γs with operator Ns in Equation (34) on Γs

  • 12:

             Integrate small domain Ωs and compute vectors fsint,fsext

  • 13:

             Recompute trial times tTsn+k, tTLN+1 and time step ratios tration+k, tration+k+1

  • 14:

          Compute u¨ΓL with operator NL in Equation (34) on ΓL

  • 15:

          Integrate large domain ΩL and compute vectors fLint,fLext

  • 16:

          Summate kinetics with RL,Rs,CL,Cs to find MΓ,fΓint and fΓext with Equation (31)–(33)

  • 17:

          Compute trial times tTsn+k, tTLN+1 and time step ratios tration+k, tration+k+1