From 168596f9e4fe28bac69d355ccc072cdfe283199c Mon Sep 17 00:00:00 2001 From: Dipanjan Majumdar Date: Sat, 10 May 2025 18:06:18 +0100 Subject: [PATCH 1/3] Updated default setting for some of the variables under &RUN. --- docs/udales-namoptions-overview.md | 14 ++++++++------ src/modstartup.f90 | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/udales-namoptions-overview.md b/docs/udales-namoptions-overview.md index d274d847e..ffb9987ea 100755 --- a/docs/udales-namoptions-overview.md +++ b/docs/udales-namoptions-overview.md @@ -14,17 +14,19 @@ This list refers to the original code-base [DALES](https://github.com/dalesteam/ | lwarmstart | .false. | .true. or .false. | If .true. simulation reads in restart file to initialize fields. | - | | startfile | '' | 'initd00001234_xxx_xxx.000'| Name of restart file, the last three digits should match iexpnr. | - | | runtime | 300 | > 0 | Simulation time. | [s] | -| dtmax | 20 | > 0 | Maximum allowed numerical integration timestep. | [s] | | trestart | 10000. | 0 < trestart < runtime | Time at which restart files are written, trestart > runtime will prevent restart files being written. | [s] | +| dtmax | 20 | > 0 | Maximum allowed numerical integration timestep. | [s] | | ladaptive | .false. | .true. or .false. | Switch for adaptive time-stepping, .true. recommended. | - | -| irandom | 0 | `INTEGER` > 0 | Seed for random number generation. | - | -| randu | 0.0 |`REAL` > 0 | Amplitude of velocity field randomisation. | [m/s] | -| randthl | 0.0 | `REAL` > 0 | Amplitude of temperature field randomisation. | [K] | -| randq | 0.0 | `REAL` > 0 | Amplitude of moisture field randomisation. | [kg/kg] | | courant | 1.1 | 1 <= courant <=2 | Courant number, default sets it to 1.5 or 1.1 (if Kappa or upwind scheme is used). | - | +| lrandomize | .true. | .true. or .false. | Switch that determines whether initial field is randomised.| - | +| irandom | 43 | `INTEGER` > 0 | Seed for random number generation. | - | +| randu | 0.01 |`REAL` > 0 | Amplitude of velocity field randomisation. | [m/s] | + | libm | .true. | .true. or .false. | Switch that determines whether the Immersed Boundary Method is turned on. | - | | lles | .true. | .true. or .false. | Switch that determines whether the subgrid model is turned on or constant ekm and ekh are used (DNS). | - | -| lrandomize | .true. | .true. or .false. | Switch that determines whether initial field is randomised.| - | | nprocx | - | `INTEGER` > 0 | Number of pencils in the x-direction (see 2decomp documentation [https://2decomp-fft.github.io/]), must be a divisor of itot. | - | | nprocy | - | `INTEGER` > 0 | Number of pencils in the y-direction (see 2decomp documentation [https://2decomp-fft.github.io/]), must be a divisor of jtot and ktot. | - | diff --git a/src/modstartup.f90 b/src/modstartup.f90 index d7b475e60..bd73eb63a 100644 --- a/src/modstartup.f90 +++ b/src/modstartup.f90 @@ -39,9 +39,9 @@ module modstartup ! public :: startup,trestart save - integer(KIND=selected_int_kind(6)) :: irandom = 0 ! * number to seed the randomnizer with + integer(KIND=selected_int_kind(6)) :: irandom = 43 ! * number to seed the randomnizer with integer :: krand = huge(0) ! returns the largest integer that is not an infinity - real :: randu = 0.0, randthl = 0.0, randqt = 0.0 ! * uvw,thl and qt amplitude of randomnization + real :: randu = 0.01, randthl = 0.0, randqt = 0.0 ! * uvw,thl and qt amplitude of randomnization contains From ad545f9ef510b2cc9057e0088f9e68bbeea63534 Mon Sep 17 00:00:00 2001 From: Dipanjan Majumdar Date: Sun, 11 May 2025 11:29:20 +0100 Subject: [PATCH 2/3] Updated default setting of some of the input variables. --- docs/udales-namoptions-overview.md | 8 ++++---- src/modglobal.f90 | 2 +- src/modsubgriddata.f90 | 2 +- src/modsurfdata.f90 | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/udales-namoptions-overview.md b/docs/udales-namoptions-overview.md index ffb9987ea..6c8c5ec84 100755 --- a/docs/udales-namoptions-overview.md +++ b/docs/udales-namoptions-overview.md @@ -47,8 +47,8 @@ This list refers to the original code-base [DALES](https://github.com/dalesteam/ | Name | Default | Possible values | Description | Unit | | ---- | ------- | --------------- | ----------- | ---- | -| ps | -1 | `REAL` > 0 | Air pressure at surface, recommend using standard pressure.| [Pa] | -| igrw_damp | 0 | 0, 1. | Switch to enable gravity wave damping.| - | +| ps | 101325 | `REAL` > 0 | Air pressure at surface, recommend using standard pressure.| [Pa] | +| igrw_damp | 0 | 0, 1, 2, 3 | Integer switch to enable gravity wave damping.| - | | ltempeq | .false. | .true. or .false. | Switch for solving temperature equation. | - | | lbuoyancy | .false. | .true. or .false. | Switch for buoyancy force in temperature equation. | - | | lmoist | .false. | .true. or .false. | Switch for solving moisture equation. | - | @@ -95,7 +95,7 @@ Possible advection schemes: | Name | Default | Possible values | Description | Unit | | ---- | ------- | --------------- | ----------- | ---- | | lqlnr | .false. | .true. or .false. | Logical for calculation of liquid water concentration. | - | -| ipoiss | 0 | 0 | Poisson solver. 0 = Fast Fourier Transform. | - | +| ipoiss | 0 | 0 | Poisson solver. 0 = using 2D Fast Fourier Transform. | - | | iadv_mom | 2 | 2 | Advection scheme for momentum. | - | | iadv_tke | 2 | 2 | Advection scheme for TKE. Only used if `loneeqn = True`. | - | | iadv_thl | 2 | 2 | Advection scheme for temperature. | - | @@ -158,7 +158,7 @@ BCs at the bottom (BCbot; only effective if not covered with ground facets): 1 = | Name | Default | Possible values | Description | Unit | | ---- | ------- | --------------- | ----------- | ---- | -| lvreman | .false. | .true. or .false. | Switch for Vreman (2004) sub-grid scheme. | - | +| lvreman | .true. | .true. or .false. | Switch for Vreman (2004) sub-grid scheme. | - |