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

Implementation of gradient computation, slope limiting, and edge fluxes. More...

#include "SurfaceFluxCalculator.hpp"
#include <cmath>
#include <algorithm>
Include dependency graph for SurfaceFluxCalculator.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::twoD
 

Functions

void openswmm::twoD::computeUnlimitedGradients (const MeshData &mesh, SurfaceStateData &state)
 Compute unlimited gradients for all triangles via Green-Gauss theorem.
 
void openswmm::twoD::computeLimitedGradients (const MeshData &mesh, SurfaceStateData &state, double epsilon)
 Apply Jawahar-Kamath slope limiter (Eq. [23]–[24]).
 
void openswmm::twoD::computeEdgeFluxes (const MeshData &mesh, SurfaceStateData &state, const SolverOptions2D &opts)
 Compute edge fluxes for all triangles.
 
void openswmm::twoD::assembleRHS (const MeshData &mesh, const SurfaceStateData &state, double *ydot)
 Assemble the RHS of the ODE system: dψ/dt for each triangle.
 

Detailed Description

Implementation of gradient computation, slope limiting, and edge fluxes.

See also
SurfaceFluxCalculator.hpp