PetscLimiterLimit#
Limit the flux
Synopsis#
#include "petscfv.h"
PetscErrorCode PetscLimiterLimit(PetscLimiter lim, PetscReal flim, PetscReal *phi)
Input Parameters#
lim - The
PetscLimiterflim - The input field
Output Parameter#
phi - The limited field
Note#
Limiters given in symmetric form following Berger, Aftosmis, and Murman 2005
The classical flux-limited formulation is psi(r) where
r = (u[0] - u[-1]) / (u[1] - u[0])
The second order TVD region is bounded by
psi_minmod(r) = min(1,r) and psi_superbee(r) = min(2, 2r, max(1,r))
where all limiters are implicitly clipped to be non-negative. A more convenient slope-limited form is
phi(r) = psi(r) 2/(1+r)
in which the reconstructed interface values are
u(v) = u[0] + phi(r) (grad u)[0] v
where v is the vector from centroid to quadrature point. In these variables, the extremal limiters become
phi_minmod(r) = 2/(1+r) min(1, r) phi_superbee(r) = 2/(1+r) min(2, 2r, max(1,r))
For a nicer symmetric formulation, rewrite in terms of
f = (u[1] - u[0]) / (u[1] - u[-1])
where r(f) = (1-f)/f. Note that r(1-f) = f/(1-f) = 1/r(f) so the symmetry condition
phi(r) = phi(1/r)
becomes
w(f) = w(1-f).
The limiters below implement this final form w(f) = phi(r(f)) = 2f psi(r(f)). The extremal methods are
w_minmod(f) = 2 min(f, 1-f) w_superbee(f) = min(4 min(1-f, f), 2 max(1-f, f))
See Also#
PetscLimiter, PetscLimiterType, PetscLimiterSetType(), PetscLimiterCreate()
Level#
beginner
Location#
Index of all FV routines
Table of Contents for all manual pages
Index of all manual pages