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

Build the FV cell/face mesh from a SimulationContext. More...

#include <string>
#include <vector>
#include "FvOptions.hpp"
#include "NetworkMeshData.hpp"
Include dependency graph for NetworkMeshBuilder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::fv::MeshBuildReport
 

Namespaces

namespace  openswmm
 
namespace  openswmm::fv
 

Functions

MeshBuildReport openswmm::fv::buildNetworkMesh (SimulationContext &ctx, const FvOptions &opts, NetworkMeshData &mesh)
 Build the cell/face mesh and the per-conduit geometry closures.
 
void openswmm::fv::buildGeometry (const XSectParams &xs, bool is_open, double slot_celerity, FvGeometry &g, int barrels=1)
 Populate one conduit's cross-section closure, including the tapered Preissmann slot and the first-moment table.
 

Detailed Description

Build the FV cell/face mesh from a SimulationContext.

Runs once at Router::init. The mesh is INTERNAL numerical discretization — it creates no named objects and is invisible to topology (plan §3.2). Virtual junctions are consumed here: their two conduit chains are concatenated into one continuous face graph, so mass and momentum flux continuity across them become properties of the scheme rather than a special treatment.

See also
plans/EXPLICIT_FV_KOKKOS_1D_SOLVER_PLAN.md §3.2, §3.4
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n Apache-2.0