{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/reef-flow-nozzle/schema.json",
 "title": "Reef flow nozzle generator — parameters",
 "description": "Design printable reef return nozzles: random-flow fins, eductor, flare or jet cones for Loc-Line or PVC pipe. Free 3MF & STL for PETG. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "reef-flow-nozzle",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "nozzle",
   "title": "Nozzle type"
  },
  {
   "id": "inlet",
   "title": "Inlet fitting"
  },
  {
   "id": "flow",
   "title": "Flow internals"
  },
  {
   "id": "body",
   "title": "Body & exit"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "random-12-locline",
    "title": "Random flow nozzle, 1/2 in Loc-Line",
    "description": "Two counter-twisting fin rows break a steady 1/2 in Loc-Line return into random, wave-like flow.",
    "values": {
     "nozzleType": "random",
     "inletType": "locline",
     "loclineSize": "half",
     "finRows": 2,
     "finsPerRow": 4,
     "finTwist": 32,
     "throatLength": 40,
     "exitDiameter": 16,
     "bodyDiameter": 32,
     "color": "#0ea5e9"
    }
   },
   {
    "id": "stubby-12-locline",
    "title": "Stubby random nozzle, 1/2 in Loc-Line",
    "description": "Short random flow nozzle for 1/2 in Loc-Line returns in tight spaces behind the rockwork.",
    "values": {
     "nozzleType": "random",
     "inletType": "locline",
     "loclineSize": "half",
     "finRows": 2,
     "finsPerRow": 4,
     "finTwist": 38,
     "throatLength": 22,
     "exitDiameter": 18,
     "bodyDiameter": 30,
     "color": "#ff6a3d"
    }
   },
   {
    "id": "random-34-locline",
    "title": "Random flow nozzle, 3/4 in Loc-Line",
    "description": "Three fin rows turn a 3/4 in Loc-Line return into a wide, soft, chaotic surge.",
    "values": {
     "nozzleType": "random",
     "inletType": "locline",
     "loclineSize": "three-quarter",
     "finRows": 3,
     "finsPerRow": 5,
     "finTwist": 28,
     "throatLength": 52,
     "exitDiameter": 24,
     "bodyDiameter": 40,
     "color": "#14b8a6"
    }
   },
   {
    "id": "eductor-pvc-half",
    "title": "Eductor nozzle, 1/2 in PVC return",
    "description": "Flow-amplifying eductor that slips over a 21.3 mm 1/2 in Sch40 PVC return pipe.",
    "values": {
     "nozzleType": "eductor",
     "inletType": "pipe",
     "pipeOD": 21.3,
     "pipeFit": 0.1,
     "pipeInsert": 25,
     "motiveDiameter": 10,
     "intakeCount": 4,
     "intakeSize": 10,
     "mixLength": 45,
     "exitDiameter": 30,
     "bodyDiameter": 38,
     "color": "#8b5cf6"
    }
   },
   {
    "id": "eductor-aio-19",
    "title": "Eductor nozzle, 19 mm AIO return",
    "description": "Flow-amplifying eductor for all-in-one tanks with a 19 mm return spigot (IM Fusion and similar).",
    "values": {
     "nozzleType": "eductor",
     "inletType": "pipe",
     "pipeOD": 19,
     "pipeFit": 0.1,
     "pipeInsert": 20,
     "motiveDiameter": 9,
     "intakeCount": 4,
     "intakeSize": 9,
     "mixLength": 40,
     "exitDiameter": 28,
     "bodyDiameter": 36,
     "color": "#10b981"
    }
   },
   {
    "id": "flare-12-locline",
    "title": "Fan diffuser nozzle, 1/2 in Loc-Line",
    "description": "Wide, gentle fan of water from a 1/2 in Loc-Line return for soft coral and seahorse tanks.",
    "values": {
     "nozzleType": "flare",
     "inletType": "locline",
     "loclineSize": "half",
     "flareAngle": 20,
     "exitDiameter": 24,
     "bodyDiameter": 32,
     "color": "#f59e0b"
    }
   },
   {
    "id": "jet-pvc-34",
    "title": "Jet nozzle, 3/4 in PVC return",
    "description": "Focused, far-reaching jet for long tanks, slipped over a 26.7 mm 3/4 in Sch40 PVC pipe.",
    "values": {
     "nozzleType": "jet",
     "inletType": "pipe",
     "pipeOD": 26.7,
     "pipeFit": 0.1,
     "pipeInsert": 25,
     "focusLength": 30,
     "exitDiameter": 12,
     "bodyDiameter": 34,
     "color": "#ec4899"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "nozzleType": {
   "type": "string",
   "enum": [
    "random",
    "eductor",
    "flare",
    "jet"
   ],
   "x-enumTitles": {
    "random": "Random flow (RFG style)",
    "eductor": "Eductor (flow amplifier)",
    "flare": "Flare (wide flow)",
    "jet": "Jet (focused flow)"
   },
   "title": "Nozzle type",
   "description": "Internal fins make chaotic surge like a random flow generator; an eductor entrains tank water for 3-5x volume.",
   "x-group": "nozzle",
   "x-agentSafe": true,
   "x-label-lv": "Uzgaļa tips",
   "default": "random"
  },
  "inletType": {
   "type": "string",
   "enum": [
    "locline",
    "pipe"
   ],
   "x-enumTitles": {
    "locline": "Loc-Line snap socket",
    "pipe": "Slip over rigid pipe"
   },
   "title": "Inlet fitting",
   "description": "Snap onto Loc-Line modular hose, or slip the collar over a rigid return pipe.",
   "x-group": "inlet",
   "x-agentSafe": true,
   "x-label-lv": "Pieslēguma veids",
   "default": "locline"
  },
  "loclineSize": {
   "type": "string",
   "enum": [
    "quarter",
    "half",
    "three-quarter"
   ],
   "x-enumTitles": {
    "quarter": "1/4 in (6 mm hose)",
    "half": "1/2 in (13 mm hose)",
    "three-quarter": "3/4 in (19 mm hose)"
   },
   "title": "Loc-Line size",
   "description": "The hose system diameter; the socket is sized from its nominal ball diameter (an estimate - see Ball diameter).",
   "x-group": "inlet",
   "x-visibleIf": {
    "inletType": "locline"
   },
   "x-agentSafe": true,
   "x-label-lv": "Loc-Line izmērs",
   "default": "half"
  },
  "fitClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Socket clearance",
   "description": "Room around the Loc-Line ball in the socket; 0.15-0.3 mm suits most FDM printers. Sand the three nubs if the ball still will not seat.",
   "x-group": "inlet",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "inletType": "locline"
   },
   "x-agentSafe": true,
   "x-label-lv": "Ligzdas pielaide",
   "default": 0.3
  },
  "ballDiameter": {
   "type": "number",
   "minimum": 0,
   "maximum": 40,
   "x-step": 0.05,
   "title": "Ball diameter (0 = nominal)",
   "description": "Caliper the ball end of your Loc-Line and enter it here if the socket is loose or tight; 0 uses the nominal size for the chosen system.",
   "x-group": "inlet",
   "x-unit": "mm",
   "x-visibleIf": {
    "inletType": "locline"
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Balona diametrs (0 = nominālais)",
   "default": 0
  },
  "pipeOD": {
   "type": "number",
   "minimum": 10,
   "maximum": 32,
   "x-step": 0.1,
   "title": "Pipe outer diameter",
   "description": "Measure the rigid return pipe; 1/2 in Sch40 PVC is 21.3 mm, 3/4 in is 26.7 mm.",
   "x-group": "inlet",
   "x-unit": "mm",
   "x-visibleIf": {
    "inletType": "pipe"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurules ārējais diametrs",
   "default": 21.5
  },
  "pipeFit": {
   "type": "number",
   "minimum": 0,
   "maximum": 0.5,
   "x-step": 0.05,
   "title": "Pipe fit",
   "description": "Total play over the pipe OD; 0.1 mm gives the friction fit the original designs use - wet the pipe before sliding it on.",
   "x-group": "inlet",
   "x-unit": "mm",
   "x-visibleIf": {
    "inletType": "pipe"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurules sēžana",
   "default": 0.1
  },
  "pipeInsert": {
   "type": "number",
   "minimum": 12,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Pipe insert depth",
   "description": "How far the pipe slides into the collar; deeper grips better.",
   "x-group": "inlet",
   "x-unit": "mm",
   "x-visibleIf": {
    "inletType": "pipe"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurules ievadīšanas dziļums",
   "default": 25
  },
  "pipeGripRibs": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Internal grip ribs",
   "description": "Three longitudinal ribs squeeze the pipe for a friction fit and even out glue gaps.",
   "x-group": "inlet",
   "x-visibleIf": {
    "inletType": "pipe"
   },
   "x-agentSafe": true,
   "x-label-lv": "Iekšējās ribas",
   "default": 1
  },
  "pumpFlow": {
   "type": "number",
   "minimum": 100,
   "maximum": 6000,
   "multipleOf": 50,
   "title": "Return pump flow (l/h)",
   "description": "What the return pump delivers at the nozzle; used only for the flow estimates in the guidance panel.",
   "x-group": "flow",
   "x-unit": "none",
   "x-agentSafe": true,
   "x-label-lv": "Atgriešanas sūkņa plūsma (l/h)",
   "default": 1000
  },
  "finRows": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Fin rows",
   "description": "Stacked rings of fins; consecutive rows twist opposite ways for chaotic flow.",
   "x-group": "flow",
   "x-unit": "count",
   "x-visibleIf": {
    "nozzleType": "random"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spuru rindas",
   "default": 2
  },
  "finsPerRow": {
   "type": "integer",
   "minimum": 3,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Fins per row",
   "description": "More fins split the flow into more streams but restrict it a little more.",
   "x-group": "flow",
   "x-unit": "count",
   "x-visibleIf": {
    "nozzleType": "random"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spuras rindā",
   "default": 4
  },
  "finTwist": {
   "type": "number",
   "minimum": 10,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Fin twist angle",
   "description": "Angle of the fins at mid-radius, measured from the flow direction; steeper fins swirl harder and slow the flow more.",
   "x-group": "flow",
   "x-unit": "deg",
   "x-visibleIf": {
    "nozzleType": "random"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spuru vijuma leņķis",
   "default": 32
  },
  "finDepth": {
   "type": "number",
   "minimum": 20,
   "maximum": 80,
   "multipleOf": 5,
   "title": "Fin depth",
   "description": "How far fins reach into the bore as a percentage of its radius.",
   "x-group": "flow",
   "x-unit": "pct",
   "x-visibleIf": {
    "nozzleType": "random"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spuru dziļums",
   "default": 45
  },
  "throatLength": {
   "type": "number",
   "minimum": 20,
   "maximum": 70,
   "multipleOf": 1,
   "title": "Turbulence section length",
   "description": "Length of the finned bore; shared evenly between the rows.",
   "x-group": "flow",
   "x-unit": "mm",
   "x-visibleIf": {
    "nozzleType": "random"
   },
   "x-agentSafe": true,
   "x-label-lv": "Turbulences sekcijas garums",
   "default": 40
  },
  "motiveDiameter": {
   "type": "number",
   "minimum": 6,
   "maximum": 25,
   "x-step": 0.5,
   "title": "Motive nozzle diameter",
   "description": "The narrow jet outlet inside; smaller jets entrain more water but restrict the pump.",
   "x-group": "flow",
   "x-unit": "mm",
   "x-visibleIf": {
    "nozzleType": "eductor"
   },
   "x-agentSafe": true,
   "x-label-lv": "Motīva sprauslas diametrs",
   "default": 10
  },
  "intakeCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Intake windows",
   "description": "Side windows that draw tank water into the mixing chamber.",
   "x-group": "flow",
   "x-unit": "count",
   "x-visibleIf": {
    "nozzleType": "eductor"
   },
   "x-agentSafe": true,
   "x-label-lv": "Sūkšanas logi",
   "default": 4
  },
  "intakeSize": {
   "type": "number",
   "minimum": 6,
   "maximum": 18,
   "x-step": 0.5,
   "title": "Intake window diameter",
   "description": "Bigger windows entrain more water; they bridge over during printing like an arch.",
   "x-group": "flow",
   "x-unit": "mm",
   "x-visibleIf": {
    "nozzleType": "eductor"
   },
   "x-agentSafe": true,
   "x-label-lv": "Logu diametrs",
   "default": 10
  },
  "mixLength": {
   "type": "number",
   "minimum": 20,
   "maximum": 90,
   "multipleOf": 1,
   "title": "Mixing tube length",
   "description": "Length of the wide chamber where pumped and entrained water combine.",
   "x-group": "flow",
   "x-unit": "mm",
   "x-visibleIf": {
    "nozzleType": "eductor"
   },
   "x-agentSafe": true,
   "x-label-lv": "Maisīšanas caurules garums",
   "default": 45
  },
  "flareAngle": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Flare angle",
   "description": "Half-angle of the spreading cone from the axis; wider flares slow and spread the flow.",
   "x-group": "flow",
   "x-unit": "deg",
   "x-visibleIf": {
    "nozzleType": "flare"
   },
   "x-agentSafe": true,
   "x-label-lv": "Izpletuma leņķis",
   "default": 35
  },
  "focusLength": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Focus section length",
   "description": "Length of the converging cone that accelerates the flow to the exit.",
   "x-group": "flow",
   "x-unit": "mm",
   "x-visibleIf": {
    "nozzleType": "jet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Fokusa sekcijas garums",
   "default": 30
  },
  "wallThickness": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Shell thickness of the nozzle body; keep at least 2 mm for pump pressure.",
   "x-group": "body",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sieniņas biezums",
   "default": 2.4
  },
  "bodyDiameter": {
   "type": "number",
   "minimum": 22,
   "maximum": 56,
   "multipleOf": 1,
   "title": "Body diameter",
   "description": "Outer diameter of the main body; widened automatically if the inlet needs more room.",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa diametrs",
   "default": 32
  },
  "exitDiameter": {
   "type": "number",
   "minimum": 8,
   "maximum": 40,
   "x-step": 0.5,
   "title": "Exit diameter",
   "description": "Final outlet bore; smaller exits speed the flow up, larger ones slow it down.",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Izejas diametrs",
   "default": 16
  },
  "resolution": {
   "type": "integer",
   "minimum": 24,
   "maximum": 96,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around the bore; higher is smoother and slower.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 48
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended in saltwater)",
    "asa": "ASA"
   },
   "title": "Print material",
   "description": "PLA degrades in warm saltwater; use PETG or ASA for anything that goes in the tank.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#1d7a8c"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "reef-silicone-tubing",
   "title": "Aquarium Dosing Silicone Tubing 4/6 mm (5 m, Black)",
   "why": "Standard 4/6 mm dosing line size that clips directly into the probe & dosing holder.",
   "url": "https://paramlet.com/go/reef-silicone-tubing?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}