You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
The application of DG filters to conservative variables, e.g. "energy.ρe", can lead to grid imprinting in specific variables per unit mass, such as the potential temperature θ. This issue is demonstrated with an Anelastic1D simulation of a dry neutrally stratified Ekman layer in DG, using polynomial order N=4 and filtering in "energy.ρe". The setup to reproduce these results can be found in PR #2112.
In addition, there seems to exist leakage from momentum into the energy field. The potential temperature in this simulation should stay constant, since there is no buoyancy forcing of any kind. We will see below that this is not the case.
Finally, the horizontal velocity should develop the classical Ekman spiral over time, starting from an initial constant velocity profile. The vertical extent of the Ekman layer depends on the strength of SGS diffusion. Here, I consider two cases: 1) Constant kinematic viscosity of 0.1, 2) Smagorinsky-Lilly diffusion with parameter equal to 0.21.
To showcase the problem, I first perform a simulation using the aforementioned configuration for 9 simulation hours and NO FILTERING. Results are shown in the figure below for constant kinematic viscosity of 0.1.
Note that in the previous figure, the potential temperature field experiences perturbations that mimic the horizontal velocity structure. These perturbations are not physical, to my knowledge.
Grid imprinting is not an issue in the previous simulation. However, it appears when applying filtering. I consider now the same simulation, using Boyd Vandeven filtering with Nc=1, s=4, following the tutorial. The results are shown below,
Note that there is grid imprinting throughout the θ profile caused by the filter. Continuing through the examples in the tutorial, I use now Nc=1, s=8,
with no substantial change. The results change when going to Nc=1, s=32. I have now only included the θ profile and a zoom, since the velocity profile is equivalent to the others shown.
The situation improves with Nc=1, s=32, although the problem prevails with a smaller magnitude. Is this good enough? Let's look at a slightly more complicated case, where θ actually affects the dynamics of the Ekman layer: Smagorinsky-Lilly diffusion. I include below results for Nc=1, s=32 using this closure,
We can see that now the imprinting comes back. Note that I have adjusted the scale, the imprinting wavelength has not changed. We can see that using this closure, there is still noise in the velocity profile which was not present in the constant kinematic viscosity case. Shown below are results using Nc=1, s=4 and the same SGS closure,
The message is unchanged changing the filter parameters. To verify that the filter is the culprit using the Smagorinsky-Lilly closure, I run the simulation again without filter,
and the imprinting goes away.
Summary:
Grid imprinting in thermodynamic variables per unit mass when filtering conservative variables. Fix is probably to filter specific variables, @tapios. This should be made possible, and if it is already, we should probably issue a warning message when the conservative variables are filtered instead.
Grid imprinting is worse when these variables affect the dynamics, which will generally be the case (thanks, water vapor and stratification).
Leakage of momentum to specific thermodynamic variables, presumable due to the choice of prognostic variables. Not sure how to address this.
The text was updated successfully, but these errors were encountered:
I think that the strong grid imprinting here is caused by the filter acting on the full energy and not just the perturbation from the reference state. See below a plot of potential temperature at the final time using Boyd Vandeven filter with Nc=1, s=4 acting only on the energy perturbation.
Note that it is currently not straightforward to filter perturbations for a single prognostic variable (or a subset). This capability needs to be added to AtmosFilterPerturbations. Alternatively, filtering only the tendency (using the overintegration filter hooks) might be an option.
Thanks, @mwarusz. Filtering perturbations from reference state helps, but is not the general solution to the problem. Deviations from reference state can be substantial, and then the problem remains that we are filtering a quantity that does not physically mix. We should always filter conservable, specific (per unit mass) quantities. You can then still add filtering perturbations from reference state for the specific quantities.
And, yes, filtering tendencies rather than states helps too.
Description
The application of DG filters to conservative variables, e.g.
"energy.ρe"
, can lead to grid imprinting in specific variables per unit mass, such as the potential temperature θ. This issue is demonstrated with an Anelastic1D simulation of a dry neutrally stratified Ekman layer in DG, using polynomial orderN=4
and filtering in"energy.ρe"
. The setup to reproduce these results can be found in PR #2112.In addition, there seems to exist leakage from momentum into the energy field. The potential temperature in this simulation should stay constant, since there is no buoyancy forcing of any kind. We will see below that this is not the case.
Finally, the horizontal velocity should develop the classical Ekman spiral over time, starting from an initial constant velocity profile. The vertical extent of the Ekman layer depends on the strength of SGS diffusion. Here, I consider two cases: 1) Constant kinematic viscosity of 0.1, 2) Smagorinsky-Lilly diffusion with parameter equal to 0.21.
To showcase the problem, I first perform a simulation using the aforementioned configuration for 9 simulation hours and NO FILTERING. Results are shown in the figure below for constant kinematic viscosity of 0.1.
Note that in the previous figure, the potential temperature field experiences perturbations that mimic the horizontal velocity structure. These perturbations are not physical, to my knowledge.
Grid imprinting is not an issue in the previous simulation. However, it appears when applying filtering. I consider now the same simulation, using Boyd Vandeven filtering with
Nc=1, s=4
, following the tutorial. The results are shown below,Note that there is grid imprinting throughout the θ profile caused by the filter. Continuing through the examples in the tutorial, I use now
Nc=1, s=8
,with no substantial change. The results change when going to
Nc=1, s=32
. I have now only included the θ profile and a zoom, since the velocity profile is equivalent to the others shown.The situation improves with
Nc=1, s=32
, although the problem prevails with a smaller magnitude. Is this good enough? Let's look at a slightly more complicated case, where θ actually affects the dynamics of the Ekman layer: Smagorinsky-Lilly diffusion. I include below results forNc=1, s=32
using this closure,We can see that now the imprinting comes back. Note that I have adjusted the scale, the imprinting wavelength has not changed. We can see that using this closure, there is still noise in the velocity profile which was not present in the constant kinematic viscosity case. Shown below are results using
Nc=1, s=4
and the same SGS closure,The message is unchanged changing the filter parameters. To verify that the filter is the culprit using the Smagorinsky-Lilly closure, I run the simulation again without filter,
and the imprinting goes away.
Summary:
The text was updated successfully, but these errors were encountered: