WAsP Configuration Parameters#
The WAsP model uses configuration parameters for the terrain and climate models.
These parameters can be accessed and modified through pywasp.wasp.Config.
Usage#
import pywasp as pw
# Create config with default parameters (WAsP 12.10)
conf = pw.wasp.Config()
# Or specify a parameter set
conf = pw.wasp.Config("WAsP_12.8")
# Access parameters by index or name
conf.climate[10] # by index
conf.climate["A0"] # by name (if defined)
# Modify parameters
conf.climate[10] = 1.8
# View all parameters
print(conf)
Climate Parameters#
Parameters for WAsP’s atmospheric boundary layer and wind profile models.
| Index | Name | Default | Units | Description |
|---|---|---|---|---|
| 10 | a0 | 1.8 | $A_{0}$-parameter in geostrophic drag law under neutral conditions | |
| 11 | b0 | 4.5 | $B_0$-parameter in neutral geostrophic drag law | |
| 44 | f_lim | 10 | Lower limit of absolute latitude for f in Rossby number | |
| 97 | water_roughness_length | water roughness length used in program |
Terrain Parameters#
Parameters for WAsP’s orography and roughness models.
| Index | Name | Default | Units | Description |
|---|---|---|---|---|
| 31 | decay_length | 10000 | m | Decay-length for importance of roughness relative to distance from center |
| 40 | upper_kink_ibl_profile | 0.3 | none | Factor for upper kink in roughness change wind profile in the ibl |
| 41 | lower_kink_ibl_profile | 0.09 | none | Factor for lower kink in roughness change wind profile in the ibl |
| 65 | sub_sector_no | 9 | Sub-sectors in roughness map analysis | |
| 67 | max_no_roughness_changes | 10 | Max number of roughness changes/sector. See \cite{Floors2018b} for description and sensitivity. This array is dimensioned in the variable mrchs in dimpar.f90. | |
| 68 | max_rms_error | 0.3 | Maximum root-mean square (rms) error in log(roughness) analysis of roughness changes for a given sector. Setting a lower error threshold will allow a higher number of roughness changes to be taken into consideration, for each sector. Choosing 0 causes this parameter to become inactive, with the maximum number of changes then set by parameter~67. | |
| 69 | use_displacement_height | 1 | add displacements to orographic grid if = 1, and reduce displacement slope near origin to parameter~70 | |
| 82 | roughness_analysis | 1 | none | rou analysis version: 0=old, =1 use spiderweb with old rou maps |
| 97 | water_roughness_length | 0.0002 ($2\times10^{-4}$) | m | water roughness length used in program |
Parameter Sets#
Pre-defined parameter sets corresponding to WAsP versions:
Parameter Set |
Profile Model |
Terrain Analysis |
|---|---|---|
|
-1 (c_g=1.65, powerlaw) |
0 (classic) |
|
1 (with baroclinicity) |
0 (classic) |
|
1 (with baroclinicity) |
1 (spider) |
|
3 (sectorwise stability + baroclinicity) |
1 (spider) |
See also
pywasp.wasp.ConfigAPI reference for the Config class.
pywasp.wasp.Climate.set_profile_model()Set the atmospheric profile model.
pywasp.wasp.Terrain.set_terrain_analysis()Set the terrain analysis method.