<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jay Choi</title>
    <description>The latest articles on DEV Community by Jay Choi (@kevinchoi133490).</description>
    <link>https://dev.to/kevinchoi133490</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260796%2F0ecf1430-98e2-4c1d-be4c-abe291fc05a9.jpg</url>
      <title>DEV Community: Jay Choi</title>
      <link>https://dev.to/kevinchoi133490</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevinchoi133490"/>
    <language>en</language>
    <item>
      <title>Peak flow belongs to the catchment, not the headcount</title>
      <dc:creator>Jay Choi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:11:05 +0000</pubDate>
      <link>https://dev.to/kevinchoi133490/peak-flow-belongs-to-the-catchment-not-the-headcount-3hb</link>
      <guid>https://dev.to/kevinchoi133490/peak-flow-belongs-to-the-catchment-not-the-headcount-3hb</guid>
      <description>&lt;p&gt;Two plants of the same nominal capacity can receive completely different inflow hydrographs, because the reason sits in the ground rather than in the process design. A short collector serving a few thousand connections hands the headworks a sharp morning peak; a long interceptor serving a whole city flattens the same water use into a curve that barely moves. One peaking factor applied to both will overbuild one plant and underbuild the other.&lt;/p&gt;

&lt;h2&gt;
  
  
  The peak factor belongs to the catchment, not the headcount
&lt;/h2&gt;

&lt;p&gt;The ratio between peak and average daily flow is often treated as a property of population. In practice it is a property of the collection system: travel time, wetted storage, the diversity of water uses connected, and how much stormwater and groundwater leak in.&lt;/p&gt;

&lt;p&gt;In a small catchment, travel time from the furthest connection may be well under an hour. Every fixture that runs in the morning arrives at the plant almost together, and nothing in the network has time to damp it. Add a second, larger catchment upstream and the picture changes: sub-catchments several kilometres apart release their peaks at slightly different times, and the flows superpose into a longer, lower crest. Planning literature reflects this — small systems are typically drawn with peak factors around 2, very large ones near 1.2 to 1.3 — but treat those numbers as an illustration of the mechanism, not a design value. The only defensible factor for a specific plant comes from its own flow record or a calibrated network model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the damping actually comes from
&lt;/h2&gt;

&lt;p&gt;Dry-weather storage in gravity sewers is larger than most operators expect. A 1.5 m sewer flowing at 0.4 of depth holds roughly 0.66 m² of wetted area per metre of length; over 10 km that is about 6,600 m³ sitting in the pipe. For a plant treating 10,000 m³/d, that is close to 16 hours of average inflow held inside the network before it ever reaches the headworks.&lt;/p&gt;

&lt;p&gt;That volume does not deliver free equalization, for three reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not a tank.&lt;/strong&gt; Water only enters and leaves that storage as the hydraulic grade changes. When a downstream pump station holds a steady level, part of that volume never participates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It fills in the wrong direction.&lt;/strong&gt; The pipe drains toward the plant, so the water absorbed at the front of the peak is released again during the recession. The result is a longer peak, not a smaller one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low velocities deposit solids.&lt;/strong&gt; The same conditions that let flow sit in the pipe also let grit and organic solids settle, and the next high-flow event scours them into the plant as a slug.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why rain hides the peak you are trying to control
&lt;/h2&gt;

&lt;p&gt;Rain-derived inflow and infiltration raises total flow while diluting it. The hydrograph shows a higher, flatter curve, and the sanitary diurnal peak that the aeration control loop was tuned for disappears underneath it.&lt;/p&gt;

&lt;p&gt;The trap is that load and flow move in opposite directions. Flow is up; the organic load arriving at the aeration basin is often down. An operator holding dissolved oxygen at the setpoint by tracking flow will over-aerate, and over-aeration is a common route to pin floc and poor settling days later — the failure appears after the rain, when nobody connects it to the storm.&lt;/p&gt;

&lt;p&gt;Two consequences follow. First, peak factors calculated over wet days are meaningless for process work; separate the dry-weather hydrograph before computing anything. Second, groundwater infiltration raises the daily minimum, which compresses the peak-to-average ratio and makes a leaking catchment look calmer than it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure the shape before changing setpoints
&lt;/h2&gt;

&lt;p&gt;Before adjusting return sludge or aeration on the strength of a flow reading, establish what shape the inflow actually has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hourly influent flow, continuous, with the meter's calibration date known.&lt;/li&gt;
&lt;li&gt;Rainfall at a representative gauge, and trunk sewer level where one exists.&lt;/li&gt;
&lt;li&gt;Conductivity and pH at the headworks — the fastest way to tell an industrial batch discharge from domestic flow.&lt;/li&gt;
&lt;li&gt;Composite load (COD or BOD), not just flow, so load and volume can be compared on the same day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then look at the lag. Domestic water use peaks in the morning and the plant peak follows by the network travel time — an hour in a compact town, several hours in a long interceptor. If that lag shifts between seasons, suspect infiltration or a pump station changing its operating level before suspecting water use.&lt;/p&gt;

&lt;p&gt;At high flow, the clarifier is the first unit to show stress: rising overflow rate lifts the sludge blanket and solids carry over. Increasing return sludge rate keeps the blanket lower, but it also adds hydraulic load to the clarifier and shortens detention time, so it is a partial remedy with a limit. Equalization or flow splitting does more, if the plant has either.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the storage argument does not cover
&lt;/h2&gt;

&lt;p&gt;A long collection system is not protection against everything. A single large batch discharge close to the headworks reaches the plant in minutes regardless of how much pipe exists downstream of it. Pumped catchments break the damping entirely: a station starting and stopping converts smooth inflow into step changes, and the receiving plant sees a square wave instead of a curve. Real-time flow control in modern networks also shifts the balance — where valves, storage tunnels, or model-based control are installed, the passive storage argument is no longer the dominant effect.&lt;/p&gt;

&lt;p&gt;The workable position for an operator is narrow and unglamorous: the collection system is a process unit, its behaviour is measurable, and its hydrograph should be recorded with the same care as the aeration basin's dissolved oxygen. The catchment sets the load pattern every downstream unit must absorb, and it is the cheapest place to look when a correctly sized plant keeps behaving as if it is not.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Scope: applies generally. The principles here are hydraulic and process-based; design standards and discharge limits differ by jurisdiction, and no country-specific limits are cited.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>water</category>
      <category>wastewater</category>
      <category>engineering</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>Why a laccase stage fails at pH 7.6 — and what the inhibition actually is</title>
      <dc:creator>Jay Choi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:41:14 +0000</pubDate>
      <link>https://dev.to/kevinchoi133490/why-a-laccase-stage-fails-at-ph-76-and-what-the-inhibition-actually-is-4n2b</link>
      <guid>https://dev.to/kevinchoi133490/why-a-laccase-stage-fails-at-ph-76-and-what-the-inhibition-actually-is-4n2b</guid>
      <description>&lt;p&gt;A laccase dose that works in a pH 4.5 buffer can do almost nothing in the same water at pH 7.6. The instinct at the plant is to add enzyme or change the carrier; hydroxide has raised the energy cost of moving an electron inside the protein, and extra protein does not close an energy gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottleneck sits between two copper sites
&lt;/h2&gt;

&lt;p&gt;Laccase (EC 1.10.3.2) is a multicopper oxidase. A type-1 (T1) copper strips one electron from a phenol or aniline, and a trinuclear cluster - one type-2 plus two type-3 coppers - spends four electrons reducing O2 to water. Electrons reach that cluster from T1 across roughly 13 angstrom through a conserved Cys-His pathway; Cys453 sits between His452 and His454, which coordinate the two T3 coppers. Turnover and internal electron transfer are separate steps, and pH acts on the second: fungal laccases, including the high-potential enzyme from Trametes versicolor, show a bell-shaped pH profile whose alkaline side is attributed to hydroxide binding at the cluster. That is a different failure from mass transfer or a fouled carrier, and it is why an upstream pH adjustment can recover more than a dose increase.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chloride gets blamed more often than the numbers justify
&lt;/h2&gt;

