|
Re: Transport R1 Problems
Scott, this may well be in the manner of three months too late to help but I've been working on other code issues and got back to your message about the Transport R1 lines:
In a nutshell, I don't see anything wrong. I arrive at this conclusion by comparing the input flows and concentrations on your input-echo (NNYN locations, listed on the J1 lines) with the values in your massive R1 arrays. They match number for number at the indicated times.
I wonder if you forgot that in the input file you sent me (MC_CP5yb.inp) you use NFLEW = 1 on the B0 line. This means that the echoed inflow concentrations include *all* incoming flows, including upstream and constant inflows. If NFLEW = 0, it only echoes the R1 line input. When I use INFLEW = 0, I get exactly the values from the R1 lines.
If you use NFLEW = 1, then the input pollutograph echo is the mixed concentration, including all inflows to an element. If you compare that with the R1 lines, of course, they won't be the same. Also be aware, that if you use NFLEW = 0 and have input from both the R1 lines and from an interface file (e.g., from the Runoff Block), then the input-echo will be the mixed concentration.
So, I don't see a problem here. If you still have such a problem or if you haven't got it figured out on your own, please let me know.
One other point: remember that there will be linear interpolation between values entered on the R1 lines. You enter values every 15 minutes but have a 1-min time step. That means that the inflows and their concentrations "ramp" up and down from zero. Hence, you have inflows and loads coming in from 15 minutes before your first non-zero value and for 15 min. after you last non-zero value. You can force a step-function input if that's what you want by inputing two sets of flow/concentration values for the same time. For instance, if you want your first inflow/concentration to begin as a step function at 10:00, then enter a first flow/concentration value at time 10:00 of zero. Then follow with another R1 line at 10:00 with the desired flow/concentration. There will still be a slight averaging effect but this will only occur over the length of one time step (1-min in your case) instead of the R1 time interval you happen to be using (15 min in your case). Unfortunately, if you have flows starting and stopping at many different intervals for, in your case, 50 different inflow locaitons, you might have to drastically increase the number of R1 rows to get all these step changes worked out.
And finally, remember the R1 times do not have to be evenly spaced. There only needs to be an entry when there is a change in flow or concentration at one of the input locations.
Thanks,
Wayne
|