OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Rk2RuntimeSources.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
11
12#ifndef OPENSWMM_RK2_RUNTIME_SOURCES_HPP
13#define OPENSWMM_RK2_RUNTIME_SOURCES_HPP
14#include "RuntimeCoupling.hpp"
15#include <cstdint>
16#include <map>
17namespace openswmm {
18struct HeatState;
19namespace climate {
20struct ClimateState;
21}
22namespace detail {
23class CompletedSourceArchive;
24}
25}
26namespace openswmm::twoD {
28struct BoundaryData;
29struct MeshData;
30struct SurfaceStateData;
53std::string validateRk2Sources(const RuntimeSources&, int cells, int species, int temperature,
54 int age, const std::vector<uint8_t>* coverage = nullptr);
75 const SubsurfaceSolver* ground = nullptr);
76// A managed restore binds copied prescriptions and prepared native weather.
77// The standalone numerical loader retains its strict caller-held identity.
80 const HeatState* heat = nullptr;
81 const RuntimeSources* surface = nullptr;
82 const RuntimeSources* groundwater = nullptr;
83 const RuntimeForcings* forcing = nullptr;
84 const BoundaryData* boundary = nullptr;
85 const std::map<int, std::vector<double>>* boundary_quality = nullptr;
86};
87
113std::string validateRk2SurfaceBoundary(const MeshData&, const SurfaceStateData&);
136 std::map<int, std::vector<double>>& quality, bool model,
137 int species);
159 RuntimeSources& ground, RuntimeForcings& forcing, int species,
160 BoundaryData* boundary = nullptr,
161 std::map<int, std::vector<double>>* quality = nullptr);
177std::string validateRk2ReplayIds(const RuntimeSources&, const RuntimeSources&,
178 const RuntimeForcings&, double completed);
179}
180#endif
Runtime coupling state and canonical transport exchange quantities.
Definition CompletedSourceArchive.hpp:25
The two-zone kernel. Owned by SurfaceRouter2D; driven by the marcher's tier hooks.
Definition SubsurfaceSolver.hpp:128
Definition Rk2RuntimeSources.hpp:19
Definition OutfallExchange.hpp:17
Definition ConservativeMixing.cpp:8
Definition GroundHeat.hpp:19
Definition ExchangeLaw.hpp:60
std::string validateRk2Sources(const RuntimeSources &, int cells, int species, int temperature, int age, const std::vector< uint8_t > *coverage=nullptr)
Validate copied RK2 source prescriptions and water/heat/species receipt shapes.
Definition ExplicitInertialCheckpoint.cpp:141
std::string rk2SurfaceRuntimeProfile(const SurfaceStateData &, const SubsurfaceSolver *ground=nullptr)
Qualify prepared surface source/weather/snow state for the managed RK2 numerical profile.
Definition ExplicitInertialCheckpoint.cpp:197
void rk2SurfaceBoundaryArchive(detail::CompletedSourceArchive &a, BoundaryData &b, std::map< int, std::vector< double > > &quality, bool model, int species)
Archive a matched RK2 boundary model identity or its accepted runtime receipts.
void rk2ManagedRuntimeModel(detail::CompletedSourceArchive &a, RuntimeSources &surface, RuntimeSources &ground, RuntimeForcings &forcing, int species, BoundaryData *boundary=nullptr, std::map< int, std::vector< double > > *quality=nullptr)
Archive copied RK2 source/forcing prescriptions for a managed model binding.
std::string validateRk2ReplayIds(const RuntimeSources &, const RuntimeSources &, const RuntimeForcings &, double completed)
Check provider namespaces, active expiry and last-receipt horizons at a managed boundary.
Definition ExplicitInertialCheckpoint.cpp:1871
std::string validateRk2SurfaceBoundary(const MeshData &, const SurfaceStateData &)
Validate prepared RK2 exterior boundary descriptors, composition and physical receipts.
Definition ExplicitInertialCheckpoint.cpp:1042
bool rk2HasSurfaceBoundary(const BoundaryData *)
Detect any hydraulic boundary use or retained override/receipt history.
Definition ExplicitInertialCheckpoint.cpp:1020
Definition ExchangeLaw.hpp:60
Runtime heat state shared by the engines (phase H1).
Definition HeatData.hpp:427
Definition Climate.hpp:97
SoA storage for per-edge boundary conditions.
Definition BoundaryData.hpp:73
SoA storage for 2D mixed triangle/quad mesh geometry and topology.
Definition MeshData.hpp:65
Definition Rk2RuntimeSources.hpp:78
const HeatState * heat
Definition Rk2RuntimeSources.hpp:80
const RuntimeSources * groundwater
Definition Rk2RuntimeSources.hpp:82
const RuntimeSources * surface
Definition Rk2RuntimeSources.hpp:81
const std::map< int, std::vector< double > > * boundary_quality
Definition Rk2RuntimeSources.hpp:85
const RuntimeForcings * forcing
Definition Rk2RuntimeSources.hpp:83
const climate::ClimateState * climate
Definition Rk2RuntimeSources.hpp:79
const BoundaryData * boundary
Definition Rk2RuntimeSources.hpp:84
Definition RuntimeCoupling.hpp:226
Definition RuntimeCoupling.hpp:44
Definition SurfaceStateData.hpp:64