Hyphal Multiphysics Simulation Architecture

Bioreactor physics for 3-D mycelium moulds.

Simulate 3-D hyphal growth, O2/CO2 transport, moisture evaporation, and metabolic core heating inside any STL cavity. HMSA places breather pins and outputs CNC coordinates before you cut tooling.

6.7% anoxic 26.2 C peak 46.5% min H2O 0.760 MPa
10.0 d
Aerated hyphae Hypoxic / heat-stressed 75% blind pins R 16 mm keep-out
SSF v2 · rack_bumper.stl, 110 x 110 x 54 mm, seed 101 · Drag to orbit

Why thick moulds fail in stacked racks

In trays thicker than 30 mm, restricted airflow between stacked shelves traps Day 2 to 4 metabolic heat while oxygen runs out and CO2 builds in the core. Below is a held-out SSF v2 comparison (single unseen seed 101) for the 110 x 110 x 54 mm server-rack corner bumper packed with bulk crumble at 85% RH, comparing a naive unvented recipe (27.5 C room, 64.0% moisture, C:N 62:1) against the joint Pareto-optimised recipe and 3 blind pins (20.9 C room, 60.7% moisture, C:N 50.8:1).

Metric Naive unvented Optimised + 3 pins Change
Process setpoint (room / H2O / C:N) 27.5 C / 64.0% / 62:1 20.9 C / 60.7% / 50.8:1 -6.6 C / -3.3 pp
Engineering pass (7 gates, seed 101) Fail (5/7) Pass (7/7) +2 gates
Anoxic core (O2 < 5% or CO2 > 12%) 16.9% 6.7% -10.2 pp
Peak core temperature (rise above room) 32.9 C (+5.4 C, Day 3.25) 26.2 C (+5.3 C, Day 3.0) -6.7 C (-0.1 C rise)
Compressive modulus Ec 0.540 MPa 0.760 MPa 1.41x
Strength at 10% strain (sigma10) 60.4 kPa 92.3 kPa 1.53x
Desiccated (< 45% H2O) / anaerobic core 0.59% / 0.0% 0.0% / 0.0% -0.59 pp
Colonisation / Trichoderma share 100.0% / 0.59% 100.0% / 0.46% -0.13 pp
Net load-bearing area (4.0 mm voxel grid) 100.0% 99.5% -0.5 pp
Kiln drying shrinkage 8.22% vol 8.11% vol (2.78% linear) -0.11 pp
Max 6-way drift / penetrations 5.40e-15 / 0 5.42e-15 / 0 < 1e-10

All seven pass gates must hold together: anoxic core < 15%, peak temperature < 31.5 C, desiccated volume < 15%, Trichoderma < 10%, anaerobic souring < 10%, colonisation >= 45%, and Ec >= 0.35 MPa. In this joint redesign, the 3 blind pins cut anoxic core volume from 16.9% to 6.7%, while lowering the incubator room setpoint (27.5 C to 20.9 C) drives most of the 6.7 C peak temperature reduction (blind vents remove 1.1% of total heat directly). Dry composite thermal conductivity is 0.0407 W/(m*K) (wet bed 0.115 W/(m*K) during growth).

Metabolic heat-removal budget (Day 0 to 10)

Mould walls (Uwall) Evaporation (hfg) Top air (htop) Blind vents
Naive unvented (27.5 C)
44.3% · 44.0% · 11.7% · 0.0%
Optimised + 3 pins (20.9 C)
46.3% · 38.4% · 14.1% · 1.1%

Process setpoints (Pareto front: 9 designs)

Packing
Pre-colonised bulk crumble, 140 kg/m3 fill, 10% spawn
Rack airflow
Stacked rack (htop = 4.2, hwall = 2.5 W/m2K, 0.30% CO2)
Room and moisture
20.9 C ambient (vs 27.5 C naive), 85% RH, 60.7% moisture (vs 64.0%), C:N 50.8:1 (vs 62:1)
Cavity and pitch
368.96 cm3 vented (370.69 cm3 raw), 4.0 mm voxels
CNC oversize scale
1.0286x (+2.86% for 2.78% linear kiln shrinkage)
Solve runtime
38.3 s on unseen validation seed 101

Breather pins and keep-out (CAD origin, mm)

Pin 1
X -25.0, Y -45.0 | 6.0 mm dia | Z 52.0 to 13.0 (39.0 mm blind)
Pin 2
X -49.0, Y -5.0 | 6.0 mm dia | Z 52.0 to 13.0 (39.0 mm blind)
Pin 3
X -1.0, Y -21.0 | 6.0 mm dia | Z 36.0 to 9.0 (27.0 mm blind)
Keep-out 1
X 0.0, Y 0.0 | R 16.0 mm clear (all Z)
Cosmetic face
Blind 75% pins stop 9.0 to 13.0 mm above Z = 0.0 mm

