particula.dynamics.nucleation.species_mapping¶
species_mapping
¶
Explicit full-gas order and injection alignment for native nucleation.
NucleationSpeciesMap
dataclass
¶
NucleationSpeciesMap(gas_names: tuple[str, ...], gas_to_particle: tuple[tuple[int, int], ...])
Own unique gas names and one-to-one gas-to-particle injection pairs.
Unmapped gas is preserved. Every positive injection mass must have a pair and a partitioning-enabled gas lane. Particle-only lanes receive no source.
__post_init__
¶
__post_init__() -> None
Detach input sequences and reject ambiguous lane identities.
Source code in particula/dynamics/nucleation/species_mapping.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
validate_nucleation_mapping
¶
validate_nucleation_mapping(particles: ParticleData, gas: GasData, species_map: NucleationSpeciesMap | None, injection_mass: ndarray) -> np.ndarray
Validate alignment and return particle-lane source mass.
Source code in particula/dynamics/nucleation/species_mapping.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |