
Watch the finished Design App for WTP design a two-module 20,000 m³/day plant, check every unit against the selected standard, and switch to a different standard to see the checks change.
How to open the finished app: download DesignApp_WTP.html from the resources of this lecture and open it directly in Chrome or Edge (double-click the file). The Dashboard with all the unit processes opens at once. Keep it in a separate browser tab as your reference for the whole course. Claude does not run this file inside a Project, so the Dashboard will not appear in Claude. You will build your own version of the app step by step from Lecture 2.4 onwards. The three failed checks on the Dashboard are deliberate: they come from the original design dossier and are corrected in Section 8.
A short talk from the instructor on what a design review taught him about spreadsheets, traceability and automatic checks, and how AI changes who can build engineering software.
The design case for the whole course: a two-module 20,000 m³/day surface-water plant fed by a tropical reservoir, adapted from a real pre-feasibility study with names and locations removed.
How the course is organized, the kinds of lectures you will meet, the downloadable resources, and the rhythm of specify, build, verify that every section follows.
An honest account of what an AI coding assistant does well for engineering software, where it goes wrong with formulas, clauses and units, and why a specification and a test are the price of using it safely.
Set up a Claude project for the course with the Lakeside WTP design data and the criteria table as reference files, and project instructions that fix units, flows, formulas and the rule on clauses.
Note: the screenshots of the finished Dashboard in this lecture come from DesignApp_WTP.html (Lecture 1), opened in a browser. They show where the course is heading, not what appears in Claude after these steps. In Claude you will see written replies, calculations and code. Add only Lakeside_WTP_Design_Data.pdf, standards_library.json (attached to Lecture 1) and the project instructions to your Project. Do not add DesignApp_WTP.html or the Lakeside WTP .an project file (Lecture 3): both are opened in the app in your browser, not in Claude.
Why the whole Design App for WTP lives in one HTML file: no installation, offline use, easy sharing and deployment, and one source of truth; and the limits of that choice.
Build Calculator_S02.html with Claude: tank volume from flow and detention time, with unit labels, input validation and two built-in benchmarks. The test value of 150 m³ is the flocculation volume you will need per module in Section 6.
Simple version habits for a single-file app: dated file names, a short changelog, Claude's artifact versions, and recovery by comparing a broken file with the last checkpoint.
Every unit process design has the same five parts: inputs, criteria, a calculation sequence, checks and outputs. The spray aerator of Lakeside WTP shows each part, from the 45 m² area per module to the oxygen demand check.
Fill in Spec_Sheet_Template.docx for the Lakeside spray aerator: inputs, formulas, the four-column check table with one limit cell per standard system, the benchmark and the instructions to Claude; then hand the sheet to Claude and compare its code with the sheet.
The conversions every water treatment engineer uses, the difference between delivered and process flow, the textbook symbols vL, U0, u0, Wr and t10, and the unit and symbol errors AI assistants make most often, with the specification habits that prevent them.
What makes a benchmark independent, how to choose tolerances, and the rule that every unit is checked in three operating states: normal operation at 450 m³/h per module, one unit out of service, and one module out of service.
Specify the Lakeside clear water reservoir, two cells of 2,250 m³: required volume 4,002 m³ from 3,000 m³ balancing, 756 m³ fire water and two washes of 123 m³; worst case 4,074 m³ with 159 m³ washes. Then have Claude code it and catch a flow-basis error with the benchmark.
The three blocks of Design App for WTP: one project object for the inputs, one calculation engine that returns results and checks, and views that only display. Why this separation makes the app checkable and extendable.
Build the Design basis tab with Claude: delivered flow, self-use factor, raw water at the boundary, modules, demand check and design temperature, plus the Country select and the Standard picker in the header. Two real-project lessons: where the design boundary lies, and what two modules really give you when one is out.
Add the shared water properties function (Vogel viscosity, Tanaka density) and a standards library in JSON, where each criterion carries its value, unit, document, clause and review status, and each source carries its in-force or superseded status.
Organize the app the way a design office thinks: a left navigation that follows the real treatment train, a status dot for every unit, cards and tables with right-aligned numbers, dark mode, and a layout that still works on a phone.
Save a design as a native .an project file that records the project, the standards library version and the change log, and exchange inputs as JSON, Excel or CSV. Open any of them again, and get a warning when a project was checked with a different library.
Review the skeleton built in Part A against the checkpoint file, run a self-check of flows, water properties, standards and file handling, and take a five-question quiz before Part B.
Why colloids stay suspended, the four destabilization mechanisms, why alum consumes alkalinity, and the velocity gradient and mixing time criteria of TCVN 13606:2023 for rapid mixers.
Turn jar test results and the preliminary rules of TCVN 13606:2023 into design doses for alum, lime and polymer, then build the dosing card that computes daily consumption and the 30-day alum store for Lakeside WTP.
Build the rapid mix module with two options: the hydraulic vertical mixer used in Lakeside WTP (1.5 min, 25 mm/s upflow, 2.25 × 2.25 m per module, DN400 inlet at 0.99 m/s) and a mechanical mixer sized by P = G²μV, both checked against TCVN 13606:2023.
A plausible error: the mechanical mixer power computed with kinematic instead of dynamic viscosity, or with mPa·s read as Pa·s, giving a power off by a factor of about 1000. How the hand-calculation benchmark catches it and how to write prompts that prevent it.
The flood season reaches Lakeside WTP: turbidity rises from 35 to 120 NTU, polymer is switched on at 0.2 mg/L and the jar tests call for more alum. Recompute lime, consumption and storage, decide whether the 30-day alum store is still adequate, and see which units are not affected.
Why flocculation needs gentle, falling energy instead of one constant stir, how the velocity gradient G and the product Gt are used in design, and what the standards and the literature recommend.
A practical comparison of baffled and mechanical flocculators, the TCVN 13606:2023 rules for each, and why Lakeside WTP uses a baffled flocculator built in one block with the settlers.
Write the flocculation spec sheet, give it to Claude, and integrate a baffled multi-compartment module that computes volume, actual detention time, G and Gt, with a check against the selected standard and two benchmarks.
Claude sizes the flocculator from Q·t and reports 150 m³ and 20 minutes, while the compartments drawn hold 181.44 m³. We catch it with a benchmark and a balance check, and correct the code and the report.
Enter the water temperature range of your own region and see how viscosity lowers G for the same head loss. Compare Lakeside WTP at 25 °C and 10 °C with numbers from the engine, and decide what a baffled and a mechanical flocculator need to stay in range.
Stokes' law, the four types of settling, Hazen's ideal basin and why its removal does not depend on depth, and the corrections engineers apply for flocculent settling, turbulence and density currents.
Write the spec sheet for the horizontal-flow settler, the comparison option for Lakeside WTP: surface loading, detention time, length to width ratio, weir loading, Reynolds and Froude numbers, with a hand benchmark and the limits from TCVN 13606:2023 and Kawamura.
Give the reviewed spec sheet to Claude, integrate the horizontal settler into the engine and the Sedimentation tab, verify it against the hand benchmark, and use the app to find a tank shape that respects the length rule and the guide-wall width.
Add the inclined-plate settler that Lakeside WTP uses: required and provided plan area, velocity between plates, Reynolds number, projected area and equivalent settling velocity, with checks from clauses 8.11.2 and 8.11.6, and compare its footprint with the horizontal option.
Claude reports the plan loading of a lamella settler as its settling velocity, fails the check and proposes more than doubling the settler. We catch it with the benchmark, separate plan loading from equivalent settling velocity, and look at two related traps: the missing cosine and the definition of plate spacing.
Lakeside WTP must deliver 30,000 m³/day. Decide between overloading the two existing modules and building a third, check both in the app, and choose the settler type for a new module with the multi-criteria scoring used in the real study.
What happens inside a rapid gravity filter during one run: depth filtration, head loss build-up, ripening and breakthrough, and the rules on run length and washing that the filter module must check.
Fill in the filtration part of the spec sheet: required area 180 m², number of filters by N = 0.5√A, and the Table 21 limits that the app selects from the effective size of the sand.
Build the filter module of the app: 3.75 × 6.0 m filters, 1.3 m of 0.75 mm sand, the four operating states table and its checks, with one open item on the water depth above the sand.
Build the backwash block: air and water flows per filter, volume per wash and wash-water share, checked against clause 8.13.23. The dossier's intensities fail, and we work out by hand and in the app what changing them does to the wash volume and the reservoir.
With a vague prompt, Claude checks the filters only in the states it assumes, and the module-out case passes at 5.0 m/h. The benchmark catches it; the corrected engine shows 10.0 m/h against 9.5 m/h, and the engineer turns the failure into an operating restriction.
In the flood season, filter runs shorten from 24 h to 12 h and, in the worst week, to 8 h. Use the app to find when the wash share and run length fail, with the dossier wash volume and with the corrected one, and decide what the plant should do.
Why disinfection is judged by concentration times effective contact time, how the baffling factor turns a tank volume into t10, and what the CT of Lakeside WTP is worth in log inactivation.
Set the post-filter chlorine dose, read the daily quantity of 21.6 kg/d from the app, size for the preliminary dose of clause 8.23.3, and compare gas chlorine, commercial hypochlorite and on-site electrolysis at this scale.
Build the module that computes contact volume, t10 and CT, fire water by the selected standard, and the clear water reservoir: 3,000 m³ regulation, 756 m³ fire water and 2 × 123 m³ wash reserve, 4,002 m³ required against 2 × 2,250 m³ provided.
Asked for a contact time check, Claude divides the reservoir volume by the flow and reports 300 minutes. The baffling factor brings it to 90; the lowest operating level and the peak-hour flow bring it to about 23 minutes.
The town's demand pattern peaks in the evening and falls at night. Check the high-lift pumps at peak-hour factors of 1.35 and 1.40, reject a 4 × 280 m³/h configuration, and test the 15 % regulation volume against the standard's formula.
A whole-plant mass balance for Lakeside WTP: how much dry solids the raw water and the chemicals produce, which stream carries them out, and how two independent formulas agree within two percent.
Connect the filter wash to the residuals train: daily wash volume, the wash water share check, the worst-case wash carried into storage, and the sizing of the recovery tank and recycle pumps on the spec sheet.
Build the residuals module: dry solids by the Cornwell equation, two gravity thickeners of 10 m diameter, two presses of 10 m³/h and the cake to haul, and learn why the thickener loading check honestly shows no criterion under the Vietnamese standard.
Run the complete Lakeside WTP treatment train from aeration to cake, reconcile every result with the answer table and the 18 benchmarks, and take the six-question quiz that closes Part B.
This course contains the use of artificial intelligence.
Most AI courses teach you to build generic apps. This course teaches you to build an engineering tool that a water treatment designer can actually use.
You start by watching the finished app design a 20,000 m³/day plant in three minutes. Then, section by section, you build your own Design App for WTP: a design basis panel, a standards library, the unit processes, a hydraulic profile, a plant layout, engineering drawings, an automated design report, a cost and financial analysis, and an AI co-designer. Every module is checked against independent hand calculations, because in engineering, a result you cannot verify is a result you cannot sign.
The course follows one design case from start to finish: Lakeside WTP, a two-module surface-water plant fed by a tropical reservoir with seasonal turbidity, iron and manganese. The case is adapted from a real pre-feasibility study I led; names and locations have been removed and the data adjusted for teaching. Every number you calculate feeds the next unit, and you meet the same design traps that came up in the real project review: a filter bank that fails when one module is out, pumps that cannot meet the peak hour, a report and drawings that disagree, a regulation quoted after it was replaced.
What makes this course different:
One real design case, with an answer table and 18 hand-calculation benchmarks.
Checks under normal, one-unit-out and one-module-out operation, the way reviewers work.
A standards library you control: choose the country, see the clause behind every limit, import new criteria from PDF, Word or web pages with engineer approval.
SI and US customary units with one SI engine underneath.
An AI co-designer that users connect with their own API key: chat with the design, upload Word, PDF, DXF, shapefile, KML and image files, and approve or reject proposed changes.
Cost estimate, unit cost of water, NPV, IRR and sensitivity analysis.
Lectures titled When the AI Gets It Wrong that show real mistakes and the habits that catch them.
Deployment on Netlify, so your app runs online from a link.
By the end, you will have your own design app running online, and a method you can reuse to turn any design procedure into a reliable digital tool.
AI disclosure: This course teaches the use of Claude as a coding assistant. AI tools were used to help draft parts of the code and teaching materials. All engineering content, calculations and design decisions were developed and checked by the instructor. Lecture narration uses an AI text-to-speech voice (Kokoro model, Apache 2.0 licence) reading the instructor's own scripts; selected lectures are recorded by the instructor in person.
This course is not affiliated with or endorsed by Anthropic.