# Sump baffle & template generator

Design glass or acrylic reef sump baffles with bubble traps, filter-sock plates, overflow combs, DXF/SVG cut sheets, and power-off flood checks.

- Page: https://paramlet.com/tools/sump-baffle/
- Tool id: `sump-baffle` · version 0.1.0 · Paramlet Module Spec 1.1 · API version 1 · docs: https://paramlet.com/agents/
- Category: aquarium / sump-templates · status: beta
- Parameter schema (JSON Schema): https://paramlet.com/tools/sump-baffle/schema.json · presets: https://paramlet.com/tools/sump-baffle/presets.json
- Core parameters (`exportFormat`, `exportTol`, `units`) are in schema.json under `x-coreParams`, not `properties`; both are accepted.
- Presets: `small-60cm` (Small sump (60 cm)), `medium-80cm` (Medium sump (80 cm)), `large-100cm` (Large sump (100 cm)), `nano-cube-40cm` (Nano cube (40 cm)), `triton-refugium-120cm` (Triton refugium (120 cm)). Each has a page: https://paramlet.com/tools/sump-baffle/small-60cm/, https://paramlet.com/tools/sump-baffle/medium-80cm/, https://paramlet.com/tools/sump-baffle/large-100cm/, https://paramlet.com/tools/sump-baffle/nano-cube-40cm/, https://paramlet.com/tools/sump-baffle/triton-refugium-120cm/
- Deep link with parameters: `https://paramlet.com/tools/sump-baffle/?p=<url-encoded JSON>` or single values `?key=value`
- Deep link with a project: `https://paramlet.com/tools/sump-baffle/#project=<base64url project JSON>` (8,000 characters max)
- In the page: `window.paramlet` (getSchema, getParams, getState, setParams, loadProject, getProject, exportModel, exportSTL, export3MF).
- WebMCP tools: `sump_baffle_get_parameter_schema`, `_get_state`, `_set_parameters`, `_load_project`, `_download`.
- Validation: unknown keys and out-of-range values are rejected; nothing is applied from an invalid request. Keys with x-agentSafe false can only be changed in the page.
- Output: 3mf, stl (default 3mf), millimetres, parts lying on the bed in print orientation. Every download contains README.txt and parameters.json (a project file).
- Downloads: free and unlimited at launch; API exports use the same download path as the button, including a short page with recommended products (affiliate links) that the user closes before the file starts.
- Export types: `3mf`, `stl`; planned: `2d_template`.

## Features

- Over-under-over bubble trap plus optional refugium baffle
- 1:1 mm DXF and SVG cut templates included in every download
- Configurable 1 to 3 filter-sock plate for 4-inch or 7-inch rings
- Parametric bubble/overflow comb with rim-clip or sealed-magnet mount
- Automatic lap-joint splitting for 3D-printed parts over 256 mm
- Live chamber volumes (L), PETG print mass (g), and power-off flood check

## Use cases

- Lay out an over-under-over bubble trap for a DIY glass or acrylic reef sump
- Export 1:1 mm DXF and SVG cut sheets for a glass shop or laser cutter
- 3D print a PETG filter-sock holder plate (4-inch or 7-inch) and surface-skimming comb
- Verify sump reserve volume against display-tank power-off drain-back before gluing baffles

## Safety

- Submerged printed parts must be PETG or ASA only; PLA and standard resin degrade in saltwater.
- Verify the power-off flood check with a real wet test before running the return pump unattended; siphon breaks can clog.
- Neodymium magnets must be fully sealed inside the print; pause at the reported Z height to embed the magnet so it never contacts water.
- Glass and freshly cut acrylic edges are sharp; sand or polish all cut baffle edges and use aquarium-safe 100% silicone sealant.
- Rinse all printed parts in RO/DI water before placing them in the sump.

## FAQ

**Which filament is safe inside a saltwater sump?**
Use PETG or ASA for submerged parts. Avoid PLA and standard resin, which degrade or soften in saltwater.

**How are the 2D DXF and SVG templates delivered?**
Until core 1.1 ships dedicated 2D export, both sump-baffles.dxf and sump-baffles.svg are bundled inside the 3MF/ZIP download at 1:1 millimetre scale.

**What if my sump width exceeds a 256 mm print bed?**
DXF and SVG templates are always emitted full-size for glass or acrylic cutting. Printed PETG plates longer than 240 mm are automatically split into interlocking half-lap sections that fit a 256 mm bed.

