10#ifndef OPENSWMMVIS_GROUNDWATERTRANSPORTASSIGNMENT_H
11#define OPENSWMMVIS_GROUNDWATERTRANSPORTASSIGNMENT_H
12#include <openswmm/engine/openswmm_engine.h>
57 QVector<GroundwaterSpeciesTerm>
terms;
98 QString *
error =
nullptr);
111 QVector<GroundwaterSpeciesTerm>
terms;
146 std::function<
bool(
int)> beforeWrite = {});
154 const GroundwaterTransportPreview &preview);
Spatial assignment of groundwater forcing to selected mesh cells.
Definition groundwaterassignment.h:22
GroundwaterTransportPreview previewGroundwaterTransport(const GroundwaterTransportRequest &request, std::function< bool()> cancelled={})
Build a validated initial-quality or groundwater-source edit using snapshot data only.
Definition groundwatertransportassignment.cpp:537
GroundwaterTransportTarget
Definition groundwatertransportassignment.h:99
GroundwaterTransportResult applyGroundwaterTransport(SWMM_Engine engine, const GroundwaterTransportPreview &preview, std::function< bool(int)> beforeWrite={})
Commit reviewed transport rows with preflight, readback and bounded restoration.
Definition groundwatertransportassignment.cpp:773
GroundwaterTransportResult undoGroundwaterTransport(SWMM_Engine engine, const GroundwaterTransportPreview &preview)
Restore the before state only when the engine still matches the reviewed after state.
Definition groundwatertransportassignment.cpp:782
QVector< TransportSpecies > groundwaterTransportSpecies(SWMM_Engine engine, QString *error=nullptr)
Read enabled groundwater species and native concentration/mass-rate metadata.
Definition groundwatertransportassignment.cpp:335
bool readGroundwaterTransportSnapshot(SWMM_Engine engine, GroundwaterTransportSnapshot *snapshot, QString *error=nullptr)
Capture inputs needed for transport validation and stale-preview detection.
Definition groundwatertransportassignment.cpp:404
GroundwaterSourceDistribution
Definition groundwatertransportassignment.h:100
void * SWMM_Engine
Definition objectdefaultsapplier.h:23
Definition groundwaterassignment.h:69
Definition groundwatertransportassignment.h:32
int cell
Definition groundwatertransportassignment.h:33
QString tag
Definition groundwatertransportassignment.h:34
double value
Definition groundwatertransportassignment.h:35
int layer
Definition groundwatertransportassignment.h:33
int scope
Definition groundwatertransportassignment.h:33
bool operator==(const GroundwaterQualityRow &other) const =default
Compare all stored GroundwaterQualityRow fields using their value equality operators.
int zone
Definition groundwatertransportassignment.h:33
QString species
Definition groundwatertransportassignment.h:34
Definition groundwatertransportassignment.h:53
double scale
Definition groundwatertransportassignment.h:56
int scope
Definition groundwatertransportassignment.h:55
QVector< GroundwaterSpeciesTerm > terms
Definition groundwatertransportassignment.h:57
QString name
Definition groundwatertransportassignment.h:54
QString series
Definition groundwatertransportassignment.h:54
QString tag
Definition groundwatertransportassignment.h:54
int cell
Definition groundwatertransportassignment.h:55
bool operator==(const GroundwaterSourceRow &other) const =default
Compare all stored GroundwaterSourceRow fields using their value equality operators.
double flow
Definition groundwatertransportassignment.h:56
Definition groundwatertransportassignment.h:43
QString series
Definition groundwatertransportassignment.h:44
double value
Definition groundwatertransportassignment.h:45
QString kind
Definition groundwatertransportassignment.h:44
QString species
Definition groundwatertransportassignment.h:44
bool operator==(const GroundwaterSpeciesTerm &other) const =default
Compare all stored GroundwaterSpeciesTerm fields using their value equality operators.
Definition groundwatertransportassignment.h:115
GroundwaterTransportTarget target
Definition groundwatertransportassignment.h:117
QString error
Definition groundwatertransportassignment.h:119
GroundwaterTransportSnapshot before
Definition groundwatertransportassignment.h:116
QVector< int > skippedCells
Definition groundwatertransportassignment.h:118
GroundwaterTransportSnapshot after
Definition groundwatertransportassignment.h:116
QVector< int > cells
Definition groundwatertransportassignment.h:118
Definition groundwatertransportassignment.h:101
GroundwaterSourceDistribution distribution
Definition groundwatertransportassignment.h:112
QVector< GroundwaterSpeciesTerm > terms
Definition groundwatertransportassignment.h:111
QVector< double > values
Definition groundwatertransportassignment.h:105
bool skipNoData
Definition groundwatertransportassignment.h:106
QVector< double > areaWeights
Definition groundwatertransportassignment.h:113
int zone
Definition groundwatertransportassignment.h:108
GroundwaterTransportTarget target
Definition groundwatertransportassignment.h:103
GroundwaterTransportSnapshot before
Definition groundwatertransportassignment.h:102
QString species
Definition groundwatertransportassignment.h:107
QVector< int > cells
Definition groundwatertransportassignment.h:104
QString flowSeries
Definition groundwatertransportassignment.h:110
QString sourceName
Definition groundwatertransportassignment.h:110
int layer
Definition groundwatertransportassignment.h:109
Definition groundwatertransportassignment.h:131
QString error
Definition groundwatertransportassignment.h:133
bool changed
Definition groundwatertransportassignment.h:132
bool success
Definition groundwatertransportassignment.h:132
bool rollbackComplete
Definition groundwatertransportassignment.h:132
Definition groundwatertransportassignment.h:65
AquiferSnapshot aquifers
Definition groundwatertransportassignment.h:67
bool operator==(const GroundwaterTransportSnapshot &other) const
Compare all snapshot inputs used to reject stale transport previews.
Definition groundwatertransportassignment.cpp:316
QVector< bool > activeCells
Definition groundwatertransportassignment.h:69
QMap< QString, QVector< QPointF > > timeSeries
Definition groundwatertransportassignment.h:75
QVector< GroundwaterQualityRow > quality
Definition groundwatertransportassignment.h:70
int cellCount
Definition groundwatertransportassignment.h:66
QVector< TransportSpecies > species
Definition groundwatertransportassignment.h:73
QVector< GroundwaterSourceRow > sources
Definition groundwatertransportassignment.h:72
QStringList cellTags
Definition groundwatertransportassignment.h:68
QMap< QString, QString > options
Definition groundwatertransportassignment.h:74
QString qualityFile
Definition groundwatertransportassignment.h:71
Definition groundwatertransportassignment.h:22
QString nativeMassRateUnits
Definition groundwatertransportassignment.h:23
bool operator==(const TransportSpecies &other) const =default
Compare all stored TransportSpecies fields using their value equality operators.
QString nativeConcUnits
Definition groundwatertransportassignment.h:23
QString id
Definition groundwatertransportassignment.h:23
bool massSupported
Definition groundwatertransportassignment.h:24
bool signedConcentration
Definition groundwatertransportassignment.h:24
double error
Definition terrainerrorfield.cpp:42
bool cancelled
Definition vectorexport.cpp:214