
We also include two parameters (s1, s2) so we can adjust the strength of the forcing compared to the smoothing (second derivative term). That gives our semi-discrete equation for the rates as

Here's an example of the algorithm applied to an initial condition made-up of a couple exponential functions.

It shows that the delta-x decreases in areas of high gradients and increases in areas of zero derivative. The wave gets diffused pretty significantly because of the backward Euler time integration scheme.
Another illustrative example of this adaptive grid scheme is shown below. The initial condition is a couple wavelengths of cosine. This example shows that we probably want to force grid points into areas of high curvature (second derivative) as well as high first derivative. Notice the large delta-x around the peaks of each wave, zero derivative in this area, but large second derivative.

Good, early paper on grid transformations
ReplyDeleteDr Mitchell at NIST has a recent paper on a collection of test cases for adaptive grid methods in 2D (focused on elliptic problems, but the ideas are portable).
ReplyDeleteHere's a little summary of some challenges for using adaptive meshes for climate modeling.
ReplyDeleteADAPTIVE MESH REFINEMENT USING WAVE-PROPAGATION ALGORITHMS FOR HYPERBOLIC SYSTEMS [pdf]
ReplyDeleteAbstract:An adaptive mesh refinement algorithm developed for the Euler equations of gas dynamics has been extended to employ high-resolution wave-propagation algorithms in a more gen- eral framework. This allows its use on a variety of new problems, including hyperbolic equations not in conservation form, problems with source terms or capacity functions, and logically rectangular curvilinear grids. This framework requires a modified approach to maintaining consistency and conservation at grid interfaces, which is described in detail. The algorithm is implemented in the amrclaw package, which is freely available.
Keywords: adaptive mesh refinement, hyperbolic conservation laws, high resolution, Godunov, finite-volume methods, gas dynamics, acoustics, software
Transformation Relations from the classic Numerical Grid Generation: Foundations and Applications
ReplyDelete