Skip to content

Instantly share code, notes, and snippets.

View philipturner's full-sized avatar
🏠
Working from home

Philip Turner philipturner

🏠
Working from home
View GitHub Profile
@philipturner
philipturner / Stannatrane.md
Created October 13, 2026 01:41
Turner Nanotechnology - DFT Investigation of SiH3 Molecular Tools

Risk Analysis of Stannatrane Chemistry

NOTE: About 70% of this document is written with AI assistance. Tables, and bulleted lists with the first word bolded, are all AI. Paragraphs without bolding are mostly human written.

Used Molecular Renderer for structure generation and visualization. Claude Code made the CLI-centric program more feasible for general workflows, reducing the time to write code from days to minutes. Code is not published.

This is part of a wider holistic investigation into mechanosynthesis. The investigation uses GFN2-xTB, GFN-FF, and MM4, sometimes combining them into 3-layer ONIOM. It also uses DFT: ~100 H100-hours ($400) of cloud compute for the data in this document. PBE0/def2-SVP or M06-2X/TZVP was used for most of the DFT work.

Summary:

  • New optimal route for generating Sn-SiH3: Sn-H created in the beaker (not Sn-CH3/CH2X), attach an alkene linker to the cage, treat with SiH3• flux in bulk before any STM work. Many complementary tools would be destroyed by the SiH3• flux, bu
import HDL
import MM4
import MolecularRenderer
import QuaternionModule
import xTB
// MARK: - Compile Structure
let surface = SurfaceModel(width: 6)
let siliconAtoms = surface.topology.atoms
import Foundation
enum ChipType {
// Low-noise STM preamplifier
case AD8615
// qPlus AFM sensor
case AD8616
var radiativeArea: Double {
#include "TestProgram.h"
#include "Filter.h"
#include <Arduino.h>
using namespace Creep;
uint32_t timeLimit = 20000;
bool displayResults = true;
bool waveTypeStep = false;
@philipturner
philipturner / Emulator+History.swift
Last active June 14, 2026 13:29
Archive of code for simulating an STM image offline
import Foundation
extension Emulator {
private static func squareWave(_ phaseNormalized: Float) -> Float {
if phaseNormalized < 0.5 {
return 1
} else {
return -1
}
}
#include "Diagnostics/Log.h"
#include "Diagnostics/CapacitanceTracker.h"
#include "IC/ADC.h"
#include "IC/DAC.h"
#include "IC/PA95.h"
#include "Time/KilohertzLoop.h"
#include "Util/Application.h"
#include "Util/FilterUtil.h"
// MARK: - Global Variables
#include "IC/ADC.h"
#include "IC/CDC.h"
#include "IC/DAC.h"
#include "IC/PA95.h"
#include "Metrology/Metrology.h"
#include "Time/KilohertzLoop.h"
#include "Time/TimeStatistics.h"
#include "Util/Application.h"
#include "Util/Bitset.h"
#include "IC/ADC.h"
#include "IC/CDC.h"
#include "IC/DAC.h"
#include "IC/PA95.h"
#include "Metrology/Metrology.h"
#include "Time/KilohertzLoop.h"
#include "Time/TimeStatistics.h"
#include "Util/Application.h"
#include "Util/Bitset.h"
#include "IC/ADC.h"
#include "IC/CDC.h"
#include "IC/DAC.h"
#include "IC/PA95.h"
#include "Metrology/Metrology.h"
#include "Time/KilohertzLoop.h"
#include "Time/TimeStatistics.h"
#include "Util/Application.h"
#include "Util/Bitset.h"
#include "IC/ADC.h"
#include "IC/CDC.h"
#include "IC/DAC.h"
#include "IC/PA95.h"
#include "Metrology/Metrology.h"
#include "Time/KilohertzLoop.h"
#include "Time/TimeStatistics.h"
#include "Util/Application.h"
#include "Util/Bitset.h"