Skip to main content
. 2023 Aug 17;15(16):3437. doi: 10.3390/polym15163437
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, Δt, or Courant number, Co
 3: Start time loop and set end time for simulation
 4: Set the number of outer correctors, nOuterCorrectors, and pressure correctors, nCorrectors
 5: Set current iteration count n=1 and pressure correctors count m=1
 6: while not converged or n<nOuterCorrectors (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 m<nCorrectors (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