/* Conceptual electrostatic-field conditioning geometry for the Sweet-style two-magnet assembly. This file visualizes the field stack; it is not a certified 20 kV insulation fixture. Each 60 x 25 x 15 mm magnet has its own pair of electrodes. Four electrodes are required because a single outer pair would place most voltage across the central air gap instead of across the ferrite. Z is the main magnetization/output-coil axis. */ $fn = 48; magnet_x = 60; magnet_y = 25; magnet_z = 15; operating_gap = 20; electrode_x = 54; electrode_y = 19; electrode_t = 0.25; dielectric_t = 0.50; corner_r = 3; stack_layer = electrode_t + dielectric_t; conditioning_gap = operating_gap + 2 * stack_layer; module rounded_plate_xy(size_x, size_y, radius, thickness) { linear_extrude(height = thickness, center = true) hull() for (x = [-size_x / 2 + radius, size_x / 2 - radius], y = [-size_y / 2 + radius, size_y / 2 - radius]) translate([x, y]) circle(r = radius); } module magnet(z_center) { color([0.16, 0.19, 0.23, 0.82]) translate([0, 0, z_center]) cube([magnet_x, magnet_y, magnet_z], center = true); } module dielectric_sheet(z_center) { color([0.88, 0.88, 0.72, 0.62]) translate([0, 0, z_center]) rounded_plate_xy(electrode_x + 2, electrode_y + 2, corner_r + 1, dielectric_t); } module electrode(z_center, terminal_side = 1) { color([0.92, 0.47, 0.12, 0.88]) { translate([0, 0, z_center]) rounded_plate_xy(electrode_x, electrode_y, corner_r, electrode_t); // Visual terminal tab only; real HV termination needs a separately // engineered enclosure and creepage/clearance distances. translate([terminal_side * (electrode_x / 2 + 4), 0, z_center]) cube([8, 6, electrode_t], center = true); } } module face_stack(surface_z, outward_sign, terminal_side) { dielectric_z = surface_z + outward_sign * dielectric_t / 2; electrode_z = surface_z + outward_sign * (dielectric_t + electrode_t / 2); dielectric_sheet(dielectric_z); electrode(electrode_z, terminal_side); } module conditioning_stack() { lower_center_z = -(conditioning_gap / 2 + magnet_z / 2); upper_center_z = (conditioning_gap / 2 + magnet_z / 2); magnet(lower_center_z); magnet(upper_center_z); // Lower magnet: outer and inner faces. face_stack(lower_center_z - magnet_z / 2, -1, -1); face_stack(lower_center_z + magnet_z / 2, 1, 1); // Upper magnet: inner and outer faces. face_stack(upper_center_z - magnet_z / 2, -1, -1); face_stack(upper_center_z + magnet_z / 2, 1, 1); // Existing operational dual-coil frame, centered in the gap. color([0.76, 0.80, 0.87, 0.85]) import("sweet_dual_coil_frame.stl", convexity = 10); } conditioning_stack();