HUMAIN Arc Contact us

Case studies — Process engineering

Four engines, four reference answers, and two platform bugs found the hard way

Will the intake water scale, how hot does this flame burn, does the recycle train converge, and does the solver agree with the benchmark. Four questions, four separate engines, each answer landing on a published figure. The flowsheet is the one worth reading: it failed twice, both times in the platform rather than the chemistry, and both fixes are in the record.

Engines
PHREEQC 3.8.6, Cantera 3.2.0, DWSIM 9.0.5, OpenFOAM v2512
Studies
4
Files registered
67
Platform bugs found
2
The four studies as they ran in the app, from the question typed to the answer read back out of the registered files.

The questions

Four sentences, four fields

Here is our seawater intake analysis (Nordstrom 1979) at 25 C … Run a PHREEQC speciation with phreeqc.dat and tell me the ionic strength and the calcite and gypsum saturation indices. Will this water scale?

What is the adiabatic flame temperature of a stoichiometric methane and air mixture at 300 K and 1 atm, using GRI-Mech 3.0? Give me the main equilibrium products as well.

Cavett's Problem.dwxmz is a DWSIM flowsheet of the Cavett recycle problem, a four-flash separation train with recycles. Solve it and tell me whether it converged, the mass balance closure, and the main product stream flows and compositions.

cavity.tar.gz is an OpenFOAM case of a lid-driven square cavity … Run it on two cores to 5 seconds so it reaches steady state, and compare the horizontal velocity along the vertical centreline with Ghia, Ghia and Shin (1982). Show me the velocity field.

The combustion question names no file at all. The water analysis was typed into the prompt as a list of concentrations. Neither needed anything uploaded, which is the point: the question is in the language of the problem, not of the software.

What it found

The intake will scale, but not with the salt you would guess

Ionic strength 0.6704 mol/kgw against the PHREEQC reference of 0.670407. Calcite is supersaturated, gypsum is not.

+0.79calcite saturation index
+0.64aragonite
−0.80gypsum
−1.09anhydrite

The verdict the run gave: carbonate scale once the water is heated or concentrated, and no sulfate scale at intake conditions. Two positive indices and two negative ones is a more useful answer than a yes, because it says which chemistry to design against and which to stop worrying about.

2,225.5 K, against a textbook 2,225.52

Stoichiometric methane and air, GRI-Mech 3.0, 53 species and 325 reactions, with 47.23 MJ/kg of heat released.

Equilibrium products, mole fractions, wet basis
SpeciesMole fraction
N20.7086
H2O0.1835
CO20.0854
CO0.0090
O20.0046

Carbon monoxide at 0.9% and NO at 2,313 ppmvd are the numbers an emissions engineer reads, and they only exist because the run solved a full equilibrium rather than a complete-combustion approximation, which would have reported neither.

A recycle train that closes to 25 kilograms an hour

Cavett's problem, fifteen unit operations, twenty streams and three recycles, converged in 0.73 seconds.

Flowsheet solution, Peng-Robinson
QuantityResult
Recycle residualsabout 1×10−14 kg/s, against a 1×10−2 tolerance
Mass closure1,439,962 in, 1,439,937 out: 0.0017%, or 24.7 kg/h
Energy closure0.013%
Vapour, stream 8344,489 kg/h at 37.8 C, 56.2 bara, 38.8% CO2, 23.7% CH4
Liquid, stream 181,095,448 kg/h at 29.4 C, 1.91 bara

Residuals twelve orders of magnitude inside tolerance mean the recycles are genuinely converged rather than merely stopped, which is the failure mode that makes a flowsheet answer worthless.

The solver agrees with the benchmark to half a percent

Lid-driven cavity at Reynolds 100, centreline velocity against Ghia, Ghia and Shin (1982), Table 2.

0.0055maximum difference, of lid speed
0.0028RMS difference
−0.2066velocity minimum, against −0.21090
(0.62, 0.74)vortex centre, against (0.6172, 0.7344)
Horizontal velocity along the vertical centreline of the cavity, the computed curve passing through the published Ghia data points across the full height.
Centreline velocity against the published data, as the run registered it.
The velocity field in the square cavity, with the primary vortex above centre and slower recirculation in the two lower corners.
The velocity field at steady state.

The run says where the remaining gap comes from: grid resolution, 20×20 against the benchmark's 129×129, not the setup. Residuals around 2×10−9 and a mean Courant number of 0.22 are what make that claim checkable rather than an excuse.

What went wrong

The flowsheet failed twice before it ran, and both were ours

Neither failure was chemistry. Both were in the platform, and both are fixed.

Underscores in output names. The tool declared outputs with underscores, which the reservation name check refuses, so every attempt died before DWSIM started. The error pointed at the reservation, not at the tool manifest that caused it.

A space in the file name. Cavett's Problem.dwxmz produced an object key no compute provider will accept, failing with "must use a valid S3 URI". Keys now strip whitespace and quotes while the artifact keeps its own name.

Both fixes are on dev only until the next platform release, so the flowsheet tool still fails on staging and production today. That is stated here rather than quietly left out, because this page is otherwise a list of things that worked.

A benchmark that only ever runs on the machine it was written on has measured the machine, not the software.

The cavity case needed hand work too. The upstream tutorial download returned HTML rather than an archive, so the case was packed by hand; it carried macOS ._ files, which the run stripped before changing the end time from 0.5 to 5 seconds and repacking. Three analysis steps failed during post-processing and the transcript does not say why, which is recorded here as an open question rather than smoothed over.

What was registered

67 files across four studies

StudyEngineInputFiles
Seawater speciationPHREEQC 3.8.6, phreeqc.datanalysis typed in the prompt6
Combustion equilibriumCantera 3.2.0, GRI-Mech 3.0none5
FlowsheetDWSIM 9.0.5, Peng-RobinsonCavett's Problem.dwxmz11
Lid-driven cavityOpenFOAM v2512, icoFoam on 2 rankscavity.tar.gz, 400 cells45, including the solved case

Put your own question through it

Arc is in beta. Download the app, connect it to your workspace, and ask it something you would have to defend.