GfsRefine
From Gerris
GfsRefine is typically used to define the number of initial refinement levels.
The syntax in parameter files is as follows:
GfsRefine [ GfsFunction ]
Examples
- B\'enard--von K\'arm\'an Vortex Street for flow around a cylinder at Re=160
- Vortex street around a "heated" cylinder
- Rayleigh-Taylor instability
- Turbulent air flow around RV Tangaroa
- Coalescence of a pair of Gaussian vortices (Gerris logo)
- Lunar tides in Cook Strait, New Zealand
- "Garden sprinkler effect" in wave model
- Convergence of the Poisson solver
- Convergence with a refined circle
- Convergence of the Poisson solver with solid boundaries
- Star-shaped solid boundary with refinement
- Star-shaped solid boundary
- Thin wall at box boundary
- Poisson solution in a dumbbell-shaped domain
- Convergence of the Godunov advection scheme
- Time-reversed VOF advection in a shear flow
- Time-reversed advection with curvature-based refinement
- Estimation of the numerical viscosity
- Estimation of the numerical viscosity with refined box
- Convergence for a simple periodic problem
- Convergence for the three-way vortex merging problem
- Potential flow around a sphere
- Viscous flow past a sphere
- Mass conservation
- Mass conservation with solid boundary
- Lid-driven cavity at Re=1000
- Lid-driven cavity at Re=1000 (explicit scheme)
- Poiseuille flow
- Creeping Couette flow of Generalised Newtonian fluids
- Momentum conservation for large density ratios
- Hydrostatic balance with solid boundaries and viscosity
- Hydrostatic balance with quadratic pressure profile
- Convergence of a potential flow solution
- Flow through a divergent channel
- Potential flow around a thin plate
- Circular droplet in equilibrium
- Axisymmetric spherical droplet in equilibrium
- Planar capillary waves
- Air-Water capillary wave
- Fluids of different densities
- Pure gravity wave
- Shape oscillation of an inviscid droplet
- Geostrophic adjustment
- Geostrophic adjustment on a beta-plane
- Coastally-trapped waves
- Coastally-trapped waves with adaptive refinement
- Gravity waves in a realistic ocean basin
Refine 6
Refine 6
Refine 7
Refine 5
Refine 6
Refine (sqrt(x*x + y*y) < 0.0625 ? 12 : 6)
Refine 6
Refine 6
Refine LEVEL
Refine (x*x + y*y <= 0.25*0.25 ? LEVEL + 2 : LEVEL)
Refine LEVEL
Refine LEVEL
Refine LEVEL
Refine LEVEL
Refine 3
Refine LEVEL
Refine 8
Refine 8
Refine LEVEL
Refine (x > 0.25 || x < -0.25 || y > 0.25 || y < -0.25 ? LEVEL : LEVEL + 1)
Refine (x < -0.25 || x > 0.25 || y < -0.25 || y > 0.25 ? LEVEL : LEVEL + BOX)
Refine {
double r = sqrt(x*x + y*y);
switch (LEVEL) {
case 6: return r > 0.25 ? 4 : r > 0.15 ? 5 : 6;
case 7: return r > 0.25 ? 4 : r > 0.2 ? 5 : r > 0.15 ? 6 : 7;
case 8: return r > 0.25 ? 4 : r > 0.2 ? 5 : r > 0.175 ? 6 : r > 0.15 ? 7 : 8;
case 9: return r > 0.25 ? 4 : r > 0.2 ? 5 : r > 0.175 ? 6 : r > 0.1625 ? 7 : r > 0.15 ? 8 : 9;
}
}
Refine 4
Refine (LEVEL + 1./50.*(x*x + y*y)*(4. - LEVEL))
Refine 4
Refine (LEVEL + 1./50.*(x*x + y*y)*(4. - LEVEL))
Refine 6
Refine (x < 0. ? 7 : 8)
Refine 6
Refine 6
Refine LEVEL
Refine 6
Refine level
Refine 3
Refine 3
Refine LEVEL
Refine LEVEL
Refine 5
Refine LEVEL
Refine LEVEL
Refine floor(LEVEL + 1 - (LEVEL - 2)*fabs(y)/1.5)
Refine floor(LEVEL + 1 - (LEVEL - 2)*fabs(y)/1.5)
Refine floor(LEVEL + 1 - (LEVEL - 2)*fabs(y)/1.5)
Refine LEVEL
Refine LEVEL
Refine 6
Refine 6
Refine LEVEL
Refine LEVEL
Refine 6

