22.02.2013 Views

Selective Salt Recovery from Reverse Osmosis Brine - University of ...

Selective Salt Recovery from Reverse Osmosis Brine - University of ...

Selective Salt Recovery from Reverse Osmosis Brine - University of ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

guess. This field feeds fsolve, the non-linear solver, an initial guess for solution phase<br />

ion amounts (total meq). Since this number can vary greatly depending on the size <strong>of</strong> a<br />

particular element and the initial solution concentrations, this approach is better than hard<br />

coding a “one size fits all” guess into the function. It will not converge if the guess is too<br />

far <strong>from</strong> the actual value. The input guess is only used for the first time step in the first<br />

element. For all subsequent equations, the equilibrium concentration in the previous time<br />

step in the previous element is used a guess.<br />

Figure 9: Graphical User Interface for MATLAB model<br />

The GUI also allows for graphing <strong>of</strong> solution and resin phase ion equivalents over<br />

time and space. This feature was added to allow the user to confirm that the calculations<br />

were successful and to get a quick overview <strong>of</strong> the system. Users can export the solution<br />

or resin phase ion equivalents at a specific time for all segments as text file that can be<br />

imported to any graphing program and can be plotted to shows the distribution <strong>of</strong> ions<br />

within the column for any time (see Figure 10). The arrays can also be accessed directly<br />

<strong>from</strong> the MATLAB environment by using the functions employed by the GUI graphing<br />

feature. The function entitled get_segment_data allows the user to retrieve resin or<br />

27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!