daestrom said:Shouldn't the volume of 1' of "NP" number of 1" pipes be....
V1=NP*PI/(12^2) / 4
Yes. Thanks for noticing.
This value for TF(NS-1) doesn't agree with your pumping arrangement. The
ASCII art seems to show that the heat-exchanger inlet on the fresh-water
side is a mixture of cold water (55F) and water drawn from the tank bottom.
Most of the cold water flowing into the heat exchanger comes from the tank
bottom, since most pumping (about 30 Cfresh bursts over 2 hours) happens
during non-shower times, in order to keep the heat exchanger usefully
employed with significant temp diffs more of the time. There might be no
fresh water flow into the heat exchanger during a shower. This is not
the same as running a pump to increase fluid velocity and film conductance.
Cold water flow is 1.25 gpm, tank bottom out flow is <pumpFlow> - 1.25 gpm,
so the mixed temperature at pump discharge is TF(NS-1) = (1.25*55+(<pump
flow> - 1.25)*<tank-bottom-temp>) / <pump flow>
I imagine the tank bottom temp will be close to 55 F, with a slow pump and
water heater stratification, with the lower heating element disabled.
Here's the result with the pipe volume fix, and another in line 100,
which didn't have the NP multiplier.
20 DIM TF(50),TG(50)
30 VG=1.25*8.33/62.33'volume of 1.25 gallons (ft^3)
40 V4=PI*(2/12)^2'volume of 1' of 4" pipe (ft^3)
50 NP=3'number of 1" pipes
60 V1=NP*PI*(.5/12)^2'volume of 1' of 1" pipes (ft^3)
70 LS=VG/(V4-V1)'simulation segment length (feet)
80 NS=INT(100/LS+.5)'number of simulation segments
100 UPIPE=10*LS*NP*PI/12'U-value of L' section of 1" pipe (Btu/h-F)
110 CFRESH=LS*V1*62.33'thermal capacitance of L' of 1" pipe (Btu/F)
120 CGREY=VG*62.33'capacitance of L' of greywater (Btu/F)
130 CSERIES=CFRESH*CGREY/(CFRESH+CGREY)'caps in series (Btu/F)
140 RC=CSERIES/UPIPE'combined time constant (hours)
150 EXPF=EXP(-1/60/RC)'exponential factor
160 FOR SHOWER = 1 TO 500'simulate showers
170 FOR M=0 TO 119'simulate 10 min shower every 120 minutes
180 IF M>9 GOTO 250'rest vs shower
190 IF SHOWER <500 GOTO 210
200 PRINT 600+M;"'";M,TG(NS-1)
210 FOR S=NS-1 TO 1 STEP -1'pipe section (ns-1<->fw in and gw out)
220 TG(S)=TG(S-1)'move greywater down
230 NEXT S
240 TG(0)=100'move greywater in
250 IF (TG(0)-TF(0))>5 OR TG(0)<60 GOTO 310'no pumping
260 IF SHOWER>249 THEN HEAT=HEAT+CFRESH*(TF(0)-55)
270 FOR S=0 TO NS-2'shift fresh water up
280 TF(S)=TF(S+1)
290 NEXT S
300 TF(NS-1)=55'move cold water in at the bottom
310 FOR S=0 TO NS-1'rest
320 TFINAL=(TF(S)*CFRESH+TG(S)*CGREY)/(CFRESH+CGREY)
330 TF(S)=TFINAL+(TF(S)-TFINAL)*EXPF'new fresh temp (F)
340 TG(S)=TFINAL+(TG(S)-TFINAL)*EXPF'new grey temp (F)
350 NEXT S
360 NEXT M
370 NEXT SHOWER
380 SHOWERGY=250*10*CGREY*(100-55)'250 showers with no GWHX (Btu)
390 PRINT 500+NP;"'";HEAT,SHOWERGY,HEAT/SHOWERGY,PUMP
number of recovered required recovered pumping
pipes heat (Btu) heat (Btu) fraction events
1 175586.9 234281.3 .7494707 6095
2 229994.3 234281.3 .9817018 4365
3 1168364 1171406 .997403 15060
Putting NP in line 100 raised the 2-pipe fraction a lot, but that would drop
with shorter shower intervals. I increased the number of 3-pipe showers from
100 to 500 because its fraction came out greater than 1, given the stochastic
pumping. The greywater outlet seems surprisingly warm during the last shower.
The 3-pipe simulation only has 13 pipe sections. It may need more.
min gw outlet
0 59.37316 F
1 60.09058
2 60.88006
3 61.63319
4 62.3915
5 63.15523
6 63.91952
7 64.68189
8 65.44382
9 66.20461
Nick