<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JWARP</journal-id><journal-title-group><journal-title>Journal of Water Resource and Protection</journal-title></journal-title-group><issn pub-type="epub">1945-3094</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jwarp.2009.12016</article-id><article-id pub-id-type="publisher-id">JWARP-615</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Earth&amp;Environmental Sciences</subject></subj-group></article-categories><title-group><article-title>
 
 
  Modeling and Control of pH in Pulp and Paper Wastewater Treatment Process
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>iayu</surname><given-names>KANG</given-names></name><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mengxiao</surname><given-names>WANG</given-names></name></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhongjun</surname><given-names>XIAO</given-names></name></contrib></contrib-group><author-notes><corresp id="cor1">* E-mail:<email>kangjiayu@sust.edu.cn(IK)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>21</day><month>08</month><year>2009</year></pub-date><volume>01</volume><issue>02</issue><fpage>122</fpage><lpage>127</lpage><history><date date-type="received"><day>March</day>	<month>24,</month>	<year>2009</year></date><date date-type="rev-recd"><day>April</day>	<month>12,</month>	<year>2009</year>	</date><date date-type="accepted"><day>April</day>	<month>16,</month>	<year>2009</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Pulp and paper industry is responsible for large discharge of highly polluted effluents, which often be treated by biological treatment process. For biological treatment system, pH is an important environmental factor that can influence the activity of microorganisms. In general, the optimal pH for aerobic processes is around neutral pH (7_7.8) and for the anaerobic process is between 6.8_7.2. The control of pH is a difficult link in the biological treatment system due to its nonlinearity and large time-delay. Aiming at the difficult point in the pH control of the biological wastewater treatment system, a mathematical model of pH control is estab-lished in the essay. On this basis, a traditional PID control and a cascade control are adopted to carry out simulation and comparison with MATLAB. The results show that the cascade control has better comprehen-sive effect in terms of response speed, stability and disturbance resistance.
 
