particula.coupling.surface_emission
Finite-bed dust emission under a prescribed piecewise-linear wind.
Classes
| Name | Description |
|---|---|
BedPatch | A bottom cell's erodible slope area (m²) and initial kg per class. |
DustClass | Properties of an emitted dry spherical class in SI units. |
SurfaceEmission | Prescribed bed exchange integrated over accepted replay intervals. |
Functions
| Name | Description |
|---|---|
_excess_integral | Integrate positive normalized excess shear over unit linear-wind time. |
BedPatchclassdataclass#
class BedPatch(name: str, cell: int, area: float, available: tuple)A bottom cell’s erodible slope area (m²) and initial kg per class.
areaattributeinstance attribute#
area: floatavailableattributeinstance attribute#
available: tuplecellattributeinstance attribute#
cell: intnameattributeinstance attribute#
name: strDustClassclassdataclass#
class DustClass(name: str, threshold: float, coefficient: float, diameter: float, density: float, fractions: tuple, slip: float = 0.0)Properties of an emitted dry spherical class in SI units.
threshold is friction velocity (m/s), coefficient is kg/m²/s above normalized excess shear, diameter is m, density is kg/m³, slip is prescribed downward terminal speed (m/s), fractions are dry mass fractions.
coefficientattributeinstance attribute#
coefficient: floatdensityattributeinstance attribute#
density: floatdiameterattributeinstance attribute#
diameter: floatfractionsattributeinstance attribute#
fractions: tuplenameattributeinstance attribute#
name: strslipattributeclass attributeinstance attribute#
slip: float = 0.0thresholdattributeinstance attribute#
threshold: floatmassproperty#
massReturn kg per physical grain of the emitted diameter.
SurfaceEmissionclass#
class SurfaceEmission(forcing, flow, patches, classes, materials, *, drag_coefficient, reference_height, ejection_height, representation, capacity=None, device='cpu')Prescribed bed exchange integrated over accepted replay intervals.
Each interval’s integrated release enters at its left endpoint. Refining accepted intervals refines the resulting transport timing. Forcing and emission have independent outputs and share the same fixed grid and clock.
forcing_idattributeinstance attribute#
forcing_id = forcing.identityfriction_velocityattributeinstance attribute#
friction_velocity = np.sqrt(drag_coefficient) * np.linalg.norm(wind, axis=2)identityattributeinstance attribute#
identity = digest.hexdigest()materialsattributeinstance attribute#
materials = tuple(materials)recordsattributeinstance attribute#
records = np.argwhere(self.emitted > 0) if representation == 'resolved' else np.empty((0, 3), dtype=int)representationattributeinstance attribute#
representation = representationwind_timesattributeinstance attribute#
wind_times = knots.copy()__init__method#
def __init__(forcing, flow, patches, classes, materials, *, drag_coefficient, reference_height, ejection_height, representation, capacity=None, device='cpu')Sample wind above the bed, integrate gusts and reserve record slots.
reference_height and ejection_height are physical metres above bed. capacity limits all resolved source records across the recording. Per-class rates use piecewise linear horizontal winds between knots.
_integratemethod#
def _integrate(forcing, knots, wind, drag_coefficient)_reference_pointsmethod#
def _reference_points(grid, ejection_height, reference_height)bindmethod#
def bind(forcing, layout)Check compatibility and construct stable weighted resolved slots.
field_incrementmethod#
def field_increment(index, layout, n)Convert emitted kg to count and dry-material lanes.
_excess_integralfunction#
def _excess_integral(u0, u1, threshold, cd)Integrate positive normalized excess shear over unit linear-wind time.