Changes between Version 40 and Version 41 of ModulesOnAstroBear


Ignore:
Timestamp:
01/23/13 07:29:20 (12 years ago)
Author:
Jonathan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ModulesOnAstroBear

    v40 v41  
    103103There are two major data arrays in {{{InfoDef}}}: the {{{q}}} array and the {{{aux}}} array.  {{{q}}} holds the volume averaged data and is used by all AstroBEAR simulations while {{{aux}}} holds face averaged data and is used only for MHD when nDim > 1.  Note that volume averaged data and cell-centered data are often used interchangeably, but there is an important distinction.  Take for instance a simple function f(x) defined on the interval [0:h].  The average of f(x) over the interval is
    104104
    105  f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/3+...
     105 f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/6+...
    106106
    107107where the cell centered value is
    108108
    109  f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/6+...
     109 f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/8+...
    110110
    111111so the cell centered value is second order accurate for the volume average and usually is a quick way to estimate the volume average.  However if the function has large 2nd derivatives (or higher) this can lead to large errors in the volume average.  This is often apparent when modeling discontinuities along curved boundaries.  There are two ways to handle this problem: