103 | | There 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 |
104 | | |
105 | | f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/6+... |
106 | | |
107 | | where the cell centered value is |
108 | | |
109 | | f(0)+d,,1,,f(0)h/2+d,,2,,f(0)h^2^/8+... |
| 103 | There 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 $[-h/2:h/2]$. Applying a Taylor expansion to $f$ and finding the average of $f(x)$ gives |
| 104 | |
| 105 | $\bar{f}=f(0)+\frac{1}{24} f''(0) h^2 + ...$ |
| 106 | |
| 107 | where the cell centered value is $f(0)$ |