OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
SectionHandlers2D.hpp
Go to the documentation of this file.
1
23#ifndef OPENSWMM_ENGINE_2D_SECTION_HANDLERS_HPP
24#define OPENSWMM_ENGINE_2D_SECTION_HANDLERS_HPP
25
26#include "../data/MeshData.hpp"
27#include "../data/SolverOptions2D.hpp"
28#include "../SurfaceRouter2D.hpp"
29#include "../../input/SectionRegistry.hpp"
30
31#include <string>
32#include <vector>
33
34namespace openswmm::twoD {
35
43std::string parse2DOptionsLine(const std::vector<std::string>& tokens,
44 SolverOptions2D& opts);
45
55std::string parse2DVertexLine(const std::vector<std::string>& tokens,
56 MeshData& mesh);
57
67std::string parse2DTriangleLine(const std::vector<std::string>& tokens,
68 MeshData& mesh);
69
79std::string parse2DVertexNodeMapLine(const std::vector<std::string>& tokens,
80 MeshData& mesh);
81
91std::string parse2DTriangleNodeMapLine(const std::vector<std::string>& tokens,
92 MeshData& mesh);
93
110 const std::vector<std::string>& tokens,
111 std::vector<SurfaceRouter2D::PendingBoundaryRow>& pending_rows);
112
123void register2DSections(MeshData& mesh,
124 SolverOptions2D& options,
125 std::vector<SurfaceRouter2D::PendingBoundaryRow>& pending_bc_rows,
126 input::SectionRegistry& registry);
127
142std::string load2DMeshExternalFile(MeshData& mesh,
143 SolverOptions2D& opts,
144 std::vector<SurfaceRouter2D::PendingBoundaryRow>& pending_bc_rows,
145 const std::string& mesh_file,
146 const std::string& inp_base_dir);
147
148} // namespace openswmm::twoD
149
150#endif // OPENSWMM_ENGINE_2D_SECTION_HANDLERS_HPP
Definition NodeCoupling.cpp:15
std::string parse2DTriangleNodeMapLine(const std::vector< std::string > &tokens, MeshData &mesh)
Parse a single line from the [2D_TRIANGLE_NODE_MAP] section.
Definition SectionHandlers2D.cpp:240
std::string parse2DVertexNodeMapLine(const std::vector< std::string > &tokens, MeshData &mesh)
Parse a single line from the [2D_VERTEX_NODE_MAP] section.
Definition SectionHandlers2D.cpp:206
void register2DSections(MeshData &mesh, SolverOptions2D &options, std::vector< SurfaceRouter2D::PendingBoundaryRow > &pending_bc_rows, input::SectionRegistry &registry)
Register all 2D input section handlers with the section registry.
Definition SectionHandlers2D.cpp:368
std::string 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::PendingB...
Definition SectionHandlers2D.cpp:304
std::string parse2DVertexLine(const std::vector< std::string > &tokens, MeshData &mesh)
Parse a single line from the [2D_VERTICES] section.
Definition SectionHandlers2D.cpp:146
std::string parse2DTriangleLine(const std::vector< std::string > &tokens, MeshData &mesh)
Parse a single line from the [2D_TRIANGLES] section.
Definition SectionHandlers2D.cpp:174
std::string parse2DOptionsLine(const std::vector< std::string > &tokens, SolverOptions2D &opts)
Parse a single line from the [2D_OPTIONS] section.
Definition SectionHandlers2D.cpp:71
std::string load2DMeshExternalFile(MeshData &mesh, SolverOptions2D &opts, std::vector< SurfaceRouter2D::PendingBoundaryRow > &pending_bc_rows, const std::string &mesh_file, const std::string &inp_base_dir)
Load 2D mesh sections from an external file.
Definition SectionHandlers2D.cpp:426