Skip to content

particula.coupling.surface_emission

Finite-bed dust emission under a prescribed piecewise-linear wind.

Classes

NameDescription
BedPatchA bottom cell's erodible slope area (m²) and initial kg per class.
DustClassProperties of an emitted dry spherical class in SI units.
SurfaceEmissionPrescribed bed exchange integrated over accepted replay intervals.

Functions

NameDescription
_excess_integralIntegrate 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: float

availableattributeinstance attribute#

available: tuple

cellattributeinstance attribute#

cell: int

nameattributeinstance attribute#

name: str

__init__method#

def __init__(name: str, cell: int, area: float, available: tuple) -> None

__post_init__method#

def __post_init__()

Check patch identity, physical surface area and inventory.

DustClassclassdataclass#

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: float

densityattributeinstance attribute#

density: float

diameterattributeinstance attribute#

diameter: float

fractionsattributeinstance attribute#

fractions: tuple

nameattributeinstance attribute#

name: str

slipattributeclass attributeinstance attribute#

slip: float = 0.0

thresholdattributeinstance attribute#

threshold: float

massproperty#

mass

Return kg per physical grain of the emitted diameter.

__init__method#

def __init__(name: str, threshold: float, coefficient: float, diameter: float, density: float, fractions: tuple, slip: float = 0.0) -> None

__post_init__method#

def __post_init__()

Validate the dry mass and material partition.

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.identity

friction_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 = representation

wind_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.