In Q struct 1*1 why time is 865*1


#1

Hi,
I run this example.
I know it shows quality in the nodes, but I do not know what the 1441is?
What does Q.time show? For example, What is the meaning of " Q{1,1}.time "?
When I set t_d=5, l had 1441 and when I se t_d=3 I had 865.
What is the 1441? 865 How did get it?

Thanks,
Thomas


#2

Hi @mollerth,

1440 are the total timesteps for a t_d=5 day simulation. Every day has 288 time steps corresponding to 5 minutes.


#3

Hi @Mariosmsk Thank you very much for answering
That is, every 5 minutes water quality report?
Can this number (total timesteps) be changed? Is it a command?
Best,
thomas


#4

Hi again @Mariosmsk , For each network, how can I see how many timesteps are defined?
How did you find that 288 different timesteps have been set for each day?

Thanks in advance!


#5

You can set time step for the MSX with the function: e.g. >>G.setMSXTimeStep(600). The default value is 300sec. You can find the timestep in file Arsenite.msx.

.


#6

Hi again @Mariosmsk really thanks for your answer,I was confused by seeing 1441!
Can I change MSX file to only ASIII injection?
I mean, if I change the file like this, the results will remain correct?


[TITLE]
AsIII reaction kinetic model
for Morehead, KY WDS

[OPTIONS]
RATE_UNITS  MIN
SOLVER      EUL
TIMESTEP    300
 RTOL        1.E-3
ATOL        1.E-3

[SPECIES]
; Type   Name      Units   RTol   ATol

BULK    AsIII     MG      1.E-3  1.E-3


[COEFFICIENTS]
CONSTANT KB         6.94444E-4  ;1/24/60=Free chlorine bulk decay rate == 1/day
CONSTANT K2         69.4        ;100000/24/60= Arsenite oxidation velocity;

CONSTANT MWAsIII    74.92       ;mg/mmol arsenite as As


[PIPE]

RATE AsIII    -K2*Chlorine*AsIII/MWChlorine


[SOURCES]
SETPOINT    RESERVOIR-129	Chlorine	0.7	CL2PAT

[PATTERNS]
CL2PAT    1  
AS3PAT 1

Best,
Thomas