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

resolveExchangeStructure: a junction point's WEIR_ORIFICE law, structure and coefficients from [2D_NODE_COUPLING], presets and the global options. More...

#include "NodeCoupling.hpp"
#include "../../core/SimulationContext.hpp"
#include "../../core/UnitConversion.hpp"
#include "../../hydraulics/Node.hpp"
#include <algorithm>
#include <cmath>
Include dependency graph for ExchangeStructure.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::twoD
 

Functions

void openswmm::twoD::resolveExchangeStructure (CouplingPoint &cp, const MeshData &mesh, const SimulationContext &ctx, const SolverOptions2D &opts, int row, NodeCoupling2DType type, double project_len_to_m)
 Resolve a junction point's exchange law, structure and coefficients from its node's [2D_NODE_COUPLING] row, the class preset and the global options (plans/1D2D_FINE_SCALE_COUPLING_PLAN §3.1, §3.4–3.5).
 

Detailed Description

resolveExchangeStructure: a junction point's WEIR_ORIFICE law, structure and coefficients from [2D_NODE_COUPLING], presets and the global options.

Kept apart from NodeCoupling.cpp, which the standalone Kokkos alignment test compiles without the engine library: this needs the node storage curves (node::getSurfArea).

See also
NodeCoupling.hpp
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0