&lt;p&gt;Halides inhibit laccase too: fluoride most strongly, then chloride, then bromide, an order linked to anion access at the T2/T3 site. Kinetic work on the T. versicolor enzyme found that chloride and hydroxide share a mechanism, and that chloride inhibition is strongest at low pH - a Ki of 0.35 mM at pH 3, rising to 23.7 mM at pH 6.&lt;br&gt;
Units matter more than the mg/L figure. 23.7 mM chloride is about 840 mg/L; a municipal effluent at 100 to 300 mg/L is 2.8 to 8.5 mM, well under that constant. Unless the stream is saline (estuarine outfall, ion-exchange regenerate, some industrial discharges), hydroxide sets the alkaline side of the profile. Divide mg/L by 35.45 before blaming salt; the answer changes the troubleshooting order.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the preprint actually computed
&lt;/h2&gt;

&lt;p&gt;A preprint posted on 17 November 2026 takes this inhibition apart at the electron-transfer junction (arXiv:2611.22813v1, cs.ET, single author, not peer reviewed). It builds GFN2-xTB cluster models of T. versicolor laccase from PDB 1GYC, reduces the His454-T3A-T3B-His452 junction to a four-site Hubbard model, and runs the charge-transfer dynamics on the Euro-Q-Exa superconducting processor (IQM, 8 qubits, 726 jobs).&lt;br&gt;
The charge-transfer frequency resolves to 3-5 meV over nine days. In the crystal-geometry model, hydroxide raises the charge-transfer energy by 92.0 +/- 2.2 meV, against 87 meV from exact diagonalization, and exceeds fluoride by 10.1 +/- 1.8 meV - a junction energy, not an inhibition constant, so the kinetic ranking in which fluoride inhibits hardest still stands.&lt;br&gt;
A screen of charged probes in three dielectric models pointed to Y116E, a glutamate on the far side of His454 from the T2 ligand. In the probe model the hardware resolves a reduction of the hydroxide penalty by 74 +/- 7 meV and of the halide penalty by 64 +/- 5 meV, acting on the site-energy gap rather than the coupling. A real Glu116, five conformers with PROPKA protonation states and the coupled Asp456, brings the realistic reduction down to 10-30 meV, same sign in 28 of 28 combinations.&lt;/p&gt;

&lt;h2&gt;
  
  
  How far that is from a plant decision
&lt;/h2&gt;

&lt;p&gt;The author's own Marcus estimate is the honest part: 10-30 meV is a rate factor of roughly 1.1-1.5, against the 1.9-2.9-fold slow-down hydroxide produces in the same model, and weaker anion binding may matter more in practice than the gap. The probe overestimates the real mutant by two to four times, and nothing has been validated experimentally. The stated limits include 124-141 atom cluster models with implicit solvation, parameters taken entirely from GFN2-xTB, and one orbital per site, which leaves the T1-to-cluster step outside the model.&lt;br&gt;
What an operator gets is a prediction to test, not a product:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Before changing dose, measure the pH profile with ABTS or a phenolic substrate. If activity collapses above pH 7, hydroxide binding beats mixing and mass transfer as a hypothesis.&lt;/li&gt;
&lt;li&gt;Report chloride in millimolar, against the inhibition constant at your operating pH.&lt;/li&gt;
&lt;li&gt;Treat second-sphere enzyme engineering as a lab program, not a procurement item.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The quantum part is worth reading for its ceiling: on a Fermi-Hubbard benchmark the same hardware could not resolve electron correlation, needing contrast loss below 0.13 per cent per CZ gate against a measured 0.34-0.54 per cent. The anion fingerprint is reproducible; the correlated physics that would justify a quantum processor is not reachable yet.&lt;br&gt;
Scope note: this is process chemistry, not regulation; discharge limits differ by jurisdiction, and every number above is model output, not plant performance.&lt;br&gt;
Preprint: Malickova, L., "Countering Anion Inhibition of Laccase Electron Transfer." arXiv:2611.22813v1, 17 November 2026, &lt;a href="https://arxiv.org/abs/2611.22813" rel="noopener noreferrer"&gt;https://arxiv.org/abs/2611.22813&lt;/a&gt; - not peer reviewed.&lt;/p&gt;