Capabilities

STL CAD intake

Loads binary or ASCII STL parts with no external CAD libraries. It strips zero-area triangles, converts units to millimetres, and preserves original CAD origins.

3-ray parity voxeliser · Voxel round-trip IoU 1.0000 · 4/4 malformed STLs rejected

3-D SSF bioreactor physics

Couples a 3-D continuum volumetric biomass bed (reproducing Day 2 to 4 bulk-crumble heat spikes) and a coupled mesoscale hyphal skeleton with conductive plastic mould walls (Uwall), stagnant blind-bore air columns with CO2 pooling, evaporative cooling (2.44 MJ/kg) with metabolic water and vent-rim desiccation, dynamic wet-bed kth(w), Millington-Quirk pore clogging with surface-skin sealing, and Trichoderma plus anaerobic wet-spot risk.

6-way conserved (< 1e-10) · Implicit Numba PDE kernels · Pure-NumPy parity (< 1e-12)

Pareto inverse design

Searches vent locations, spawn points (in point-spawn mode), room temperature, moisture, and C:N ratio directly inside any cavity mask using Latin-Hypercube sampling and NSGA-II sorting, balancing hypoxia, vent-rim desiccation, anaerobic souring, and drilled-vent net-area structural stiffness loss.

balanced, max_strength, insulation · Net-area Ec penalty keeps thin shells at 0 pins

Tooling and rack constraints

Supports fixed CNC pin diameters (2.0 to 24.0 mm), blind top-entry bores (35% to 100%) vs through-vents, circular no-pin keep-outs, spawn rate (1% to 35%), bulk crumble compaction (40 to 450 kg/m3), room RH (30% to 99%), and stacked-rack airflow.

Stacked rack: htop 4.2, hwall 2.5 W/m2K, 0.30% CO2 · Isolated: 12.0, 8.0 W/m2K, 0.04% CO2

Wet-lab CSV calibration

Reads messy lab spreadsheets with BOMs, decimal commas, header aliases, and replicates. Kinetics fit on early days, score blind on held-out days, and transfer bounded growth-rate ratios into SSF v2.

Zero test leakage · Stalled or contaminated batches are rejected automatically

Private local studio and 1:1 cutaways

