Changes between Version 3 and Version 4 of doc/app/examples/dns


Ignore:
Timestamp:
Jun 18, 2019 2:13:33 PM (6 years ago)
Author:
Giersch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified doc/app/examples/dns

    v3 v4  
    1 This chapter provides an example for a DNS validation run, where free convection over a heated plate was investigated. The reference for this simulation is case NsD from [#mellado2012 Mellado (2012)]. To save computational costs, the computationally cheaper case described in the appendix of [#mellado2012 Mellado (2012)] is attached. In the following, some background knowledge is given, to explain the settings in the attached _p3d file.
     1This chapter provides an example for a DNS validation run, where free convection over a heated plate was investigated. The reference for this simulation is case NsD from [#mellado2012 Mellado (2012)]. To save computational costs, the computationally cheaper case described in the appendix of [#mellado2012 Mellado (2012)] is attached. In the following, some background knowledge is given, to explain the simulation setup.
    22
    3 Apart from RANS and LES simulations, PALM can also be used to perform Direct Numerical Simulations (DNSs). In contrast to the RANS mode, there is no need to adjust PALM's system of equations. DNSs can be performed by just using appropriate settings in the _p3d file. The following terms in the equation of motion differ from each other depending on the used mode (left DNS, right LES mode, for more info see also [wiki:doc/tec/gov#Governingequations governing equations] and [wiki:doc/tec/sgs#Deardorffsubgrid-scalemodel subgrid-scale model]):
     3Apart from RANS and LES simulations, PALM can also be used to perform Direct Numerical Simulations (DNSs). In contrast to the RANS mode, there is no need to adjust PALM's system of equations. DNSs can be performed by just using appropriate settings in the _p3d file. The following terms in the equation of motion differ from each other depending on the used mode (left from ≠ DNS, right from ≠ LES mode, for more info see also [wiki:doc/tec/gov#Governingequations governing equations] and [wiki:doc/tec/sgs#Deardorffsubgrid-scalemodel subgrid-scale model]):
    44
    55{{{
     
    2121}}}
    2222
    23 Therefore, the governing equations implemented in the code are valid for DNS if a constant [../../inipar#km_constant eddy diffusivity] (''K'',,m,,) is used for the flow. In this way, no TKE is computed (''e''=0) and the not equal signs from the equation above change to equal signs. For DNS, the term eddy diffusivity is not valid anymore. Instead, we specify with [../../inipar#km_constant km_constant] the kinematic viscosity ''ν'',,m,, and molecular diffusivity ''ν'',,h,, for heat. In the medium air, these values are roughly 1.76e-5 if a [../../inipar#prandtl_number Prandtl number] of 1 is used. The grid spacings Δ need to be comparable to the Kolmogorov length characterizing the smallest scales inside the turbulent region to ensure a DNS. With the general assumption that the Kolmogorov length is comparable to the diffusion length ''z'',,0,, characterizing the diffusive sublayer next to the wall, we can estimate Δ from, e.g. (see [#mellado2012 Mellado (2012)])
     23Therefore, the governing equations implemented in the code are valid for DNS if a constant [../../inipar#km_constant eddy diffusivity] (''K'',,m,,) is used for the flow. In this way, no TKE is computed (''e''=0) and the not equal signs from the equation above change to equal signs. For DNS, the term eddy diffusivity is not valid anymore. Instead, we specify with [../../inipar#km_constant km_constant] the kinematic viscosity ''ν'',,m,, and molecular diffusivity ''ν'',,h,, for heat. In the medium air, these values are equal and have a magnitude of roughly 1.76e-5 if a [../../inipar#prandtl_number Prandtl number] of 1 is used.
     24
     25The grid spacings Δ need to be comparable to the Kolmogorov length characterizing the smallest scales inside the turbulent region to ensure a DNS. With the general assumption that the Kolmogorov length is comparable to the diffusion length ''z'',,0,, characterizing the diffusive sublayer next to the wall, we can estimate Δ from, e.g. (see [#mellado2012 Mellado (2012)])
    2426
    2527{{{
     
    3032}}}   
    3133
    32 with ''b'',,0,, being the surface buoyancy, which is given from the boundary condition. Due to the fine grid spacing, only several tens of seconds can be simulated. A simulation with an [../../inipar#end_time end time] of 10s, 1024x1024x768 grid points, and grid spacings of 0.86e-3m needs about 1200 core hours on 512 CPUs already. Due to this short simulated time, the Coriolis force is switched off. The user code, which is also attached, can be used to provide similar initial conditions for the potential temperature/buoyancy profiles as described in [#mellado2012 Mellado (2012)] and to calculate further quantities like the convection scale or the convective Rayleigh number.
     34with ''b'',,0,, being the surface buoyancy, which is given from the boundary condition. Due to the fine grid spacing, only several tens of seconds can be simulated. A simulation with an [../../inipar#end_time end time] of 10s, 1024x1024x768 grid points, and grid spacings of 0.86e-3m needs about 1200 core hours on 512 CPUs already. Due to this short simulated time, the Coriolis force can be switched off.
     35
     36The user code, which is also attached, can be used to provide similar initial conditions for the potential temperature/buoyancy profiles as described in [#mellado2012 Mellado (2012)] and to calculate further quantities like the convection scale or the convective Rayleigh number.
    3337
    3438=== References ===