</description>
      <category>water</category>
      <category>chemistry</category>
      <category>quantumcomputing</category>
      <category>science</category>
    </item>
    <item>
      <title>Contact time is not tank volume: a hydraulic sanity check for chlorine contact basins</title>
      <dc:creator>Jay Choi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:22:25 +0000</pubDate>
      <link>https://dev.to/kevinchoi133490/contact-time-is-not-tank-volume-a-hydraulic-sanity-check-for-chlorine-contact-basins-3pl8</link>
      <guid>https://dev.to/kevinchoi133490/contact-time-is-not-tank-volume-a-hydraulic-sanity-check-for-chlorine-contact-basins-3pl8</guid>
      <description>&lt;p&gt;Most chlorine contact basins are sized with a simple number: volume divided by flow. It is easy to defend in a design review, and it is also the reason many basins fail a tracer test while looking perfectly adequate on paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number that matters is residence time distribution
&lt;/h2&gt;

&lt;p&gt;Nominal contact time assumes every parcel of water spends the same time in the basin. Real basins do not work that way. Short-circuiting, dead zones behind baffles, and density-driven currents mean a fraction of the flow exits far earlier than the average.&lt;/p&gt;

&lt;p&gt;A tracer test exposes this directly: inject a pulse, measure the outlet curve, and compare the time to first arrival and the time to peak against the nominal value. When the 10th-percentile residence time is a fraction of the nominal number, the basin is not providing the disinfection contact you are crediting it for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Geometry mistakes that survive construction drawings
&lt;/h2&gt;

&lt;p&gt;Three patterns show up repeatedly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inlet momentum is ignored.&lt;/strong&gt; A high-velocity inlet jet crosses the basin and heads straight for the outlet. The fix is not a bigger tank but an inlet dissipation arrangement — a baffle wall, a distribution channel, or a submerged diffuser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Baffles create parallel lanes instead of a serpentine path.&lt;/strong&gt; If the gap at the end of a baffle is small relative to the lane width, flow prefers the lane nearest the outlet and the remaining volume becomes storage, not contact volume.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outlet weirs pull from a thin surface layer.&lt;/strong&gt; A long weir at one end draws water that never mixed with the bulk volume.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A cheap hydraulic check before spending on CFD
&lt;/h2&gt;

&lt;p&gt;Before commissioning a model, do three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compute the &lt;strong&gt;cross-sectional velocity&lt;/strong&gt; in each lane. Values that differ by more than roughly a factor of two between lanes are a red flag.&lt;/li&gt;
&lt;li&gt;Check the &lt;strong&gt;baffle gap to lane width ratio&lt;/strong&gt;. Narrow gaps create jets; very wide gaps create recirculation cells that trap volume.&lt;/li&gt;
&lt;li&gt;Look at the &lt;strong&gt;inlet Froude number&lt;/strong&gt; for the design flow and the peak flow. The same basin behaves differently at 60% and 100% of design flow, which is exactly when disinfection matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are screening checks, not proof. They tell you whether a tracer test is likely to pass, and where to instrument first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with the tracer result
&lt;/h2&gt;

&lt;p&gt;If the curve shows early arrival, the usual response is to raise the chlorine dose. That works until it does not: higher residual means higher chlorination by-products and a larger dechlorination load. The cheaper intervention is usually hydraulic — add or reposition baffling, slow the inlet, redistribute the outlet — and it does not increase operating cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;Contact time is a property of the flow field, not of the concrete volume. Treating it as a volume calculation is how basins end up oversized and still underperforming. A tracer test plus three geometry checks costs far less than the chemical bill from a basin that short-circuits.&lt;/p&gt;

</description>
      <category>water</category>
      <category>engineering</category>
      <category>environment</category>
    </item>
  </channel>
</rss>
