Changes between Version 10 and Version 11 of doc/tec/advection


Ignore:
Timestamp:
Jan 10, 2011 1:33:57 PM (14 years ago)
Author:
suehring
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/advection

    v10 v11  
    66\[ \frac{\partial \psi}{\partial t} & = & -\frac{\partial ( u \psi )}{\partial x}, \]
    77}}}
    8 the one dimensional advection equation can written in following semidiscrete form:
     8the one dimensional advection equation can be written in the following semidiscrete form:
    99{{{
    1010#!Latex
     
    1616\[F_{i\pm\frac{1}{2}} \]
    1717}}}
    18 denotes the fluxes staggered a half grid length related to the advected quantity. \\
     18denotes the fluxes staggered half a grid length related to the advected quantity. \\
    1919Wicker and Skamarock (2002) dicretized the 6^th^ and 5^th^ order fluxes as follows:
    2020{{{
     
    2626\[ F_{i-\frac{1}{2}}^{5} &=& F_{i-\frac{1}{2}}^{6} - \frac{|u_{i-\frac{1}{2}}|}{60} \left[10(\psi_{i}-\psi_{i-1}) -5(\psi_{i+1} - \psi_{i-2})-(\psi_{i+2} - \psi_{i-3}) \right] . \]
    2727}}}
    28 The 5^th^ order upwind discretization (WS5) consists of the centered non dissipative 6^th^ (WS6) order flux and an artificial added numerical dissipation term. This term is necessary to stabilize the numerical solution, because higher order centered fluxes exhibits worse stability properties.The absolute value assures a dissipative effect also for u < 0.
     28The 5^th^ order upwind discretization (WS5) consists of the centered non dissipative 6^th^ (WS6) order flux and an artificially added numerical dissipation term. This term is necessary to stabilize the numerical solution, because higher order centered fluxes exhibits worse stability properties. The absolute value of the advective velocity component at the beginning of the dissipation term removes a sign-dependent effect of the velocity and assures a dissipative effect also for u < 0.
    2929
    3030=== Numerical properties ===
     
    4848\]
    4949}}} 
    50 characterizes stability properties and i is a complex number.
    51 κ,,eff,, is the effective wavenumber of a mode in fourier space which characterizes the modified wavenumber through the discretization. The real part of the effective wavenumber describes the dispersion error, the imaginary part the dissipation error. \\\\
     50characterizes stability properties and i is the imaginary unit.
     51κ,,eff,, is the effective wavenumber of a mode in fourier space and characterizes the modified wavenumber through the discretization. The real part of the effective wavenumber describes the dispersion error, the imaginary part the dissipation error. \\\\
    5252[[Image(prop.png, 700px, border=1)]] \\
    53 Fig. 1 shows the dispersion and dissipation error as a function of the dimensionless wavenumber κ Δx for WS3, WS4, WS5, WS6 and the 2^nd^ order scheme of Piascek and Williams (1970) (PW).
    54 The dispersion error of the upwind schemes and the dispersion error of the next higher even ordered scheme are identical. Generally the dispersion error decreases with increasing order of the dicretization. However, no scheme is able to resolute wavelength with the range near 2-Δx.
    55 The centered even ordered schemes holds no dissipation errors. The numerical dissipation is more local with increasing order, so the maximal affected wavelength by the dissipation term is round about 8-Δx with WS5, whereat with WS3 16-Δx waves are still affected. Accordingly to a maximum of the amplification factor at κ Δx = 1.69 in conjunction with the used Runge-Kutta method (Baldauf, 2008), the 5^th^ order dissipation is more than sufficient to avoid instabilities.
    56 The maximal stable Courant-number is C,,r,, = 1.4 (Wicker and Skamarock, 2002), (Baldauf, 2008).
     53Fig. 1 shows the dispersion and dissipation error as a function of the dimensionless wavenumber κ Δx for WS3 (3^rd^ order scheme), WS4 (4^th^ order scheme), WS5, WS6 and the 2^nd^ order scheme of Piascek and Williams (1970) (PW).
     54The dispersion error of the upwind schemes and the dispersion error of the next higher, even ordered scheme are identical. Generally the dispersion error decreases with increasing order of the dicretization. However, no of the depicted schemes is able to adequately resolve structures with wavelengths near 2-Δx (generally no scheme based on finite differences is capable to do this).
     55The centered, even ordered schemes hold no dissipation errors. With increasing order the numerical dissipation is more local. So the maximum wavelength affected by the dissipation term is round about 8-Δx with WS5, whereas wavelength of 16-Δx are still affected with WS3. Accordingly to the maximum of the amplification factor at κ Δx = 1.69 (these waves become unstable at first) in conjunction with the used Runge-Kutta method (Baldauf, 2008), the 5^th^ order dissipation is sufficient to avoid instabilities.
     56The maximum stable Courant-number is C,,r,, = 1.4 (Baldauf, 2008).
    5757
    58 '''Note: A stable numerical solution can only guaranteed with the 3 rd order Runge-Kutta method.'''
     58'''Note: A stable numerical solution can only be guaranteed with the 3 rd order Runge-Kutta method.'''
    5959
    6060=== Boundaries ===
    6161
    62 Due to the large stencil of WS5 additional ghost layers are necessary on each lateral boundary of each processor subdomain to avoid local data dependencies. Therefor the exchange of ghost layers is adapted to a dynamic number of ghost layers.
    63 For the bottom and top boundaries a successive degradation from WS5 to WS3 to a 2^nd^ order scheme is required to avoid unphysical fluxes which would arise from the bottom and top ghost layers. The used 2^nd^ order scheme is based on a flux discretization to ensure consistency with the WS-schemes. So the skew symmetric PW-scheme cannot be used. Furthermore an additional numerical dissipation term of 2^nd^ order, based on (Shchepetkin and McWilliams, 1998) is required for the 2^nd^ order scheme to perform a numerical stable switching of advection schemes of different order.
    64 These successive degradation is also done for the lateral radiation boundary condition at the outflow and near topography (Note: Topography is not implemented at the moment.)
     62Due to the large stencil of WS5, additional ghost layers are necessary on each lateral boundary of each processor subdomain to avoid local data dependencies. Therefor the exchange of ghost layers is adapted to a dynamic number of ghost layers.
     63For the bottom and top boundaries a successive degradation from WS5 to WS3 to a 2^nd^ order scheme is required to avoid unphysical fluxes which would arise from the bottom and top ghost layers. The used 2^nd^ order scheme is based on a flux discretization to ensure consistency with the WS-schemes. The PW-scheme cannot be used, because its a skew symmetric dicretization. Furthermore an additional numerical dissipation term of 2^nd^ order, based on (Shchepetkin and McWilliams, 1998) is required for the 2^nd^ order scheme to perform a numerically stable switching of advection schemes of different order.
     64These successive degradation is also done for the lateral radiation boundary condition at the outflow and near topography (Note: Topography is not implemented at the moment).
    6565
    6666
    67 === Statical evaluation of turbulent fluxes ===
     67=== Statistical evaluation of turbulent fluxes ===
    6868
    69 The evaluation of turbulent fluxes should be consistent to the discretization in the prognostic equations, else some unphysical effects will occur. For example, the computation of the fluxes as variances and covariances will induce some conspicuous kinks in the vertical heat and momentum fluxes near the surface, while the temperature and velocity profiles show no conspicuity. For computing turbulent fluxes as appearing in the prognostic equations the computed fluxes in the advection routines are buffered and reused also for the statistics. For getting only the turbulent, not the mean signal and to remove the influence of Galilei transformation, the centered flux F,,i+1/2,, has to be multiplied with a factor
     69The evaluation of turbulent fluxes should be consistent with the discretization in the prognostic equations because otherwise some unphysical effects occur. For example the computation of the turbulent fluxes as variances and covariances induces some conspicuous kinks in the vertical heat and momentum fluxes near the surface, while the temperature and velocity profiles show no conspicuity. In order to compute the turbulent fluxes as they appear in the prognostic equations, the fluxes are computed in the advection routines, buffered and then reused for the statistics. To receive the turbulent and not the mean signal and to remove the influence of Galilei transformation, the centered flux F,,i+1/2,, has to be multiplied with a factor
    7070{{{
    7171#!Latex
    7272\[ \frac{u_{i+\frac{1}{2}} - 2 \overline u}{u_{i+\frac{1}{2}} - u_{i, Galilei}} \]
    7373}}}
    74 and the dissipative flux with a factor
     74and the dissipative flux has to be multiplied with a factor
    7575{{{
    7676#!Latex
    7777\[ \frac{|u_{i+\frac{1}{2}} - 2 \overline u|}{|u_{i+\frac{1}{2}} - u_{i, Galilei}|}, \]
    7878}}}
    79 where u denotes the respective velocity component. Furthermore the turbulent fluxes are evaluated on each Runge-Kutta substep and weighted with the respective Runge-Kutta coefficients to remove dependencies of the Runge-Kutta substep. The interpretation of the turbulent fluxes as variances and covariances is no longer valid when using WS5. For other advection schemes like the PW-scheme the interpretation of turbulent fluxes as co/variances is still valid, because the discretization is alike the computation of the co/variances. 
     79where u denotes the corresponding velocity component. Furthermore, the turbulent fluxes are evaluated on each Runge-Kutta substep and weighted with the respective Runge-Kutta coefficients to remove dependencies of the Runge-Kutta substeps. The interpretation of the turbulent fluxes as variances and covariances is no longer valid when using WS5. For other advection schemes, like the PW-scheme, the interpretation of turbulent fluxes as co/variances is still valid, because the discretization is alike the computation of the co/variances. 
    8080
    8181=== References ===