Runs offline on your local workstation (or HMSA's local machine under NDA during a validation pilot) with zero third-party cloud STL upload. Includes interactive 3-D WebGL cutaway inspection across 9 live fields (photoreal, O2, CO2, temperature, colonisation, pore O2, moisture/desiccation, continuum biomass, and anaerobic souring), a live 3-D hover probe, dual heat-removal budget bars, 1:1 triangle-BVH raytracing, and 3-tray trial logging.

9 volumetric fields + 3-D probe · Exact 1:1 triangle BVH · Zero cloud STL upload · Offline workstation ready

Verification and limits

Verified in software

Six-way conservation
Carbon, nitrogen, water (H2O), O2, CO2, and thermal enthalpy balance below 1e-10 relative drift on every run (5.40e-15 baseline and 5.42e-15 optimised on rack_bumper).
Zero geometry penetrations
Live hyphal nodes and continuous edges never cross solid walls, vent bores, or hemp-hurd grains, checked by 3-D voxel DDA and analytical ray-sphere tests.
Blind temporal calibration
Train-only bootstrap calibration hits 100% held-out 95% interval coverage across three literature-reconstructed species curves on HMSA's isothermal growth models (R2 = 0.9817, 0.9673, 0.9626). Corrupting held-out test data leaves posteriors bit-identical; coupled SSF v2 thermal and moisture PDEs are being validated physically via partner 3-tray trials.
15-pillar conservation suite
Every release passes 15 automated conservation pillars including SSF v2 (< 1e-10 relative drift across C, N, H2O, O2, CO2, and enthalpy), deterministic seed reproduction, and exact voxel round-trip STL checks (IoU 1.0000).

Needs lab calibration

Strain kinetics
Without a custom CSV, runs use published Pleurotus and hemp-hurd profiles (Elsacker 2019/2020; Appels 2019; Jones 2020). Attach a 4+ day lab CSV to fit your own strain.
Absolute crush modulus
Ec, sigma10, thermal conductivity, and shrinkage use Gibson-Ashby cellular foam scaling. Anchor absolute MPa to your press with one measured baseline Instron value.
3-tray physical check
Each dossier specifies one unvented control and two vented test moulds. Logged core peak temperature, dry density, and Ec are checked against +/- 2.5 C, +/- 20%, and +/- 25% tolerances.
Outside solver scope
Bacterial biofilms, mites, full-room HVAC plenum CFD, and metre-scale kiln cracking are not simulated. In bulk-crumble SSF v2 runs, metabolic heat and O2 demand are carried by the 3-D continuum bed field; the rendered 3-D network shows a coupled mesoscale hyphal skeleton (~2.8 mm step), not single micron filaments.

Technical FAQ

Why do mycelium packaging moulds thicker than 30 mm fail in stacked racks?

Restricted airflow between stacked shelves traps Day 2 to 4 metabolic heat while oxygen drops and dense CO2 pools in the core. HMSA solves coupled 3-D O2, CO2, moisture, and thermal transport to place blind breather pins and set incubator climate targets before cutting tooling.

Do proprietary client STL files leave our facility or get uploaded to the cloud?

No third-party cloud uploads are used. HMSA Packaging Studio runs offline on local workstation hardware, and during founding validation pilots CAD files are handled locally under NDA.

How does HMSA calibrate to a proprietary fungal strain or substrate mix?

Attach a 4+ day wet-lab growth CSV (radial extension or dry biomass). HMSA fits kinetics on early days, scores blind on held-out days with zero test leakage, transfers bounded rate ratios into SSF v2, and anchors Gibson-Ashby crush modulus to one measured baseline Instron value.

What files are delivered for CNC mould makers and shop-floor trials?

Every pilot delivers shop_floor_recipe.csv with exact CNC pin XY and blind Z bore depths in original CAD millimetres, kiln-shrinkage oversize scale, per-mould and 1,000-mould BOM, a standalone pilot_report.html dossier with a 3-tray lab protocol, a voxel-derived optimised_mould_vented.stl reference mesh, and 1:1 cutaway comparison renders.

Validation partnership

HMSA is recruiting founding wet-lab and packaging partners to calibrate the 3-D solver against physical mould runs ahead of commercial launch. You bring one thick problem geometry and a 3-tray test batch; we run the multiphysics redesign and return the full tooling package and strain-calibrated profile.

What your lab provides

One thick problem STL
A production or prototype mould cavity thicker than 30 mm that suffers from slow colonisation, core overheating, or soft centres on stacked racks.
Optional 4+ day strain growth CSV
Radial extension or dry-mass measurements across at least four days so the solver calibrates to your organism instead of published defaults.
One controlled 3-tray trial
One unvented control mould and two vented replicates, recording core peak temperature, kiln-dried bulk density, and baseline crush modulus (Ec).

What HMSA delivers

Pareto breather-pin redesign
Coupled 3-D O2, CO2, moisture, and thermal solve respecting your CNC drill diameters, blind bore depth limits, cosmetic faces, and no-pin keep-out zones.
Shop-floor tooling package
Exact CNC pin coordinates in your original CAD origin, kiln-shrinkage cavity oversize factor, batch BOM, printable engineering dossier, and 1:1 cutaway render.
Strain-calibrated profile and founding terms
Kinetics and Gibson-Ashby modulus anchored to your substrate and press, NDA local-only CAD handling with zero cloud upload, and founding commercial access at launch.

Deliverables included in every pilot

shop_floor_recipe.csv
CNC pin XY and blind Z bore depths in original CAD coordinates (mm), keep-outs, climate, RH, and compaction setpoints, 1.0286x oversize scale, SSF v2 moisture/heat diagnostics, and per-mould / 1,000-mould BOM (46.51 kg hurd, 5.15 kg bran, 79.92 L water, 13.16 kg spawn).
pilot_report.html
Standalone printable engineering dossier with provenance notes, unseen-seed KPIs, SSF v2 moisture, desiccation, anaerobic souring, and heat-budget diagnostics, inline SVG O2 and temperature slices, embedded 1:1 cutaway render, BOM, and 3-tray lab protocol.
optimised_mould_vented.stl
Watertight voxel-derived binary STL reference mesh shifted back to the original CAD origin in millimetres. Drill production moulds from the exact coordinates in shop_floor_recipe.csv.
studio_cutaway_comparison.png
1:1 triangle-BVH raytraced Before vs After cutaway panel, delivered alongside machine-readable JSON telemetry (pilot_report.json).
Built by

Scott Benson, independent software developer (formerly a software developer at environmental sustainability consultancy Anthesis). HMSA is an independent project; founding validation pilots are handled directly under NDA with zero third-party cloud uploads.

Propose a validation mould using the technical brief below. Submissions are stored directly in HMSA's private partner database; an NDA is executed before any STL transfer.

Validation partnership brief All fields marked * required
Calibration data ready
NDA executed before any STL transfer. Zero third-party cloud upload.
Need a plain-text brief template to share internally?
Plain-text validation brief
Subject: HMSA Validation Partnership

Organisation & contact:   [Lab or company name, role]
Target mould geometry:    [Part type, approx. L x W x H in mm, core thickness]
Strain & substrate:       [Species / strain, substrate mix, bulk crumble or spawn ports]
Incubation setup:         [Stacked rack or isolated tray, room temp, RH %, days to harvest]
Calibration data ready:   [STL ready? 4+ day growth CSV? Thermocouple / Instron access?]