-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes in getMSXOptions and setMSXOptions .- add test_msx_options.
add example.inp and example.msx
- Loading branch information
Showing
5 changed files
with
236 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
__author__ = """Marios S. Kyriakou""" | ||
__email__ = "[email protected]" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__msxversion__ = "2.0.0" | ||
__copyright__ = """Copyright 2022, KIOS Research and Innovation Center of Excellence (KIOS CoE), | ||
University of Cyprus (www.kios.org.cy).""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[TITLE] | ||
EPANET-MSX Example Network | ||
|
||
[JUNCTIONS] | ||
;ID Elev Demand Pattern | ||
A 0 4.1 | ||
B 0 3.4 | ||
C 0 5.5 | ||
D 0 2.3 | ||
|
||
[RESERVOIRS] | ||
;ID Head Pattern | ||
Source 100 | ||
|
||
[PIPES] | ||
;ID Node1 Node2 Length Diameter Roughness | ||
1 Source A 1000 200 100 | ||
2 A B 800 150 100 | ||
3 A C 1200 200 100 | ||
4 B C 1000 150 100 | ||
5 C D 2000 150 100 | ||
|
||
[TIMES] | ||
Duration 48 | ||
Hydraulic Timestep 1:00 | ||
Quality Timestep 0:05 | ||
Report Timestep 2 | ||
Report Start 0 | ||
Statistic NONE | ||
|
||
[OPTIONS] | ||
Units CMH | ||
Headloss H-W | ||
Quality NONE | ||
|
||
[END] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[TITLE] | ||
Arsenic Oxidation/Adsorption Example | ||
|
||
[OPTIONS] | ||
AREA_UNITS M2 ;Surface concentration is mass/m2 | ||
RATE_UNITS HR ;Reaction rates are concentration/hour | ||
SOLVER RK5 ;5-th order Runge-Kutta integrator | ||
TIMESTEP 360 ;360 sec (5 min) solution time step | ||
RTOL 0.001 ;Relative concentration tolerance | ||
ATOL 0.0001 ;Absolute concentration tolerance | ||
|
||
[SPECIES] | ||
BULK AS3 UG ;Dissolved arsenite | ||
BULK AS5 UG ;Dissolved arsenate | ||
BULK AStot UG ;Total dissolved arsenic | ||
WALL AS5s UG ;Adsorbed arsenate | ||
BULK NH2CL MG ;Monochloramine | ||
|
||
[COEFFICIENTS] | ||
CONSTANT Ka 10.0 ;Arsenite oxidation rate coefficient | ||
CONSTANT Kb 0.1 ;Monochloramine decay rate coefficient | ||
CONSTANT K1 5.0 ;Arsenate adsorption coefficient | ||
CONSTANT K2 1.0 ;Arsenate desorption coefficient | ||
CONSTANT Smax 50 ;Arsenate adsorption saturation limit | ||
|
||
[TERMS] | ||
Ks K1/K2 ;Equil. adsorption coeff. | ||
|
||
[PIPES] | ||
;Arsenite oxidation | ||
RATE AS3 -Ka*AS3*NH2CL | ||
;Arsenate production | ||
RATE AS5 Ka*AS3*NH2CL - Av*(K1*(Smax-AS5s)*AS5 - K2*AS5s) | ||
;Monochloramine decay | ||
RATE NH2CL -Kb*NH2CL | ||
;Arsenate adsorption | ||
EQUIL AS5s Ks*Smax*AS5/(1+Ks*AS5) - AS5s | ||
;Total bulk arsenic | ||
FORMULA AStot AS3 + AS5 | ||
|
||
[TANKS] | ||
RATE AS3 -Ka*AS3*NH2CL | ||
RATE AS5 Ka*AS3*NH2CL | ||
RATE NH2CL -Kb*NH2CL | ||
FORMULA AStot AS3 + AS5 | ||
|
||
[QUALITY] | ||
;Initial conditions (= 0 if not specified here) | ||
NODE Source AS3 10.0 | ||
NODE Source NH2CL 2.5 | ||
|
||
[REPORT] | ||
NODES C D ;Report results for nodes C and D | ||
LINKS 5 ;Report results for pipe 5 | ||
SPECIES AStot YES ;Report results for each specie | ||
SPECIES AS5 YES | ||
SPECIES AS5s YES | ||
SPECIES NH2CL YES |
Oops, something went wrong.