/[MITgcm]/MITgcm/pkg/generic_advdiff/GAD_FLUX_LIMITER.h
ViewVC logotype

Contents of /MITgcm/pkg/generic_advdiff/GAD_FLUX_LIMITER.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Mon Dec 16 21:17:18 2013 UTC (10 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65o, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64s, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, HEAD
Changes since 1.5: +8 -2 lines
File MIME type: text/plain
add formula for MINMOD limiter

1 C $Header: /u/gcmpack/MITgcm/pkg/generic_advdiff/GAD_FLUX_LIMITER.h,v 1.5 2001/09/19 20:45:09 adcroft Exp $
2 C $Name: $
3
4 CBOP
5 C !ROUTINE: GAD_FLUX_LIMITER.h
6
7 C !INTERFACE:
8 C #include "GAD_FLUX_LIMITER.h"
9 C _RL Limiter
10 C Limiter(Cr)
11
12 C !DESCRIPTION:
13 C Contains statement function defining limiter function.
14 C
15 C A trivial limit for the limiter recovers the upwind scheme:
16 C \begin{equation*}
17 C Limiter(Cr)=0
18 C \end{equation*}
19 C Lax-Wendroff is recovered with:
20 C \begin{equation*}
21 C Limiter(Cr)=1
22 C \end{equation*}
23 C The Min-Mod limiter is obtained with:
24 C \begin{equation*}
25 C Limiter(Cr)=max(0,min(1,Cr))
26 C \end{equation*}
27 C The current limiter of choice is the "Superbee" limiter:
28 C \begin{equation*}
29 C Limiter(Cr)=max(0,max(min(1,2*Cr),min(2,Cr)))
30 C \end{equation*}
31 C which is the default.
32 CEOP
33
34 C Statement function to describe flux limiter
35 _RL Limiter
36 C Upwind Limiter(Cr)=0.
37 C Lax-Wendroff Limiter(Cr)=1.
38 C Min-Mod Limiter(Cr)=max(0.,min(1.,Cr))
39 C Suberbee Limiter(Cr)=max(0.,max(min(1.,2*Cr),min(2.,Cr)))
40
41 c Limiter(Cr)=0.
42 c Limiter(Cr)=1.
43 c Limiter(Cr)=max(0.D0,min(1.D0,Cr))
44 Limiter(Cr)=max(0.D0,max(min(1.D0,2.D0*Cr),
45 & min(2.D0,Cr)))

  ViewVC Help
Powered by ViewVC 1.1.22