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

Pseudo-Laplacian vertex reconstruction stencil computation. More...

Include dependency graph for VertexReconstruction.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::twoD
 

Functions

void openswmm::twoD::buildVertexStencils (MeshData &mesh)
 Build pseudo-Laplacian reconstruction stencils for all vertices.
 
void openswmm::twoD::reconstructVertexHeads (const MeshData &mesh, SurfaceStateData &state, int nthreads=1)
 Reconstruct head values at vertices from cell-centred heads.
 
double openswmm::twoD::vertexHeadAt (const MeshData &mesh, const SurfaceStateData &state, int v) noexcept
 Pseudo-Laplacian head at ONE vertex, evaluated on demand from the current cell heads.
 
double openswmm::twoD::cellFreeSurfaceElevation (double mean_depth, double za, double zb, double zc)
 Free-surface elevation η of one triangular cell from its mean depth (render/output closure).
 
double openswmm::twoD::cellFreeSurfaceElevationOf (const MeshData &mesh, int t, double mean_depth)
 
void openswmm::twoD::reconstructVertexRenderDepths (const MeshData &mesh, SurfaceStateData &state, double dry_depth, int nthreads, std::vector< double > &eta_scratch)
 Wet-masked, depth-weighted free-surface reconstruction at vertices for RENDERING/OUTPUT only (writes state.vert_depth_signed).
 
void openswmm::twoD::reconstructVertexRenderDepths (const MeshData &mesh, SurfaceStateData &state, double dry_depth, int nthreads=1)
 

Detailed Description

Pseudo-Laplacian vertex reconstruction stencil computation.

Implements Eq. [19]–[21] from Kumar et al. (2009): builds weighted interpolation stencils at each vertex from surrounding cell centres. Stencils are stored in CSR format in MeshData for efficient evaluation.

See also
TWO_DIMENSIONAL_SURFACE_ROUTING_IMPLEMENTATION_STRATEGY.md §5.2
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n Apache-2.0