Adaptive mesh refinement (AMR) is a design feature of numerical models handling multi-dimensional data such as fields. Examples include qualities spread over three dimensions such as gas density, pressure and flow, temperature, and magnetic fields. Models can make use of a mesh, modeling the values at mesh points, the amount of detail depending upon the mesh density. If more detail is needed in just some regions either to model correctly or to provide model output, some method may be used to use a finer mesh in just those regions, which requires more calculation. The goal is to provide model accuracy an precision while keeping the amount of calculation tractable.
The method, for example, can be used for atmospheric modeling (Earth weather prediction), design of devices involving fluid dynamics (water pipes, rocket engines), and astronomical phenomena including stars, stellar magnetic fields, galaxies, and cosmological simulations of the entire universe.