![]() |
OpenSWMM Engine
6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
|
Implementation of 2D input section parsers. More...
#include "SectionHandlers2D.hpp"#include "../data/BoundaryData.hpp"#include "../../input/InputReader.hpp"#include "../../input/Tokenizer.hpp"#include "../../core/SimulationContext.hpp"#include <algorithm>#include <cctype>#include <cstdio>#include <cstdlib>#include <filesystem>#include <fstream>#include <sstream>#include <string_view>Namespaces | |
| namespace | openswmm |
| namespace | openswmm::twoD |
Functions | |
| std::string | openswmm::twoD::parse2DOptionsLine (const std::vector< std::string > &tokens, SolverOptions2D &opts) |
| Parse a single line from the [2D_OPTIONS] section. | |
| bool | openswmm::twoD::is2DOptionKey (const std::string &key) |
True when key (case-insensitive) is a [2D_OPTIONS] parameter accepted by parse2DOptionsLine. | |
| std::string | openswmm::twoD::format2DOptionValue (const SolverOptions2D &opts, const std::string &key) |
| Format the current value of a [2D_OPTIONS] parameter as the string token parse2DOptionsLine accepts (round-trip safe). | |
| std::string | openswmm::twoD::parse2DVertexLine (const std::vector< std::string > &tokens, MeshData &mesh) |
| Parse a single line from the [2D_VERTICES] section. | |
| std::string | openswmm::twoD::parse2DTriangleLine (const std::vector< std::string > &tokens, MeshData &mesh) |
| Parse a single line from the [2D_TRIANGLES] section. | |
| std::string | openswmm::twoD::parse2DVertexNodeMapLine (const std::vector< std::string > &tokens, MeshData &mesh) |
| Parse a single line from the [2D_VERTEX_NODE_MAP] section. | |
| std::string | openswmm::twoD::parse2DTriangleNodeMapLine (const std::vector< std::string > &tokens, MeshData &mesh) |
| Parse a single line from the [2D_TRIANGLE_NODE_MAP] section. | |
| std::string | openswmm::twoD::parse2DBoundaryConditionsLine (const std::vector< std::string > &tokens, std::vector< SurfaceRouter2D::PendingBoundaryRow > &pending_rows) |
V-E3 — parse a single line from the [2D_BOUNDARY_CONDITIONS] section into a SurfaceRouter2D::PendingBoundaryRow appended to pending_rows. | |
| std::string | openswmm::twoD::parse2DEdgeConveyanceLine (const std::vector< std::string > &tokens, std::vector< SurfaceRouter2D::PendingEdgeConveyanceRow > &pending_rows) |
§11A — parse a single [2D_EDGE_CONVEYANCE] line. | |
| void | openswmm::twoD::register2DSections (MeshData &mesh, SolverOptions2D &options, std::vector< SurfaceRouter2D::PendingBoundaryRow > &pending_bc_rows, std::vector< SurfaceRouter2D::PendingEdgeConveyanceRow > &pending_ec_rows, input::SectionRegistry ®istry) |
| Register all 2D input section handlers with the section registry. | |
| std::string | openswmm::twoD::load2DMeshExternalFile (MeshData &mesh, SolverOptions2D &opts, std::vector< SurfaceRouter2D::PendingBoundaryRow > &pending_bc_rows, std::vector< SurfaceRouter2D::PendingEdgeConveyanceRow > &pending_ec_rows, const std::string &mesh_file, const std::string &inp_base_dir) |
| Load 2D mesh sections from an external file. | |
| void | openswmm::twoD::prescan2DUnitsHeader (const std::string &inp_path, SolverOptions2D &opts) |
Scan inp_path for a ;; UNITS: <value> comment header and set opts.mesh_units_si to true when the value names metres. | |
Implementation of 2D input section parsers.