OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
HeatLegacy.cpp File Reference

Phase H1 body — LEGACY CSTR temperature transport. More...

#include "HeatLegacy.hpp"
#include <algorithm>
#include <cmath>
#include <vector>
#include "../../../core/SimulationContext.hpp"
#include "../../InitialQualitySeeds.hpp"
#include "../HeatFluxModules/HeatFluxes.hpp"
Include dependency graph for HeatLegacy.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::transport
 

Functions

void openswmm::transport::routeLegacyHeat (SimulationContext &ctx, double dt)
 

Detailed Description

Phase H1 body — LEGACY CSTR temperature transport.

Formula provenance is the pollutant path in QualityRouting.cpp, by way of the A1b age mirror: accumulateLinkLoads (rate convention q·value), mixAtNodes ((v_old·T_old + mass_in) / (v_old + v_in)), updateLinkQuality (STEADY / no-flow / zero-volume / volume-balance branches with the DW q_in correction). Differences from the age mirror are enumerated in the header; the load-bearing one is that nothing here is floored at zero.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n Apache-2.0