![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Namespaces | |
| namespace | kperf |
| namespace | plugin |
| namespace | swe_kernels |
Classes | |
| class | ExplicitKokkosSurfaceSolver |
| struct | SourceBudget |
Typedefs | |
| using | ExecSpace = Kokkos::DefaultExecutionSpace |
| using | MemSpace = ExecSpace::memory_space |
| using | DView = Kokkos::View<double*, MemSpace> |
| mutable double array | |
| using | CDView = Kokkos::View<const double*, MemSpace> |
| const double array | |
| using | IView = Kokkos::View<int*, MemSpace> |
| mutable int array | |
| using | CIView = Kokkos::View<const int*, MemSpace> |
| const int array | |
Functions | |
| KOKKOS_INLINE_FUNCTION double | sourceSink (double rate, double h, double dry) |
| Apply the cubic wet/dry ramp to a held nonnegative sink demand. | |
| KOKKOS_INLINE_FUNCTION SourceBudget | sourceBudget (double volume, double h, double area, double dt, double dry, double rain_rate, double coupling_rate, double infil_rate, double evap_rate) |
| Compute a donor-limited water-only cell source update without mutating device arrays. | |
| using openswmm::twoD::gpu::CDView = Kokkos::View<const double*, MemSpace> |
const double array
| using openswmm::twoD::gpu::CIView = Kokkos::View<const int*, MemSpace> |
const int array
| using openswmm::twoD::gpu::DView = Kokkos::View<double*, MemSpace> |
mutable double array
| using openswmm::twoD::gpu::ExecSpace = Kokkos::DefaultExecutionSpace |
| using openswmm::twoD::gpu::IView = Kokkos::View<int*, MemSpace> |
mutable int array
| using openswmm::twoD::gpu::MemSpace = ExecSpace::memory_space |
| KOKKOS_INLINE_FUNCTION SourceBudget openswmm::twoD::gpu::sourceBudget | ( | double | volume, |
| double | h, | ||
| double | area, | ||
| double | dt, | ||
| double | dry, | ||
| double | rain_rate, | ||
| double | coupling_rate, | ||
| double | infil_rate, | ||
| double | evap_rate ) |
Compute a donor-limited water-only cell source update without mutating device arrays.
| [in] | volume | Finite cell water m3 after face transfers; positive part is used with incoming sources, except the no-source fast path returns volume unchanged. |
| [in] | h | Finite pre-source depth m used for evaporation/infiltration wet/dry ramps. |
| [in] | area | Finite positive cell area m2. |
| [in] | dt | Finite nonnegative source interval s. |
| [in] | dry | Finite positive dry-depth ramp threshold m. |
| [in] | rain_rate | Finite rainfall m/s; negative rainfall contributes zero. |
| [in] | coupling_rate | Finite signed coupling m/s, positive into the surface. |
| [in] | infil_rate | Finite held infiltration demand m/s, negative treated as zero. |
| [in] | evap_rate | Finite held evaporation demand m/s, negative treated as zero. |
| KOKKOS_INLINE_FUNCTION double openswmm::twoD::gpu::sourceSink | ( | double | rate, |
| double | h, | ||
| double | dry ) |
Apply the cubic wet/dry ramp to a held nonnegative sink demand.
| [in] | rate | Finite sink rate m/s; nonpositive returns zero. |
| [in] | h | Finite pre-source cell depth m; nonpositive returns zero. |
| [in] | dry | Finite positive dry-depth threshold m; at/above it the full rate applies. |