Loading...
Searching...
No Matches
meshbctype.h
Go to the documentation of this file.
1
27
28#ifndef OPENSWMMVIS_MESH_MESHBCTYPE_H
29#define OPENSWMMVIS_MESH_MESHBCTYPE_H
30
31#include <QObject>
32#include <QString>
33
34namespace mesh
35{
36
43class MeshBCTypes : public QObject
44{
45 Q_OBJECT
46public:
61 Q_ENUM(Type)
62
63
73 static QString label(Type t);
74
84 static QString inpToken(Type t);
85
99 static Type fromInpToken(const QString &token, bool *ok = nullptr);
100
111 static int engineBCType(Type t);
112};
113
114} // namespace mesh
115
116#endif // OPENSWMMVIS_MESH_MESHBCTYPE_H
Namespace-like QObject that registers the boundary-condition Type with Qt's meta-object system (Q_ENU...
Definition meshbctype.h:44
static int engineBCType(Type t)
Collapse GUI constant/timeseries variants into the engine boundary vocabulary.
Definition meshbctype.cpp:86
static QString inpToken(Type t)
Encode a GUI boundary type as its stable INP TYPE token.
Definition meshbctype.cpp:39
Type
GUI boundary-condition variants for one mesh edge.
Definition meshbctype.h:52
@ SpecifiedFlowConst
Fixed discharge per metre of edge.
Definition meshbctype.h:57
@ RatingCurve
Stage → flow lookup.
Definition meshbctype.h:59
@ Wall
Zero-flux barrier (default)
Definition meshbctype.h:53
@ SpecifiedStageConst
Fixed water-surface elevation.
Definition meshbctype.h:55
@ SpecifiedFlowTS
Time-varying discharge per metre.
Definition meshbctype.h:58
@ SpecifiedStageTS
Time-varying water-surface elevation.
Definition meshbctype.h:56
@ NormalFlow
Manning outflow at bed slope.
Definition meshbctype.h:54
static QString label(Type t)
Translate the display label for a mesh boundary-condition variant.
Definition meshbctype.cpp:18
static Type fromInpToken(const QString &token, bool *ok=nullptr)
Parse a trimmed case-insensitive INP boundary token into a GUI variant.
Definition meshbctype.cpp:60
The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and...