READ_INITSUPERDROPS

Copyright (c) 2024 MPI-M, Clara Bayley

—– CLEO —– File: read_initsuperdrops.py Project: initsuperdropsbinary_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 —– File Description:

cleopy.initsuperdropsbinary_src.read_initsuperdrops.get_superdroplet_attributes(config_filename, constants_filename, initsupers_filename)[source]

get gridbox boundaries from binary file and re-dimensionalise usign COORD0 const from constants_filename

cleopy.initsuperdropsbinary_src.read_initsuperdrops.log10r_frequency_distribution(radius, hedgs, wghts)[source]

get distribution of data with weights ‘wghts’ against log10(r). Uses np.histogram to get frequency of a particular value of data that falls in each bin (with each bin defined by it’s edges ‘hedgs’). Return distirbution alongside the radius bin centers and widths in [m]

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_initGBxs_attrdistribs(config_filename, constants_filename, initsupers_filename, grid_filename, gbxs2plt, savefigpath, savefig, savelabel)[source]

plot initial superdroplet distribution from initsupersfile binary of every gridbox with index in gbx2plts

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_initGBxs_distribs(config_filename, constants_filename, initsupers_filename, grid_filename, gbxs2plt, savefig=False, savefigpath=None, savelabel='')[source]

plot initial superdroplet distribution from initsupersfile binary of every gridbox with index in gbx2plts

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_initGBxs_dropletmasses(config_filename, constants_filename, initsupers_filename, grid_filename, gbxs2plt, savefigpath, savefig, savelabel)[source]

plot initial superdroplet mass distributions from initsupersfile binary of every gridbox with index in gbx2plts

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_masssolutedistrib(ax, hedgs, xi, radius, msol, vol)[source]

get and plot frequency of real droplets in each log10(r) bin

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_numconcdistrib(ax, hedgs, xi, radius, vol)[source]

get and plot frequency of real droplets in each log10(r) bin

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_radiusdistrib(ax, hedgs, radius, xi)[source]

get and plotthe superdroplet radius in each log10(r) bin and as a scatter on a twinx axis with their multiplicities

cleopy.initsuperdropsbinary_src.read_initsuperdrops.plot_totmassdistrib(ax, hedgs, xi, radius, msol, vol, RHO_L, RHO_SOL)[source]

get and plot frequency of real droplets in each log10(r) bin

cleopy.initsuperdropsbinary_src.read_initsuperdrops.read_dimless_superdrops_binary(filename, isprint=True)[source]

return dimenionsless gbx boundaries by reading binary file

cleopy.initsuperdropsbinary_src.read_initsuperdrops.totmass(radius, msol, RHO_L, RHO_SOL)[source]

droplet totmass = mass of water + solute