EPANET  3.0
EPANET Development Project
qualsource.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef QUALSOURCE_H_
12 #define QUALSOURCE_H_
13 
14 class Node;
15 class Pattern;
16 
19 
21 {
22  public:
23 
26  MASS,
29  };
30 
31  static const char* SourceTypeWords[];
32 
33  QualSource();
34  ~QualSource();
35 
37  static bool addSource(Node* node, int t, double b, Pattern* p);
38 
40  void setStrength(Node* node);
41  double getQuality(Node* node);
42 
43  int type;
44  double base;
46  double strength;
47  double outflow;
48  double quality;
49 };
50 
51 #endif
QualSourceType
Definition: qualsource.h:24
A connection point between links in a network.
Definition: node.h:30
void setStrength(Node *node)
Determines quality concen. that source adds to a node's outflow.
Definition: qualsource.cpp:52
Pattern * pattern
source time pattern
Definition: qualsource.h:45
Externally applied water quality at a source node.
Definition: qualsource.h:20
concentration of any external inflow
Definition: qualsource.h:25
sets the concentration of water leaving a node
Definition: qualsource.h:28
double quality
node quality after source is added on (mass/ft3)
Definition: qualsource.h:48
double base
baseline source quality (mass/L or mass/sec)
Definition: qualsource.h:44
int type
source type
Definition: qualsource.h:43
double strength
pattern adjusted source quality (mass/ft3 or mass/sec)
Definition: qualsource.h:46
boosts a node's concentration by a fixed amount
Definition: qualsource.h:27
double outflow
flow rate released from node into network (cfs)
Definition: qualsource.h:47
A set of multiplier factors associated with points in time.
Definition: pattern.h:29
static bool addSource(Node *node, int t, double b, Pattern *p)
Factory method for adding a new source (or modifying an existing one)
Definition: qualsource.cpp:35
adds a fixed mass inflow to a node
Definition: qualsource.h:26