```html
An open-source toolchain for exploring seastead designs: 3D-printed Froude models, Capytaine wave simulations, FEA, scaled structural models, and CFD.
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:
| Use | What the software actually wants | Problems with a raw OpenSCAD STL |
|---|---|---|
| 1. Tank model print | Watertight solids, split into printable parts, with joints, ballast pockets and minimum wall thickness | None. 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. FEA | For 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 model | A 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. CFD | A closed, clean STL surface (OpenFOAM snappyHexMesh, DualSPHysics, REEF3D) | Mostly fine. Remove tiny details and confirm the surface is manifold. |
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.
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/
# 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
# 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.
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":
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.// 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);
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"]}
]
}
Froude scaling keeps gravity and inertia in the right proportion, which is what governs waves and floating-body motions. With scale factor λ = 50:
| Quantity | Full scale → model divide by | Example (λ = 50) |
|---|---|---|
| Length, wave height | λ | 60 m → 1.2 m; Hs 6 m → 12 cm |
| Time, wave period | √λ ≈ 7.07 | Tp 10 s → 1.41 s |
| Velocity | √λ | 2 m/s current → 0.28 m/s |
| Acceleration | 1 (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 |
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.
Capytaine can load STL files, but OpenSCAD STLs make poor BEM meshes. There are three options, best first:
lid_mesh) to suppress spurious spikes for column-type bodies.# 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")
| Stage | Model type | Open-source tools |
|---|---|---|
| Brainstorm / compare concepts | Beam/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 concept | Shell model of the hull (mid-surfaces with plate thickness), with stiffeners as beams | CalculiX via FreeCAD FEM or PrePoMax (Windows); Code_Aster (Salome-Meca); Elmer; gmsh for meshing |
| Critical details | Solid model of a node or brace connection | Same tools, using a STEP solid from build123d/CadQuery/FreeCAD |
For a structural model in a Froude-scaled wave environment:
| Property | Aluminum (full) | Needed at 1:50 | PLA | PETG | Nylon (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 |
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:
| Tool | Type | Geometry input | Notes |
|---|---|---|---|
| OpenFOAM + olaFlow or waves2Foam | Finite-volume, two-phase (interFoam / overInterDyMFoam for moving bodies) | STL directly via snappyHexMesh | The 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. |
| REEF3D | Finite-difference, made for coastal and offshore waves | STL | Excellent 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-accelerated | STL | Very 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_Saturne | General CFD | Various | Less 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.
| OpenSCAD | build123d / CadQuery | FreeCAD | |
|---|---|---|---|
| Model style | Code (CSG), mesh output | Python code, B-rep (OpenCascade) | GUI + Python; spreadsheet parameters |
| AI-friendliness | Excellent | Very good (it's just Python) | Fair (GUI-centric; Python API is verbose) |
| 3D-print export | STL, 3MF | STL, 3MF | STL, 3MF |
| STEP (true solid) | No | Yes | Yes |
| Fillets, shells, mid-surfaces | Hard | Easy (fillet, shell, offset) | Easy |
| Reads params from YAML/JSON | Via generated params.scad or -D | Native (Python) | Via Python or spreadsheet |
| Built-in FEA | No | No (export STEP → gmsh → CalculiX) | Yes: FEM workbench (CalculiX, Elmer, gmsh, Netgen) |
| Other | Simple, fast with Manifold | Same language as Capytaine, PyNite, etc.: everything in one Python environment | Imports .scad files (OpenSCAD workbench); Ship workbench for hydrostatics; DesignSPHysics plugin |
| Purpose | Tools |
|---|---|
| Mesh repair, conversion, inspection | trimesh, 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 solvers | HAMS / pyHAMS, NEMOH (useful for cross-checking Capytaine) |
| Whole-platform frequency-domain design | NREL RAFT (built for floating wind semi-subs, readily adapted for quick sweeps) |
| Time-domain dynamics and moorings | MoorPy, MoorDyn, OpenFAST/HydroDyn, Project Chrono + HydroChrono. (WEC-Sim's code is open source but needs MATLAB, which is not.) |
| Design-space exploration | Python 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 data | ERA5 (Copernicus), NOAA WaveWatch III hindcasts, Copernicus Marine Service |
| Tank test data | phyphox (phone sensors), Tracker (video), OpenCV, Arduino/ESP32 + HX711 load cells |
| Results and website | Jupyter 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 |
generate.py writing params.scad, and batch OpenSCAD export. Mostly a re-organization of what you already have.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.
```