CREATE_THERMODYNAMICS

—– CLEO —– File: create_thermodynamics.py Project: thermobinary_src Created Date: Friday 13th October 2023 Author: Clara Bayley (CB) Additional Contributors: —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– Copyright (c) 2023 MPI-M, Clara Bayley —– File Description:

cleopy.thermobinary_src.create_thermodynamics.check_datashape(thermodata, ndata, ndims, ntime)[source]

make sure each superdroplet attribute in data has length stated in ndata and that this length is compatible with the nummber of attributes and superdroplets expected given ndata

cleopy.thermobinary_src.create_thermodynamics.ctype_compatible_thermodynamics(thermodata)[source]

check type of gridbox boundaries data is compatible with c type double. If not, change type and raise error

cleopy.thermobinary_src.create_thermodynamics.thermoinputsdict(config_filename, constants_filename)[source]

create values from constants file & config file required as inputs to create initial superdroplet conditions

cleopy.thermobinary_src.create_thermodynamics.write_thermodynamics_binary(thermofiles, thermodyngen, config_filename, constants_filename, grid_filename)[source]

write binarys for thermodynamic data over time on C staggered grid. So that pressure, temperature, qvap and qcond are defined at centres of gridboxes, whereas wind velocities are defined at faces