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
46
namespace
openswmm
{
47
struct
SimulationContext
;
48
}
49
50
namespace
openswmm::input
{
51
61
void
resolve_cross_references
(SimulationContext& ctx);
62
76
void
load_external_rain_files
(SimulationContext& ctx);
77
98
void
convert_internal_to_display
(SimulationContext& ctx);
99
105
bool
needs_authored_conversion
(
const
SimulationContext& ctx);
106
113
int
restore_authored_orientation
(SimulationContext& ctx);
114
126
void
convert_internal_to_authored
(SimulationContext& ctx);
127
154
void
resolve_external_file_slots
(SimulationContext& ctx,
const
std::string& anchor_dir);
155
175
void
recompute_conduit_flow_properties
(SimulationContext& ctx,
int
j);
176
191
double
conduit_manning_n
(
const
SimulationContext& ctx,
int
j);
192
209
double
conduit_true_length
(
const
SimulationContext& ctx,
int
j);
210
211
}
/* namespace openswmm::input */
212
213
#endif
/* OPENSWMM_ENGINE_POST_PARSE_RESOLVER_HPP */
openswmm::input
Definition
CatchmentHandler.cpp:70
openswmm::input::resolve_external_file_slots
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
openswmm::input::recompute_conduit_flow_properties
void recompute_conduit_flow_properties(SimulationContext &ctx, int j)
Recompute a single conduit's derived dynamic-wave flow properties.
Definition
PostParseResolver.cpp:1300
openswmm::input::resolve_cross_references
void resolve_cross_references(SimulationContext &ctx)
Resolve all cross-references in ctx after all sections are parsed.
Definition
PostParseResolver.cpp:2170
openswmm::input::convert_internal_to_display
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
openswmm::input::conduit_manning_n
double conduit_manning_n(const SimulationContext &ctx, int j)
Resolve effective conduit Manning roughness for the current routing/section model.
Definition
PostParseResolver.cpp:1214
openswmm::input::conduit_true_length
double conduit_true_length(const SimulationContext &ctx, int j)
Read the physical conduit length with irregular-channel meander correction.
Definition
PostParseResolver.cpp:1280
openswmm::input::restore_authored_orientation
int restore_authored_orientation(SimulationContext &ctx)
Undo adverse-slope conduit reversal in a context used for authoring.
Definition
PostParseResolver.cpp:1750
openswmm::input::convert_internal_to_authored
void convert_internal_to_authored(SimulationContext &ctx)
Undo conduit orientation, sediment offsets and elevation-offset normalization.
Definition
PostParseResolver.cpp:1785
openswmm::input::needs_authored_conversion
bool needs_authored_conversion(const SimulationContext &ctx)
Detect hydraulic input normalizations requiring inverse serialization conversion.
Definition
PostParseResolver.cpp:1715
openswmm::input::load_external_rain_files
void load_external_rain_files(SimulationContext &ctx)
Reload all external rain files using a fresh shared parse cache.
Definition
PostParseResolver.cpp:1193
openswmm
Definition
ExchangeLaw.hpp:60
openswmm::SimulationContext
Central, reentrant simulation context.
Definition
SimulationContext.hpp:390
src
engine
input
PostParseResolver.hpp
Generated by
1.13.2