| Algorithm1 Multiphase viscoelastic PLIC-RDF isoAdvector (MVP-RIA) algorithm |
|
Require: Mesh, physical properties, boundary conditions, initial conditions Ensure: Velocity, pressure, viscoelastic stress tensor and interface geometry fields 1: Initialize fields 2: Set time step, , or Courant number, 3: Start time loop and set end time for simulation 4: Set the number of outer correctors, , and pressure correctors, 5: Set current iteration count and pressure correctors count 6: while not converged or (PIMPLE corrector loop) do 7: Compute face fluxes 8: Update interface geometry using PLIC-RDF isoAdvector algorithm 9: Compute viscoelastic stress tensor (Equations (4) or (5)) 10: Compute linear momentum equation (Equation (2)) 11: while (PISO corrector loop) do 12: Solve the pressure equation and momentum corrector 13: Increment iteration count m 14: end while 15: Increment iteration count n 16: end while 17: Output results |