**Are magnets safe in a reef sump?**
Only when completely sealed inside the PETG print or waterproofed in reef-safe epoxy. Never expose bare neodymium magnets to saltwater.

## Parameters

| key | label | type | range / values | default | agents |
|---|---|---|---|---|---|
| `sumpLength` | Inner length | number | 350–1500 mm (step 5) | 800 | yes |
| `sumpWidth` | Inner width (front-to-back) | number | 180–600 mm (step 5) | 350 | yes |
| `sumpHeight` | Inner height | number | 250–600 mm (step 5) | 400 | yes |
| `skimmerLength` | Drain / skimmer chamber length | number | 120–700 mm (step 5) | 300 | yes |
| `baffle1Height` | Skimmer water height (baffle 1) | number | 120–350 mm (step 5) | 220 | yes |
| `trapGap` | Bubble trap spacing | number | 15–60 mm (step 1) | 30 | yes |
| `underGap` | Under-baffle floor gap | number | 15–60 mm (step 1) | 25 | yes |
| `trapTopRise` | Under-baffle top rise | number | 10–80 mm (step 5) | 35 | yes |
| `baffle3Height` | Final over-baffle height (baffle 3) | number | 100–330 mm (step 5) | 200 | yes |
| `hasRefugium` | Include refugium chamber | integer | 0|1 | 1 | yes |
| `refugiumLength` | Refugium chamber length | number | 100–600 mm (step 5) | 220 | yes |
| `refugiumBaffleHeight` | Refugium baffle height | number | 100–330 mm (step 5) | 210 | yes |
| `includePrintedBaffles` | Include 3D-printable baffle plates | integer | 0|1 | 1 | yes |
| `includeSockPlate` | Include filter-sock holder plate | integer | 0|1 | 1 | yes |
| `sockCount` | Number of filter socks | integer | 1–3 count (step 1) | 2 | yes |
| `sockSize` | Filter-sock ring size | string | 4in|7in | "4in" | yes |
| `sockPlateDepth` | Sock plate depth | number | 120–260 mm (step 5) | 145 | yes |
| `sockHoleExtra` | Sock cutout extra play | number | 0–6 mm (step 0.5) | 1.5 | yes |
| `includeComb` | Include bubble / overflow comb | integer | 0|1 | 1 | yes |
| `combLength` | Comb length | number | 80–580 mm (step 5) | 240 | yes |
| `combToothWidth` | Tooth width | number | 3–12 mm (step 0.5) | 5 | yes |
| `combToothGap` | Slot gap between teeth | number | 3–15 mm (step 0.5) | 5 | yes |
| `combToothHeight` | Tooth height | number | 15–60 mm (step 1) | 30 | yes |
| `combMount` | Comb mount style | string | clip|flat|magnet | "clip" | yes |
| `glassThickness` | Baffle edge thickness (clip) | number | 3–15 mm (step 0.5) | 6 | yes |
| `magnetDiameter` | Sealed magnet diameter | number | 10–30 mm (step 0.5) | 15 | yes |
| `magnetHeight` | Sealed magnet thickness | number | 2–8 mm (step 0.5) | 4 | yes |
| `returnWaterHeight` | Return chamber running water height | number | 80–300 mm (step 5) | 170 | yes |
| `displayLength` | Display tank inner length | number | 300–2500 mm (step 10) | 1200 | yes |
| `displayWidth` | Display tank inner width | number | 250–1200 mm (step 10) | 500 | yes |
| `drainDrop` | Power-off drain drop height | number | 5–120 mm (step 1) | 35 | yes |
| `sheetThickness` | Cut sheet thickness (glass/acrylic) | number | 3–12 mm (step 0.5) | 6 | yes |
| `kerf` | Cutting kerf allowance | number | 0–2 mm (step 0.05) | 0.2 | yes |
| `wallThickness` | Printed plate thickness | number | 3–10 mm (step 0.5) | 5 | yes |
| `clearance` | Silicone / fit clearance (per side) | number | 0.2–4 mm (step 0.1) | 1.5 | yes |
| `splitParts` | Minimum plate split sections | integer | 1–4 count (step 1) | 1 | yes |
| `printMaterial` | Print material | string | petg|asa | "petg" | yes |
| `resolution` | Curve resolution | integer | 16–96 count (step 4) | 48 | yes |
| `color` | Preview colour | string | string | "#1e7a8c" | yes |