</p></abstract><kwd-group><kwd>Biological Treatment</kwd><kwd> pH</kwd><kwd> MATLAB</kwd><kwd> Cascade Control</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1.&#160; Introduction</title><p>Pulp and paper industry is the greatest industrial polluter in terms of wastewater volumes and organic discharges. The general characteristics of the pulp and paper industry effluent can be listed as: 1) high lignin content, 2) high absorbable organic halide concentration, 3) color, 4) low biodegradability which is indicated by their high chemical oxygen demand to biochemical oxygen demand ratios, and 5) potential toxicity problems.</p><p>The typical treatment processes for pulp and paper effluents are chemical precipitation, lagooning, activated sludge, and anaerobic treatment. It should be mentioned that the liquors from alkaline pulping, wood resins, and tannins are potentially toxic to methane bacteria. Moreover, the degradation of lignin by the anaerobic consortium is limited to the low molecular weight fraction. Until now aerobic treatment systems are the most widely used method to treat effluents from pulp plants. However when the economic concerns and the rate of treatment are considered, anaerobic treatment is an alternative that must be considered [<xref ref-type="bibr" rid="scirp.615-ref1">1</xref>].</p><p>The anaerobic process has been successfully applied in the treatment of nontoxic and easily biodegradable wastewaters from pulp and paper plants, such as the effluents from mechanical pulping, from paper recycling and from evaporation condensates. In fact anaerobic reactor followed by aerobic reactor is more successful at reducing toxicity [<xref ref-type="bibr" rid="scirp.615-ref2">2</xref>]. Reductive dechlorination may occur in anaerobic stage and produce less chlorinated organics. These organics may be further biotransformed in conventional aerobic stage.</p><p>Biological treatment such as aerobic and anaerobic process is indisputably the most effective, economical way used for treating pulp and paper effluents [<xref ref-type="bibr" rid="scirp.615-ref2">2</xref>]. In biological treatment living organisms are used for purifying waste, which can be solid, liquid or gas. The substance that is degraded acts as a source of building blocs and/or energy source for the microorganisms so they can fulfill their goal in life, which is to multiply.</p><p>There are a lot of factors that influence the well being of microorganisms, such as temperature, pH, nutrient, etc.&#160; And pH is one of the most important factors. It should not be allowed to vary too much during a short time period since variations of the pH can be of big influence on the behaviour of bacteria, low pH(&lt;6.8)and high (&gt;8.2) as well as sudden increase or decrease of the pH, should be avoided. In general the optimal pH for aerobic processes is around neutral pH (7_7.8) [2-3] and for the anaerobic process is between 6.8_7.2 [4-5].</p><p>For pulp and paper wastewater, pH may vary considerably, depending on the raw material and manufacturing process utilized. For control of the pH in the system, an automatic dosing system is installed and strong acid (HCL) and strong base (NaOH) are adopted as neutralizing liquid in the system.</p></sec><sec id="s2"><title>2. Basis and the Difficult Point of pH Control</title><p>As shown in the acid-base titration curve [<xref ref-type="bibr" rid="scirp.615-ref6">6</xref>], the changes at the two ends of the curve are gentle, that is to say, the pH varies very little with the addition of strong acid (or strong base); however, the sensitivity is very high around the neutral point, and the pH is to change dramatically even when a little strong acid (or strong base) is added in. the sensitivity is very high near the neutral point, while is extremely low at the place far from the neutral point, and it has been proven by experiments that the nonlinearity of a strong acid-strong base neutralization process is more obvious than that of a weak acid-strong base process.</p><p>As for the pH control system in biological wastewater treatment, the target range of pH is required to be controlled within 7_7.8 for aerobic processes and 6.8-7.2 for the anaerobic process, which are just located in the vicinity of the neutral point of the titration curve, thus the sensitivity of change is high; on the one hand, a controller is required to have relatively high control precision, on the other hand, control difficulty is raised as the controller becomes more sensitive to lagging.</p><p>The pH control of the biological wastewater treatment system is an indispensable measurement item; however, it is difficult to control, for there are numerous phenomena that can not be described quantitatively. The main reasons are as follows:</p><p>1) Wastewater from pulp and paper mill may be either acidic or basic at different moments; therefore, two neutralization reagents are needed. The pH in the neutralization reaction has typical nonlinearity [7-8].</p><p>2) The acidic and basic ingredients contained in wastewater are complex, which causes the pH curve of the measured object to be difficult to determine.</p><p>3) There is pure lagging at the mixing, measuring and other links in the pH control process [9-10], so that the regulated amount fails to reflect the perturbation borne by the system in time. Even if a measuring signal reaches an adjustor and the adjustor receives a regulatory signal to take action instantly, it is not until after a pure lagging period that the regulated amount can be concerned and controlled. Therefore, such a process will inevitably generate a more significant overshoot and a longer control period. The existence of pure lagging also contributes to the difficulty of pH control.</p></sec><sec id="s3"><title>3.  Modelling of pH Control System</title><sec id="s3_1"><title>3.1.  Model Building of pH Control Process in the Biological Wastewater Treatment   System</title><p>For the reasons described above, it is necessary to carry out preliminary model building to a concerned object before a pH control proposal is put forward so as to facilitate the research and to further study the characteristics of the object.</p><p>If the relation between the flow rate u of a neutralization flow and the flow rate F of a process flow in the neutralization process is assumed to be that: u&#171;F, the following input/output relation can be worked out [<xref ref-type="bibr" rid="scirp.615-ref11">11</xref>]:</p><disp-formula id="scirp.615-formula139519"><label>(1)</label><graphic position="anchor" xlink:href="7-9400030\10bfce5d-c02e-4291-afdb-54dc87909e61.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.615-formula139520"><label>(2)</label><graphic position="anchor" xlink:href="7-9400030\8578e7bd-45ec-48b4-868c-b97212668272.jpg"  xlink:type="simple"/></disp-formula><p>Wherein: F represents the flow rate of the process flow; u represents the flow rate of the neutralization flow; V represents the volume of the preparation pool; X represents the state variable of the model; T (pH) represents the back-titration cure of the process flow, the nonlinearity of the process is just contained in the back-titration cure T (pH) of the process flow, and the T (pH) is related to ingredients and concentration of all chemical substances added in the preparation pool; if all chemical ingredients in the whole system are known, the nonlinearity of the process can be expressed as follows:&#160;</p><disp-formula id="scirp.615-formula139521"><label>(3)</label><graphic position="anchor" xlink:href="7-9400030\67e94cd8-4826-407c-922a-473118bcf799.jpg"  xlink:type="simple"/></disp-formula><p>Wherein: n represents the number of the ions in the preparation pool, c<sub>i </sub>represents the ion concentration of the i th kind of process flow, and x<sub>i</sub>t represents the concentration of the i th kind of neutralizing liquid,</p><disp-formula id="scirp.615-formula139522"><label>(4)</label><graphic position="anchor" xlink:href="7-9400030\70485d44-e123-42fa-82fe-095bf96091dd.jpg"  xlink:type="simple"/></disp-formula><p>&#160; <img src="7-9400030\ba76f5a5-7c2f-4c3e-85d8-a600cb1e1366.jpg" /> Represents an acid-base weight factor, and it is equal to -1 for strong monacid and +1 for strong monoacidic base. Therefore, when there are only strong acid solution and strong alkaline solution, the concentration of solution can be directly combined; only when there are weak acid and weak base, a weight factor,<img src="7-9400030\1c076f85-2fa6-4501-ba3e-47d254a0fcd7.jpg" /> , needs to be multiplied. The required volume of solution when it reaches a set point is determined by a weight sum, that is,<img src="7-9400030\bc81efc6-7ce5-4321-88d5-455b5124c0b8.jpg" />. The weight sum is named as a strong acid equivalent which can directly reflect the amount of the neutralizing agent required for titrate the pH to a set value, and it can be taken as a control objective and has larger practical significance than the pH.</p><p>In the process of neutralization titration, the difference value between an actually measured pH and a set value is in line with a non-linear conversion process, and the numeral value is [12-13]:</p><disp-formula id="scirp.615-formula139523"><label>(5)</label><graphic position="anchor" xlink:href="7-9400030\21fc05cb-cf5f-40e7-95b7-e2b454d8a620.jpg"  xlink:type="simple"/></disp-formula><p>The process is dynamic balance output of pH; as long as there is a one-to-one relation between the pH and T (pH), the pH is controlled to be pH<sub>sv, </sub>which is equivalent to the control of Y, and the Y is set to be 0. In this way, the control problem of pH is converted into a linear problem. &#160;</p><p>The following study on pH control is based on the Formula (1) and the Formula (2) described above.</p></sec></sec><sec id="s4"><title>4.  pH Control</title><p>As remarked above, the adjustment of the pH in the an aerobic wastewater treatment is completed in the preparation pool, and strong acid (HCL) and strong base (NaOH) are generally adopted as neutralizing liquid in a project.</p><p>The flow chart of pH neutralizing process is shown as <xref ref-type="fig" rid="fig1">Figure 1</xref>. In the <xref ref-type="fig" rid="fig1">Figure 1</xref>, F represents the flow rate of the process flow; <img src="7-9400030\bf558e23-a023-4c0e-9cbe-9cf39a1f0968.jpg" />and <img src="7-9400030\71a05e4e-8f36-4ec6-83bf-e2ddf145e6b1.jpg" /> represent the flow rate of the neutralizing flow; <img src="7-9400030\bb25423a-7642-45cc-9cc0-4c7e6d03bd52.jpg" />and <img src="7-9400030\857d144f-0cda-48fe-9d33-d7d34f6ad8df.jpg" /> represent the concentration of the neutralizing flow; <img src="7-9400030\c3dd9b70-778a-4bd4-9aae-557e8b575325.jpg" />represent the flow rate of the wastewater in a branch loop of the preparation pool; <img src="7-9400030\21339df8-711d-43c7-91be-143f581ad1d7.jpg" />is the flow rate of the swage sent to the reactor.</p><p>The concentration of the acid liquor or alkali liquor to be added is calculated and adjusted according to the technology. It is prevented from fluctuating, so that we can focus on the stabilization of the flow rate of acid or base. We can take the acid adding single feeding process when the pH is too high as the study object to carry out further analysis so as to obtain a structural diagram of the system as shown in the <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>As shown in the <xref ref-type="fig" rid="fig2">Figure 2</xref>, the cascade control system forms two closed loops in terms of the structure, the flow loop and the pH loop, which are called auxiliary ring and main ring respectively. The flow PID controller controls the flow control valve according to the pH PID controller, thus ensuring that the pH can still meet the requirements under the condition of feeding disturbance.</p><p>Nevertheless, in the actual production process, it is inevitable that the mixing concentration of the neutralizing liquid has small difference and fluctuation in different times, however, the method described above can effectively eliminate the influence on pH adjustment caused by the fluctuation; as the flow self stabilization system can act quickly, the fluctuation of the concentration of the neutralizing liquid can be eliminated in a short time.</p></sec><sec id="s5"><title>5.  Simulation of the pH Cascade Control System</title><sec id="s5_1"><title>5.1.  Building a Simulation Model</title><p>1) Model building of a main controlled object and an auxiliary controlled object in the cascade loops According to the preliminary model building of the neutralization process in section II, a first order model can be obtained:</p><p><img src="7-9400030\7ab0f107-ce6b-44da-aae7-cddab9ce832b.jpg" /></p><p>The study on the pH control is based on the above two formulas; similarly, let’s take the acid adding process when the pH is too high as an example. The formulas are subject to Laplace transformation to obtain the following transfer function:</p><disp-formula id="scirp.615-formula139524"><label>(6)</label><graphic position="anchor" xlink:href="7-9400030\45ca5479-bb5e-4a31-98f4-922ea5e838ed.jpg"  xlink:type="simple"/></disp-formula><p>Given the pure lagging caused by the pipeline and the detection process of a measuring instrument as well as a delay factor, the transfer function is converted into:</p><disp-formula id="scirp.615-formula139525"><label>(7)</label><graphic position="anchor" xlink:href="7-9400030\8e8eecc0-9a15-4d7a-ae61-dea7475d59b7.jpg"  xlink:type="simple"/></disp-formula><p>The Formula (7) shows the model of the pH neutralizing process; according to the actual situation, the parameters in the formula are respectively as follows:</p><p><img src="7-9400030\079b0773-3ef3-49db-b591-ae9d17b301df.jpg" /></p><p>All the parameters are written into the formula which is simplified into a standard form:</p><disp-formula id="scirp.615-formula139526"><label>(8)</label><graphic position="anchor" xlink:href="7-9400030\8c5a3b39-196c-4c3e-8bf9-cf4c78e9e221.jpg"  xlink:type="simple"/></disp-formula><p>As for the flow adjusting process in the cascade control loops, the objective transfer function is as:</p><disp-formula id="scirp.615-formula139527"><label>(9)</label><graphic position="anchor" xlink:href="7-9400030\1d3c06f3-9916-4c43-8934-dc3af4af4243.jpg"  xlink:type="simple"/></disp-formula><p>2) Selection of a main adjuster and an auxiliary adjuster in the cascade loops In the cascade control system, the main adjuster and the auxiliary adjuster have different tasks; their type selection, that is, the selection of adjusting action law, also have different requirements. The task of the auxiliary adjuster is to take quick action to offset the secondary disturbance in the auxiliary ring, and non-error adjustment of auxiliary parameters is not required, thus a P adjuster is adopted in the model building. However, the task of the main adjuster is to accurately maintain the regulated variable to meet production requirements, therefore, a PI adjuster is selected to eliminate residual error.</p></sec><sec id="s5_2"><title>5.2.  Setting the Parameters of the Adjusters</title><p>A step-by-step method is employed for the parameter setting of the cascade loop; in the method, the main ring and the auxiliary ring are set in sequence, and then the process is repeated to approach the optimal setting. The basic steps thereof include: setting the auxiliary ring, cutting off the main ring, working out the setting parameters of the auxiliary adjuster according to the setting method of a single loop, taking the just set auxiliary ring as a link of the main ring, and working out the setting parameters of the main adjuster according to the setting method of a single loop.</p><p>The relevant parameters of the main adjuster obtained through the method described above are as follows:</p><p>The parameter of the auxiliary adjuster is:<img src="7-9400030\8cc175a9-ebed-4bd7-89b5-59524bb9e429.jpg" />;</p><p>The parameter of the main adjuster is:<img src="7-9400030\33ae9136-fb68-4158-a2f0-006b19e40e05.jpg" />,<img src="7-9400030\c4bfa300-b546-4dec-8c5e-bd5b6a28974a.jpg" />.</p><p>According to above parameters, we carry out the following simulation; wherein the ordinate axis represents pH, the horizontal axis represents time, and the unit is second (s):</p><p>1) Only under the action of PID, the step response curve of the pH control loop is in line with the <xref ref-type="fig" rid="fig3">Figure 3</xref>: From the <xref ref-type="fig" rid="fig3">Figure 3</xref>, we can know the overshoot <img src="7-9400030\e45d9b5b-9570-46a6-a975-29129ecc07dd.jpg" /> of the system is relatively large, while the adjusting time t<sub>s1</sub> is relatively long.</p><p>2) Only when the pH control loop is under the action of PID and is affected by inlet water pH, fluctuation of the flow rate of the neutralizing fluid, and other disturbing factors, the system response cure is as shown in the <xref ref-type="fig" rid="fig4">Figure 4</xref>: We can learn that disturbance resisting capacity of the system is rather poor; when disturbed, the overshoot basically remains unchanged; however, the system still cannot enter a steady state 300 s later.</p><p>3) The system step response curve under the action of the cascade control loop based on PID is as shown in the</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref>. We can know that: the overshoot of the cascade control system based on PID is<img src="7-9400030\698ea1f6-1b93-4a0c-98e0-77dafacc7152.jpg" />, and the adjusting time t<sub>s2</sub> is significantly shortened t<sub>s</sub><sub>2 </sub><sub>＜ </sub>t<sub>s1</sub>.</p><p>4) When the pH control system is under the action of the cascade control loop based on PID and is affected by inlet water pH, fluctuation of the flow rate of the neutralizing fluid, and other disturbing factors, the system response cure is as shown in the Fig.6: We can know that the anti-disturbing capacity of the system is dramatically improved, and especially has strong inhibiting function on the secondary disturbance in the flow control loop. Though it still takes a long time for the system to completely enter a steady state after being disturbed, the fluctuation is small and is basically within the acceptable range in an industrial site.</p></sec></sec><sec id="s6"><title>6.  Conclusions</title><p>From the above simulation figure, we can know that: the cascade control system based on PID can contribute to excellent control effect and facilitate engineering application. Compared with a simple PID control, not only the capacity adaptive to the change of the controlled parameters is strong, but also good control effect can still be achieved when the structure of the objective model is intensively disturbed. The step response curve of the cascade control system based on PID has the advantages of quick raising, short adjusting time, high adjusting precision, excellent steady state performance and small overshoot, and can competently fulfill the automatic control of pH. The runtime curve of the pH control system used in a pulp and paper wastewater treatment process is showed in <xref ref-type="fig" rid="fig7">Figure 7</xref>. We can know that it worked well.</p></sec><sec id="s7"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.615-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">U. Tezel, E. Guven, T. H. Erguder, and G. N. Demirer, “Sequential (anaerobic/aerobi) biological treatment of dalaman SEKA pulp and paper industry effluent,” Waste Management, Vol. 21, pp. 717-724, 2001.</mixed-citation></ref><ref id="scirp.615-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">X. F. Yang, “Wastewater treatment in pulp paper making sector,” Chemical Industry Press, Beijing, 2001.</mixed-citation></ref><ref id="scirp.615-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Biothane System International, Enclosure F: Aerobic Microbiology [M], 2006.</mixed-citation></ref><ref id="scirp.615-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Biothane System International, Enclosure F: Anaerobic Microbiology [M], 2006.</mixed-citation></ref><ref id="scirp.615-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">“An expert system for monitoring and diagnosis of anaerobic wastewater treatment plants,” Water Research, Vol. 36, pp. 2656-2666, 2002.</mixed-citation></ref><ref id="scirp.615-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">S. B. Wu, “Water pollution control and treatment technology in the paper industry,” Chemical Industry Press, Beijing, Vol. 5, 2001.</mixed-citation></ref><ref id="scirp.615-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">J. F. Bieteaua, “Modelling of anaerobic digestion in a fluidised bed with a view to control,” Biochemical Engineering Journal, Vol. 24, pp. 255-267, 2005.</mixed-citation></ref><ref id="scirp.615-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">G. Ulvsson and B.Newell, “The model building, diagnosis and control of the wastewater treatment system,” Chemical Industry Press, Beijing, 2004.</mixed-citation></ref><ref id="scirp.615-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">J. C. Wang and H. Y. Zhu, “Chemical process control [M],” Chemical Industry Press, Beijing, 1991.</mixed-citation></ref><ref id="scirp.615-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">S. Regunath and V. Kadirkamanathan, “Design of a pH control system using fuzzy non-uniform grid scheduling and evolutionary programming,” Applied Soft Computing, pp. 91-104, 2001.</mixed-citation></ref><ref id="scirp.615-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">W. W. Tan, F. Lu, A. P. Loh, and K. C. Tan, “Modeling and control of a pilot pH plant using genetic algorithm,” Engineering Applications of Artificial Intelligence, Vol. 18, pp. 485-494, 2005.</mixed-citation></ref><ref id="scirp.615-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">R. A. Wright and C. Kravaris, “On-line identification and nonlinear control of an industrial pH process,” Journal of Process Control, Vol. 11, pp. 361-374, 2005.</mixed-citation></ref><ref id="scirp.615-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">H. H. Lee and J. W. Yang, “A new method to control electrolytes pH by circulation system in electrokinetic soil remediation,” Journal of Hazardous Materials B77, pp. 227-240, 2000.</mixed-citation></ref></ref-list></back></article>