97#ifndef OPENSWMM_ENGINE_TRANSPORT_BED_EXCHANGE_HPP
98#define OPENSWMM_ENGINE_TRANSPORT_BED_EXCHANGE_HPP
166 double area_m2,
double dt)
noexcept;
206 double t_gr)
noexcept;
223 double bed_m2,
double vol_ft3,
double t_gr)
noexcept;
232 double t_gr_global)
noexcept;
287 int n_total,
double dt);
Plan H6b — the bed / hyporheic transient-storage zone.
Definition BedExchange.cpp:39
PairStep relaxPair(const BedCoupling &g, double t_w, double t_b, double j0, double j1, double h, double area_m2, double dt) noexcept
One exact step of the coupled (water, bed) pair.
Definition BedExchange.cpp:120
double groundTempFor(const SimulationContext &ctx, const SedimentConfig &sc, double t_gr_global) noexcept
Choose one element's held deep-ground constant or globally sampled series temperature.
Definition BedExchange.cpp:370
void fillChannelThermalGeometry(const SimulationContext &ctx, ChannelThermalRegion ®ion) noexcept
Publish native conduit thermal region geometry in SI.
Definition BedExchange.cpp:388
double groundTemperature(SimulationContext &ctx) noexcept
Sample the global held deep-ground temperature at native absolute model time.
Definition BedExchange.cpp:264
double bedExchangeQ(const SedimentConfig &cfg, double bed_m2) noexcept
Compute total finite-bed solute exchange rate from diffusion and hyporheic velocity.
Definition BedExchange.cpp:355
BedCoupling bedCouplingFromContact(const SimulationContext &ctx, const SedimentConfig &sc, double bed_m2, double vol_ft3, double t_gr) noexcept
Construct finite water/bed conductance and capacity from one SI contact footprint.
Definition BedExchange.cpp:420
double linkBedAreaM2(const SimulationContext &ctx, int link) noexcept
Compute wetted conduit bed contact area from native geometry.
Definition BedExchange.cpp:282
bool bedExchangeEnabled(const SimulationContext &ctx) noexcept
Test current native finite-bed heat family process enable.
Definition BedExchange.cpp:251
BedCoupling bedCouplingForLink(const SimulationContext &ctx, int link, double vol_ft3, double t_gr) noexcept
Build a conduit finite-bed pair from current wet perimeter and resolved element material.
Definition BedExchange.cpp:462
SolutePairStep exchangePair(double c_w, double c_b, double vol_w, double vol_b, double q_exch, double dt) noexcept
One exact step of the two-body solute exchange.
Definition BedExchange.cpp:217
void applyBedSoluteExchange(SimulationContext &ctx, double *link_conc, int n_arr, int offset, int n_total, double dt)
Step every conduit's bed/channel solute exchange for one dt.
Definition BedExchange.cpp:532
void seedBedTemperature(SimulationContext &ctx)
Size and seed native link bed temperatures at their initial owner phase.
Definition BedExchange.cpp:486
double linkFreeSurfaceFt2(const SimulationContext &ctx, int link) noexcept
Compute native open-conduit free surface for heat/evaporation binding.
Definition BedExchange.cpp:323
Definition ExchangeLaw.hpp:60
Definition ChannelThermalData.hpp:19
[SEDIMENT_EXCHANGE] — the bed zone's material and geometry.
Definition BedZoneData.hpp:88
Central, reentrant simulation context.
Definition SimulationContext.hpp:390
One element's bed coupling, fully reduced to SI conductances.
Definition BedExchange.hpp:117
double c_b
Bed heat capacity, J/K.
Definition BedExchange.hpp:121
bool viable() const noexcept
True when the pair is worth stepping at all.
Definition BedExchange.hpp:131
double g_bg
Bed<->deep-ground conductance, W/K.
Definition BedExchange.hpp:119
double g_wb
Water<->bed conductance, W/K (conduction + advection)
Definition BedExchange.hpp:118
double t_gr
Deep-ground temperature, °C.
Definition BedExchange.hpp:122
double c_w
Water heat capacity, J/K.
Definition BedExchange.hpp:120
Simultaneous temperature increments for the coupled pair, °C.
Definition BedExchange.hpp:135
double dt_b
Bed.
Definition BedExchange.hpp:137
double dt_w
Channel water.
Definition BedExchange.hpp:136
Simultaneous concentration increments for the coupled pair.
Definition BedExchange.hpp:169
double dc_b
Bed water.
Definition BedExchange.hpp:171
double dc_w
Channel water.
Definition BedExchange.hpp:170