72#ifndef OPENSWMM_ENGINE_DATA_BED_ZONE_DATA_HPP
73#define OPENSWMM_ENGINE_DATA_BED_ZONE_DATA_HPP
207 const auto nc =
static_cast<std::size_t
>(n_cells > 0 ? n_cells : 0);
208 const auto ns =
static_cast<std::size_t
>(n_spec > 0 ? n_spec : 0);
225 void resize(
int n_links,
int n_spec,
double t_init) {
226 const auto nl =
static_cast<std::size_t
>(n_links > 0 ? n_links : 0);
227 const auto ns =
static_cast<std::size_t
>(n_spec > 0 ? n_spec : 0);
241 bool sized(
int n_links)
const noexcept {
242 return link_temp.size() ==
static_cast<std::size_t
>(n_links > 0 ? n_links : 0);
Definition NodeCoupling2D.cpp:23
Definition ExchangeLaw.hpp:60
Runtime bed state, one entry per LINK.
Definition BedZoneData.hpp:169
std::vector< double > cell_temp
Definition BedZoneData.hpp:187
int n_species
Definition BedZoneData.hpp:175
int cell_n_species
Definition BedZoneData.hpp:192
std::vector< double > cell_conc
Definition BedZoneData.hpp:191
void clear()
Release all link/cell bed state and reset counts/seeding flags.
Definition BedZoneData.hpp:251
std::vector< double > link_temp
Definition BedZoneData.hpp:170
void resize(int n_links, int n_spec, double t_init)
Replace link bed state and request subsequent concentration seeding.
Definition BedZoneData.hpp:225
void resizeCells(int n_cells, int n_spec, double t_init)
Replace cell-resolved bed state with initial temperature and zero solutes.
Definition BedZoneData.hpp:206
std::vector< double > link_conc
Definition BedZoneData.hpp:174
bool seeded
Definition BedZoneData.hpp:176
bool sized(int n_links) const noexcept
Check the link-temperature array length.
Definition BedZoneData.hpp:241
bool cells_seeded
Definition BedZoneData.hpp:193
[SEDIMENT_EXCHANGE] — the bed zone's material and geometry.
Definition BedZoneData.hpp:88
double bed_thickness
Definition BedZoneData.hpp:109
double initial_temp
Definition BedZoneData.hpp:148
double ground_depth
Definition BedZoneData.hpp:116
double sed_density
Bed bulk density rho_sed, kg/m³ (htsmodel.cpp:50).
Definition BedZoneData.hpp:140
double ground_temp
Deep-ground temperature T_gr, °C. Constant spelling.
Definition BedZoneData.hpp:119
double mesh_porosity
Pore fraction of the new mesh bed; legacy 1D capacity is unchanged.
Definition BedZoneData.hpp:93
bool ground_source_configured
Definition BedZoneData.hpp:91
double hyporheic_velocity
Definition BedZoneData.hpp:137
bool has_ground_temp
Definition BedZoneData.hpp:127
double sed_specific_heat
Bed specific heat c_sed, J/kg/K (htsmodel.cpp:51).
Definition BedZoneData.hpp:143
bool mesh_ground
Explicit routed-channel finite mesh contact; default prescribed ground.
Definition BedZoneData.hpp:89
int ground_ts_index
Definition BedZoneData.hpp:131
double thermal_diffusivity
Definition BedZoneData.hpp:97
bool has_initial_temp
Definition BedZoneData.hpp:149
double solute_diffusivity
Definition BedZoneData.hpp:104