```html One Parametric Model, Many Uses: An Open-Source Toolchain for Seastead Design Exploration

One Parametric Model, Many Uses

An open-source toolchain for exploring seastead designs: 3D-printed Froude models, Capytaine wave simulations, FEA, scaled structural models, and CFD.

Short answers

Contents
  1. Single source of truth: parameters, not one mesh
  2. How to structure the project
  3. Defining how printed parts fit together
  4. Froude-scale tank models (use #1)
  5. Capytaine and visualizing waves (use #2)
  6. FEA for structural strength (use #3)
  7. Can a 1:50 plastic model predict aluminum? (use #4)
  8. CFD in waves (use #5)
  9. OpenSCAD vs. build123d/CadQuery vs. FreeCAD
  10. Other recommended tools
  11. Suggested workflow and roadmap

1. Single source of truth: parameters, not one mesh

Using one authoritative model is the right instinct. The subtlety is that no single geometry file is ideal for all five uses. Each one wants something different:

UseWhat the software actually wantsProblems with a raw OpenSCAD STL
1. Tank model printWatertight solids, split into printable parts, with joints, ballast pockets and minimum wall thicknessNone. This is OpenSCAD's strength.
2. Capytaine (BEM)Only the wetted outer surface, with outward normals and fairly uniform panels (roughly 6–10 panels per shortest wavelength). Few hundred to a few thousand panels. No internal geometry.STL triangles are long slivers, very non-uniform, and include internal and dry surfaces. They usually need remeshing, or better, generating directly from parameters.
3. FEAFor thin-walled aluminum: shell (mid-surface) or beam elements with thickness as a property. Solid meshes only for detailed joints.STL is a surface, not a solid, and has no thickness information. Meshing 6 mm walls on a 40 m structure with solid elements is huge and inaccurate.
4. Plastic structural modelA distorted model with stiffness-matched sections, not pure geometric scaling (see Section 7)Pure 1:50 scaling makes walls about 0.1–0.2 mm, which cannot be printed.
5. CFDA closed, clean STL surface (OpenFOAM snappyHexMesh, DualSPHysics, REEF3D)Mostly fine. Remove tiny details and confirm the surface is manifold.
Recommended principle: one set of parameters, several generators.
A single design.yaml or design.json file holds every dimension, thickness, draft, mass item and scale factor. Small scripts turn it into each representation. Change a column diameter once and every output updates.
design.yaml
all parameters
(git-versioned)
→
generate.py
Python hub
→
params.scad → OpenSCAD → print STLs / 3MF
Capytaine panel mesh → RAOs, motions
Beam / shell model → CalculiX / PyNite
Clean hull STL → OpenFOAM / DualSPHysics
Mass, CG, inertia report and ballast plan

2. How to structure the project

Put everything in a git repository so every test result can be tied to the exact design version that produced it.

seastead/
├── designs/
│   ├── tri_column_v3.yaml        # ground truth for one design variant
│   └── quad_column_v1.yaml
├── cad/                          # OpenSCAD (or build123d) geometry
│   ├── params.scad               # AUTO-GENERATED from YAML – never hand-edit
│   ├── lib/
│   │   ├── column.scad
│   │   ├── pontoon.scad
│   │   ├── brace.scad
│   │   ├── deck.scad
│   │   └── joints.scad           # dowels, keys, bolt bosses, split logic
│   ├── seastead.scad             # top level: mode + part selection
│   └── assembly.scad             # placement of parts (from manifest)
├── hydro/
│   ├── build_mesh.py             # panel mesh from parameters
│   ├── run_capytaine.py
│   └── sea_states.yaml           # site wave climate (Hs, Tp, direction)
├── structure/
│   ├── frame_model.py            # beam model (PyNite / CalculiX input)
│   └── load_cases.py             # loads from Capytaine pressures and drag
├── cfd/
│   └── openfoam_case_template/
├── tank/
│   ├── ballast_plan.py           # target mass, CG and inertia at model scale
│   └── test_log/                 # videos, IMU data, notes per test
├── generate.py                   # the hub: YAML → all outputs
├── Makefile                      # "make print", "make hydro", ...
└── out/                          # generated files (not hand-edited)
    ├── print/  hydro/  fea/  cfd/  reports/

Example parameter file

# designs/tri_column_v3.yaml   (all full-scale, SI units)
name: tri_column_v3
scale: 50                       # model scale 1:50
water_density_full: 1025
water_density_tank: 1000

columns:
  count: 3
  diameter: 4.0
  height: 14.0
  wall_thickness: 0.008         # 8 mm aluminum
  spacing_radius: 12.0          # column centers on this circle
pontoons:
  diameter: 2.5
  wall_thickness: 0.008
heave_plates:
  diameter: 7.0
  thickness: 0.02
deck:
  elevation_above_keel: 15.5
  thickness: 1.2
draft: 8.0

masses:                         # item, mass [kg], CG [x,y,z]
  - [hull_structure, 95000, [0, 0, 6.0]]
  - [deck_house,     40000, [0, 0, 17.0]]
  - [ballast_water,  60000, [0, 0, 0.8]]

print:
  max_part_size_mm: [250, 250, 250]   # printer bed limits
  min_wall_mm: 1.6
  dowel_diameter_mm: 4

The hub script (sketch)

# generate.py  – turns one YAML file into every output
import yaml, subprocess, sys, pathlib

d = yaml.safe_load(open(sys.argv[1]))
s = d["scale"]

# 1) write params.scad (OpenSCAD can't read YAML, so we generate it)
with open("cad/params.scad", "w") as f:
    f.write(f"// AUTO-GENERATED from {sys.argv[1]}\n")
    f.write(f"SCALE = {s};\n")
    f.write(f"COL_D = {d['columns']['diameter']*1000/s};   // mm at model scale\n")
    f.write(f"COL_H = {d['columns']['height']*1000/s};\n")
    f.write(f"COL_N = {d['columns']['count']};\n")
    f.write(f"COL_R = {d['columns']['spacing_radius']*1000/s};\n")
    f.write(f"PONT_D = {d['pontoons']['diameter']*1000/s};\n")
    f.write(f"DRAFT = {d['draft']*1000/s};\n")
    # ... etc.

# 2) export every printable part via the OpenSCAD command line
parts = ["column_lower", "column_upper", "pontoon", "deck_segment"]
out = pathlib.Path("out/print"); out.mkdir(parents=True, exist_ok=True)
for p in parts:
    subprocess.run(["openscad", "-o", str(out / f"{p}.stl"),
                    "-D", 'mode="print"', "-D", f'part="{p}"',
                    "cad/seastead.scad"], check=True)

# 3) clean full-scale hull STL for CFD (mode="cfd")
# 4) build Capytaine mesh from parameters (hydro/build_mesh.py)
# 5) build beam/shell FEA model (structure/frame_model.py)
# 6) mass properties and tank ballast report (tank/ballast_plan.py)

Tip: the OpenSCAD command-line -D option overrides any variable. Recent OpenSCAD development snapshots use the "Manifold" geometry engine, which renders complex unions orders of magnitude faster than the 2021.01 stable release and is well worth using.

3. Defining how printed parts fit together

Splitting the design into many hand-written .scad files makes it easy for the parts to drift out of agreement with each other. A more robust pattern is "model whole, cut for print":

  1. Model the complete seastead once, as the assembled object at model scale. This is the truth.
  2. Define named cut planes or cut boxes in the parameter file, for example "cut columns 40 mm above pontoon" or "split deck into 3 radial segments".
  3. Generate each printable part by intersection() of the whole model with that part's region, then add joint features (dowel holes, tongue-and-groove, bolt bosses) at the cut faces.
  4. The assembly is then guaranteed to match the design, because every part was cut from the same object.

Top-level OpenSCAD pattern

// cad/seastead.scad
include <params.scad>
use <lib/column.scad>
use <lib/pontoon.scad>
use <lib/deck.scad>
use <lib/joints.scad>

mode = "assembly";   // "assembly" | "exploded" | "print" | "cfd" | "hydro"
part = "all";        // which printable part when mode == "print"

// ---- the single, complete model --------------------------------
module seastead_whole(solid=true) {
    for (i = [0:COL_N-1]) rotate([0,0,i*360/COL_N]) translate([COL_R,0,0])
        column(COL_D, COL_H, solid);
    pontoon_ring(COL_N, COL_R, PONT_D, solid);
    translate([0,0,DECK_Z]) deck(solid);
}

// ---- part regions: name -> bounding volume ---------------------
module region(name) {
    if (name == "column_lower") translate([COL_R,0,0]) cylinder(d=COL_D*1.5, h=CUT_Z1);
    if (name == "column_upper") translate([COL_R,0,CUT_Z1]) cylinder(d=COL_D*1.5, h=COL_H);
    // ... pontoon, deck segments ...
}

module printable(name) {
    difference() {
        intersection() { seastead_whole(); region(name); }
        joint_features(name);          // dowel holes, ballast pockets, labels
    }
}

if (mode == "assembly") seastead_whole();
if (mode == "print")    printable(part);
if (mode == "cfd")      scale(SCALE) seastead_whole(solid=true);   // full-scale, clean
if (mode == "exploded") for (p = PART_LIST) translate(explode_offset(p)) printable(p);

A part manifest

Have generate.py also write a manifest.json listing every part. Python can then:

{
  "design": "tri_column_v3", "scale": 50, "git_commit": "a1b2c3d",
  "parts": [
    {"name": "column_lower", "copies": 3, "material": "PETG",
     "infill": 1.0, "joins": ["pontoon@dowel", "column_upper@dowel"],
     "transform_deg": [0, 120, 240]},
    {"name": "column_upper", "copies": 3, "material": "PETG", "joins": ["deck@bolt"]}
  ]
}

Practical joint tips for tank models

4. Froude-scale tank models (use #1)

Froude scaling keeps gravity and inertia in the right proportion, which is what governs waves and floating-body motions. With scale factor λ = 50:

QuantityFull scale → model divide byExample (λ = 50)
Length, wave heightλ60 m → 1.2 m; Hs 6 m → 12 cm
Time, wave period√λ ≈ 7.07Tp 10 s → 1.41 s
Velocity√λ2 m/s current → 0.28 m/s
Acceleration1 (same)0.1 g → 0.1 g
Mass, forceλ³ × (ρ_full/ρ_tank)500 t → 4.0 kg (3.90 kg in fresh water)
Momentλ⁴
Mass moment of inertiaλ⁵
Stress (structural, same density)λsee Section 7
What makes or breaks tank tests:

Cheap instrumentation:

Compare model natural periods (free-decay tests: push it down and let go) directly with Capytaine predictions. This is the single most useful validation you can do.

5. Capytaine and visualizing waves (use #2)

Getting a good mesh

Capytaine can load STL files, but OpenSCAD STLs make poor BEM meshes. There are three options, best first:

  1. Build the panel mesh directly from parameters in Python. Capytaine has built-in primitives (vertical cylinders, horizontal cylinders, rectangular boxes, discs) that you can join. Column-and-pontoon seasteads are mostly cylinders and boxes, so this is often the cleanest approach. It also lets you exploit symmetry, which makes runs faster.
  2. Remesh the STL with gmsh, PyMeshLab, or Instant Meshes into uniform quads or near-equilateral triangles, then clip at the waterline.
  3. Generate a STEP file (from build123d/CadQuery/FreeCAD) and mesh the surface with gmsh.
Capytaine modeling cautions

Sketch of a Capytaine run

# hydro/run_capytaine.py  (Capytaine 2.x style; check docs for your version)
import numpy as np, xarray as xr, capytaine as cpt

mesh = cpt.load_mesh("out/hydro/hull_fullscale.stl")   # or build from primitives
cog  = (0, 0, -1.5)                                     # from mass report, waterline at z=0
body = cpt.FloatingBody(mesh=mesh,
                        lid_mesh=mesh.generate_lid(),
                        dofs=cpt.rigid_body_dofs(rotation_center=cog),
                        center_of_mass=cog,
                        mass=195_000).immersed_part()
body.inertia_matrix       = body.compute_rigid_body_inertia()  # or use your mass-item inertia
body.hydrostatic_stiffness = body.compute_hydrostatic_stiffness()

periods = np.linspace(3, 25, 60)
test = xr.Dataset(coords={
    "omega": 2*np.pi/periods,
    "wave_direction": [0.0, np.pi/6],
    "radiating_dof": list(body.dofs),
    "water_depth": [np.inf],
})
ds  = cpt.BEMSolver().fill_dataset(test, body)
rao = cpt.post_pro.rao(ds)          # motion per meter of wave amplitude
ds.to_netcdf("out/hydro/results.nc")

From RAOs to "how does it feel in a storm?"

Visualization options

6. FEA for structural strength (use #3)

Match model fidelity to the design stage

StageModel typeOpen-source tools
Brainstorm / compare conceptsBeam/frame model: columns, pontoons and braces as tubes with real diameters and wall thicknesses. Fast, and reveals load paths and member sizes.PyNite (Python 3D frame, very easy to generate from YAML), Frame3DD, OpenSees, CalculiX beam elements
Promising conceptShell model of the hull (mid-surfaces with plate thickness), with stiffeners as beamsCalculiX via FreeCAD FEM or PrePoMax (Windows); Code_Aster (Salome-Meca); Elmer; gmsh for meshing
Critical detailsSolid model of a node or brace connectionSame tools, using a STEP solid from build123d/CadQuery/FreeCAD
OpenSCAD and FEA: OpenSCAD can't export STEP or other true solid (B-rep) formats; it outputs meshes. You can convert STL to a solid mesh (gmsh or FreeCAD can do it), but for thin aluminum structures that is the wrong model type anyway. Generate the FEA model directly from the parameters as beams or shells. It is easier, faster and more accurate.

Loads are the hard part

Aluminum-specific caution:

7. Can a 1:50 plastic model predict aluminum? (use #4)

The scaling rules

For a structural model in a Froude-scaled wave environment:

PropertyAluminum (full)Needed at 1:50PLAPETGNylon (wet)
Young's modulus E~70 GPa~1.4 GPa~3–3.5 GPa~2 GPa~1–1.5 GPa
Yield strength~215 MPa (125 welded)~2.5–4.3 MPa~40–60 MPa~40–50 MPa~30–40 MPa
Match?E: within 2.5×
strength: 10–20× too strong
E: close
strength: 10–20× too strong
E: close
strength: ~10× too strong

Conclusions

Better use of the printer for structural questions: a segmented model with instrumented joints.
This is the standard approach in professional model basins:
  1. Print the hull as stiff segments (columns, pontoons, deck sections).
  2. Connect them through a small load cell or a strain-gauged aluminum or steel flexure at the key structural connections, for example deck-to-column or brace mid-span.
  3. Run waves and measure the forces and moments transmitted through the joints.
  4. Scale the measured loads to full scale (×λ³ for force, ×λ⁴ for moment).
  5. Apply these loads to the FEA model of the aluminum structure.
This uses each tool for what it does well: the tank gives realistic, nonlinear wave loads, and FEA gives aluminum stresses. It also directly checks the splitting forces Capytaine predicts. HX711-based load-cell amplifiers with an Arduino or ESP32 make this inexpensive.

8. CFD in waves (use #5)

CFD is the most expensive step, in both learning effort and computer time. Use it for specific questions that Capytaine and the tank can't answer well, such as:

ToolTypeGeometry inputNotes
OpenFOAM + olaFlow or waves2FoamFinite-volume, two-phase (interFoam / overInterDyMFoam for moving bodies)STL directly via snappyHexMeshThe industry-standard open-source option. Steep learning curve; Linux preferred. Overset meshes handle large motions. A single seastead-in-waves run can take hours to days on a workstation.
REEF3DFinite-difference, made for coastal and offshore wavesSTLExcellent wave generation and absorption. Has a fast nonlinear potential-flow module (REEF3D::FNPF) and a full CFD module. Good fit for this use.
DualSPHysics + DesignSPHysics (FreeCAD GUI)Smoothed particle hydrodynamics, GPU-acceleratedSTLVery good for violent free-surface events (breaking waves on structures, green water) and floating bodies with moorings (MoorDyn coupling). Visually impressive results. Runs well on a gaming GPU.
SU2, Code_SaturneGeneral CFDVariousLess suited to free-surface waves; not a first choice here.

Here OpenSCAD fits in well: a clean, closed, full-scale STL from mode="cfd" is exactly what these tools want. Remove small details (bolts, labels, dowel holes) in the CFD mode.

9. OpenSCAD vs. build123d/CadQuery vs. FreeCAD

OpenSCADbuild123d / CadQueryFreeCAD
Model styleCode (CSG), mesh outputPython code, B-rep (OpenCascade)GUI + Python; spreadsheet parameters
AI-friendlinessExcellentVery good (it's just Python)Fair (GUI-centric; Python API is verbose)
3D-print exportSTL, 3MFSTL, 3MFSTL, 3MF
STEP (true solid)NoYesYes
Fillets, shells, mid-surfacesHardEasy (fillet, shell, offset)Easy
Reads params from YAML/JSONVia generated params.scad or -DNative (Python)Via Python or spreadsheet
Built-in FEANoNo (export STEP → gmsh → CalculiX)Yes: FEM workbench (CalculiX, Elmer, gmsh, Netgen)
OtherSimple, fast with ManifoldSame language as Capytaine, PyNite, etc.: everything in one Python environmentImports .scad files (OpenSCAD workbench); Ship workbench for hydrostatics; DesignSPHysics plugin
Recommendation:

10. Other recommended tools (all open source unless noted)

PurposeTools
Mesh repair, conversion, inspectiontrimesh, PyMeshLab / MeshLab, meshio, gmsh, Blender
Hydrostatics and stability (GM, righting-arm curves, inclining)Capytaine hydrostatics, trimesh volumes, or a small custom Python script that rotates the mesh and integrates. FreeCAD Ship workbench.
Alternative BEM solversHAMS / pyHAMS, NEMOH (useful for cross-checking Capytaine)
Whole-platform frequency-domain designNREL RAFT (built for floating wind semi-subs, readily adapted for quick sweeps)
Time-domain dynamics and mooringsMoorPy, MoorDyn, OpenFAST/HydroDyn, Project Chrono + HydroChrono. (WEC-Sim's code is open source but needs MATLAB, which is not.)
Design-space explorationPython loops or scipy.optimize over the YAML parameters. Optuna for multi-parameter searches (e.g., minimize deck acceleration subject to steel/aluminum weight and GM limits).
Wave climate dataERA5 (Copernicus), NOAA WaveWatch III hindcasts, Copernicus Marine Service
Tank test dataphyphox (phone sensors), Tracker (video), OpenCV, Arduino/ESP32 + HX711 load cells
Results and websiteJupyter notebooks, matplotlib, PyVista, ParaView. Three.js or <model-viewer> for interactive 3D models on your website (export glTF from Blender or trimesh).
Reference standards (to read, not software)DNV-RP-C205 (environmental conditions and loads), DNV-RP-C103 (column-stabilized units), ITTC recommended procedures for model tests

11. Suggested workflow and roadmap

  1. Set up the hub: git repo, YAML design files, generate.py writing params.scad, and batch OpenSCAD export. Mostly a re-organization of what you already have.
  2. Mass and stability report: from the YAML mass list, compute displacement, CG, GM and inertia, and the ballast needed for the tank model. Reject designs with poor GM early.
  3. Capytaine screening: build meshes from parameters and compute natural periods, RAOs, and deck accelerations for your site's sea states. Run parameter sweeps, which take minutes per design. This is where most concept selection should happen.
  4. Tank testing of the best 2–3 concepts: Froude model with correct mass properties. Free-decay tests first (validate natural periods and get damping), then regular and irregular waves. Feed the measured damping back into Capytaine-based predictions.
  5. Beam FEA (PyNite or CalculiX) with Capytaine and Morison design loads. Rough member sizing in aluminum, and a check of the splitting-force load case.
  6. Optional: segmented, instrumented tank model to measure connection loads and validate the FEA load cases.
  7. Optional: targeted CFD (REEF3D, OpenFOAM or DualSPHysics) for air gap, green water, slamming, or heave-plate damping.
  8. Hand-off package for the naval architect: YAML parameters, STEP geometry (if you moved to build123d/FreeCAD), Capytaine results, tank test data and videos, and the FEA model. This kind of package can noticeably reduce their exploratory hours.
Bottom line: make the parameters the single source of truth and Python the glue. OpenSCAD stays your print and CFD geometry engine. Capytaine and beam-FEA models are generated from the same numbers. Plastic models give real value for wave loads and motions, but not for judging aluminum strength; use instrumented joints plus FEA for that. All of it can be done with open-source software.

Material properties and rules of thumb above are approximate and for concept screening only. Final structural design, class compliance, and safety assessment should be done by your naval architect.

```