|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Super-droplets initialization structure. More...
#include <ERF_SDInitialization.H>


Public Member Functions | |
| virtual | ~SDInitialization ()=default |
| void | readInputs (SDInputs &, const std::string &, const amrex::Geometry &, const MatVec &, const MatVec &) override |
| void | readInputs (SDInputs &a_in, const amrex::Geometry &a_geom, const MatVec &a_species_mat, const MatVec &a_aerosol_mat) |
| Read super-droplet initialization parameters from input file. More... | |
| void | printParameters (const MatVec &, const MatVec &) const override |
| int | numSDPerCell (const amrex::Real a_dv) const override |
| amrex::Real | numParticlesPerCell (const amrex::Real a_dv) const override |
| SDCellCounts | cellCounts () const override |
| Per-cell counts of this initialization. More... | |
Public Member Functions inherited from SDInitProperties | |
| virtual | ~SDInitProperties ()=default |
| virtual void | setDefaults (const amrex::Geometry &a_geom, const MatVec &a_species_mat, const MatVec &a_aerosol_mat) |
| Set default values for initialization parameters. More... | |
| void | getDistribution (amrex::Vector< amrex::Real > &a_mass, int a_np, amrex::Real a_density, SDDistributionType a_init_type, amrex::Real a_mass_min, amrex::Real a_mass_max, amrex::Real a_mass_mean, amrex::Real a_radius_min, amrex::Real a_radius_max, amrex::Real a_radius_mean, amrex::Real a_radius_gstd, std::mt19937 &a_rng) const |
| Get a distribution with constant multiplicity. More... | |
| void | getDistribution (amrex::Vector< amrex::Real > &a_mass, amrex::Vector< amrex::Real > &a_mult, amrex::Real a_dV, int a_np, amrex::Real a_density, SDDistributionType a_init_type, amrex::Real a_mass_min, amrex::Real a_mass_max, amrex::Real a_mass_mean, amrex::Real a_radius_min, amrex::Real a_radius_max, amrex::Real a_radius_mean, amrex::Real a_radius_gstd, std::mt19937 &a_rng) const |
| Get a distribution with sampled multiplicity. More... | |
| void | getAerosolDistribution (amrex::Vector< amrex::Real > &a_mass, const int a_idx, const int a_np, const amrex::Real a_density, std::mt19937 &a_rng) const |
| Compute the aerosol mass distribution. More... | |
| void | getAerosolDistribution (amrex::Vector< amrex::Real > &a_mass, amrex::Vector< amrex::Real > &a_mult, amrex::Real a_dV, int a_idx, int a_np, amrex::Real a_density, std::mt19937 &a_rng) const |
| Compute the aerosol mass distribution with sampled multiplicity. More... | |
| void | getSpeciesDistribution (amrex::Vector< amrex::Real > &a_mass, const int a_idx, const int a_np, const amrex::Real a_density, std::mt19937 &a_rng) const |
| Compute the species mass distribution with constant multiplicity. More... | |
| void | getSpeciesDistribution (amrex::Vector< amrex::Real > &a_mass, amrex::Vector< amrex::Real > &a_mult, amrex::Real a_dV, int a_idx, int a_np, amrex::Real a_density, std::mt19937 &a_rng) const |
| Compute the species mass distribution with sampled multiplicity. More... | |
| SDDistributionParams | getSpeciesDistParams (int a_idx, amrex::Real a_density, amrex::Real a_cell_volume, bool a_sampled_mult) const |
| Get GPU-compatible distribution parameters for a species. More... | |
| SDDistributionParams | getAerosolDistParams (int a_idx, amrex::Real a_density, amrex::Real a_cell_volume, bool a_sampled_mult) const |
| Get GPU-compatible distribution parameters for an aerosol. More... | |
| SDDistributionParams | makeDistributionParams (SDDistributionType a_init_type, amrex::Real a_mass_min, amrex::Real a_mass_max, amrex::Real a_mass_mean, amrex::Real a_radius_min, amrex::Real a_radius_max, amrex::Real a_radius_mean, amrex::Real a_radius_gstd, amrex::Real a_density, amrex::Real a_cell_volume, bool a_sampled_mult) const |
| Create GPU-compatible distribution parameters structure. More... | |
| bool | sampledMultiplicity () const |
| Determine whether multiplicity is sampled or constant. More... | |
| amrex::Real | volume () const |
| Calculate the volume of the particle domain. More... | |
| virtual bool | perBoxInjection () const |
| Per-box high-multiplicity injection (false for initialization and legacy per-cell injection). More... | |
| virtual int | injectBoxCount () const |
| Number of super-droplets to inject in the whole box this step. More... | |
| virtual amrex::Real | injectMultiplicity () const |
| Multiplicity of each super-droplet injected this step. More... | |
| virtual unsigned int | injectSeed () const |
| Reproducible seed for scattering this step's super-droplets. More... | |
Public Attributes | |
| amrex::Real | m_numdens_sd_init = -1 |
Public Attributes inherited from SDInitProperties | |
| int | m_ppc = 1 |
| bool | m_ppc_from_inputs = false |
| SDInitShape | m_type = SDInitShape::uniform |
| amrex::Real | m_numdens = -1 |
| amrex::Real | m_max_multiplicity = 1000000 |
| amrex::Real | m_ice_app_density = -1 |
| std::vector< amrex::Real > | m_mass_species_min |
| std::vector< amrex::Real > | m_mass_species_max |
| std::vector< amrex::Real > | m_mass_species_mean |
| std::vector< amrex::Real > | m_radius_species_min |
| std::vector< amrex::Real > | m_radius_species_max |
| std::vector< amrex::Real > | m_radius_species_mean |
| std::vector< amrex::Real > | m_radius_species_geom_std |
| std::vector< SDDistributionType > | m_species_init_type |
| std::vector< amrex::Real > | m_mass_aerosol_min |
| std::vector< amrex::Real > | m_mass_aerosol_max |
| std::vector< amrex::Real > | m_mass_aerosol_mean |
| std::vector< amrex::Real > | m_radius_aerosol_min |
| std::vector< amrex::Real > | m_radius_aerosol_max |
| std::vector< amrex::Real > | m_radius_aerosol_mean |
| std::vector< amrex::Real > | m_radius_aerosol_geom_std |
| std::vector< SDDistributionType > | m_aerosol_init_type |
| int | m_num_species = 0 |
| int | m_num_aerosols = 0 |
| amrex::RealBox | m_particle_domain |
| amrex::Vector< amrex::Real > | m_init_particle_p1 |
| amrex::Vector< amrex::Real > | m_init_particle_p2 |
| SDMultiplicityType | m_mult_type |
Additional Inherited Members | |
Public Types inherited from SDInitProperties | |
| using | MatVec = std::vector< std::unique_ptr< MaterialProperties > > |
Super-droplets initialization structure.
|
virtualdefault |
Initial number density of super-droplets
|
inlineoverridevirtual |
Per-cell counts of this initialization.
Implements SDInitProperties.
Referenced by numParticlesPerCell(), and numSDPerCell().

|
inlineoverridevirtual |
Compute number of physical particles per grid cell
Implements SDInitProperties.

|
inlineoverridevirtual |
Compute number of super-droplets per grid cell
Implements SDInitProperties.

|
overridevirtual |
print super-droplets initialization parameters to screen
Reimplemented from SDInitProperties.

|
inlineoverridevirtual |
read super-droplets initialization parameters
Reimplemented from SDInitProperties.
| void SDInitialization::readInputs | ( | SDInputs & | a_in, |
| const amrex::Geometry & | a_geom, | ||
| const MatVec & | a_species_mat, | ||
| const MatVec & | a_aerosol_mat | ||
| ) |
Read super-droplet initialization parameters from input file.
This function reads initialization-specific parameters including distribution types, particle counts, and sizing parameters.
| [in] | a_in | Two-tier input resolver |
| [in] | a_geom | Simulation geometry information |
| [in] | a_species_mat | Vector of species material properties |
| [in] | a_aerosol_mat | Vector of aerosol material properties |

| amrex::Real SDInitialization::m_numdens_sd_init = -1 |
Referenced by cellCounts().