Closed sashahafner closed 1 year ago
Would require change in sign in advec calculation and change in position of where clin ("fresh" liquid concentration, not yet an input) is appended to concentration vector.
See around L 92 in mod_funcs.py
# Liquid phase derivatives (g/s)
# Includes transport and reaction
rxn = k * mcl
if not counter:
cvec = np.insert(ccl, 0, clin)
else:
v_l = - v_l
cvec = np.insert(ccl, nc, clin)
That's from ef4771cc96eb74f6c78d536973d62c8ab7fcdecb
So it works by changing sign of liquid flow and putting liquid inlet concentration at the end of the cell/layer stack instead of the beginning.
Maybe use "countercur" instead? "count" seems like a count of iterations etc.
This should be pretty easy now that we have liquid flow.