OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
PostParseResolver.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2//
3// Copyright 2026 Caleb Buahin
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
40
41#ifndef OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP
42#define OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP
43
44#include <string>
45
46namespace openswmm {
48}
49
50namespace openswmm::input {
51
61void resolve_cross_references(SimulationContext& ctx);
62
76void load_external_rain_files(SimulationContext& ctx);
77
98void convert_internal_to_display(SimulationContext& ctx);
99
105bool needs_authored_conversion(const SimulationContext& ctx);
106
113int restore_authored_orientation(SimulationContext& ctx);
114
126void convert_internal_to_authored(SimulationContext& ctx);
127
154void resolve_external_file_slots(SimulationContext& ctx, const std::string& anchor_dir);
155
175void recompute_conduit_flow_properties(SimulationContext& ctx, int j);
176
191double conduit_manning_n(const SimulationContext& ctx, int j);
192
209double conduit_true_length(const SimulationContext& ctx, int j);
210
211} /* namespace openswmm::input */
212
213#endif /* OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP */
Definition CatchmentHandler.cpp:70
void resolve_external_file_slots(SimulationContext &ctx, const std::string &anchor_dir)
Slice IO-3: Resolve every external-file slot's .original token against an anchor directory and popula...
Definition PostParseResolver.cpp:148
void recompute_conduit_flow_properties(SimulationContext &ctx, int j)
Recompute a single conduit's derived dynamic-wave flow properties.
Definition PostParseResolver.cpp:1300
void resolve_cross_references(SimulationContext &ctx)
Resolve all cross-references in ctx after all sections are parsed.
Definition PostParseResolver.cpp:2170
void convert_internal_to_display(SimulationContext &ctx)
Convert the input fields the reader scaled to internal units back to display units (matching ctx....
Definition PostParseResolver.cpp:1564
double conduit_manning_n(const SimulationContext &ctx, int j)
Resolve effective conduit Manning roughness for the current routing/section model.
Definition PostParseResolver.cpp:1214
double conduit_true_length(const SimulationContext &ctx, int j)
Read the physical conduit length with irregular-channel meander correction.
Definition PostParseResolver.cpp:1280
int restore_authored_orientation(SimulationContext &ctx)
Undo adverse-slope conduit reversal in a context used for authoring.
Definition PostParseResolver.cpp:1750
void convert_internal_to_authored(SimulationContext &ctx)
Undo conduit orientation, sediment offsets and elevation-offset normalization.
Definition PostParseResolver.cpp:1785
bool needs_authored_conversion(const SimulationContext &ctx)
Detect hydraulic input normalizations requiring inverse serialization conversion.
Definition PostParseResolver.cpp:1715
void load_external_rain_files(SimulationContext &ctx)
Reload all external rain files using a fresh shared parse cache.
Definition PostParseResolver.cpp:1193
Definition ExchangeLaw.hpp:60
Central, reentrant simulation context.
Definition SimulationContext.hpp:390