WINDSGEN

Copyright (c) 2024 MPI-M, Clara Bayley

—– CLEO —– File: windsgen.py Project: thermobinary_src Created Date: Wednesday 26th March 2025 Author: Clara Bayley (CB) Additional Contributors: —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– File Description: Various ways of generating wind fields (wvel, vvel and uvel) to read into CLEO

class cleopy.thermobinary_src.windsgen.ConstUniformWinds(WVEL, UVEL, VVEL)[source]

create winds that’s constant in time and uniform throughout the domain

class cleopy.thermobinary_src.windsgen.DryAdiabat2DFlowField(WMAX, Zlength, Xlength, VVEL, dryadiabat)[source]

create winds that are constant in time in a 2D (z,x) dependent flow field. Divergence free field with density dependence assuming dry adiabat. Equations derived from Arabas et al. 2015 (sect 2.1)

class cleopy.thermobinary_src.windsgen.Simple2DFlowField(config_filename, constants_filename, WMAX, Zlength, Xlength, VVEL)[source]

create winds that are constant in time in a 2D (z,x) dependent flow field assumign dry hydrostatic adiabat for density profile. Equations derived from Arabas et al. 2015 (sect 2.1)

class cleopy.thermobinary_src.windsgen.SinusoidalUpdraught(WMAX, UVEL, VVEL, Wlength)[source]

creates constant in time wind field with sinusoidal vertial velocity profile ‘wwel’ and optionally uniform horizontal (uvel, vvel) wind field

wvel_profile(gbxbounds, ndims, ntime)[source]

returns updraught (w always >=0.0) sinusoidal profile with amplitude WMAX and wavelength 2*Wlength

cleopy.thermobinary_src.windsgen.constant_winds(ndims, ntime, WVEL, UVEL, VVEL)[source]

create dictionary for winds, array are empty by default, or given constant values WVEl, UVEL and VVEL. Here, shape_[X]face = no. data for wind velocity component defined on gridbox [X] faces