Source code for pySD.initsuperdropsbinary_src.dryrgens
"""Copyright (c) 2024 MPI-M, Clara Bayley----- CLEO -----File: dryrgens.pyProject: initsuperdropsbinary_srcCreated Date: Wednesday 27th December 2023Author: Clara Bayley (CB)Additional Contributors:-----Last Modified: Tuesday 7th May 2024Modified By: CB-----License: BSD 3-Clause "New" or "Revised" Licensehttps://opensource.org/licenses/BSD-3-Clause-----File Description:various ways of generating dryradii ofsuperdroplets for their initial conditions"""
[docs]classScaledRadiiGen:"""method to generate superdroplet dryradii that are the radii divided by a scale factor 'sf'"""def__init__(self,scale_factor):self.sf=scale_factordef__call__(self,radii):"""Returns dryradii for nsupers [m]"""returnradii/self.sf# units [m]