Skip to content

Instantly share code, notes, and snippets.

@lukem512
Created May 11, 2023 08:22
Show Gist options
  • Save lukem512/fa717504cd83a85a34099c4a50541a23 to your computer and use it in GitHub Desktop.
Save lukem512/fa717504cd83a85a34099c4a50541a23 to your computer and use it in GitHub Desktop.
Calculator for the dimensions of a brick or earthen pizza oven.
// Function to compute optimal dimensions for a pizza oven given a fixed door width and flue pipe area
// For example, a door to accept a 12" pizza and an 8" flue pipe
function pizzaOven(doorWidth, flueDiameter) {
let doorHeight = flueDiameter / (doorWidth * 0.1); // flue is 10% the area of the door
let domeWidth = doorWidth * 2; // door is ~50% the width of the dome
let domeHeight = (doorWidth / 63) * 100; // door is ~63% the height of the dome
return {
dome: {
width: domeWidth.toFixed(2),
height: domeHeight.toFixed(2),
},
door: {
width: doorWidth.toFixed(2),
height: doorHeight.toFixed(2),
},
flue: {
diameter: flueDiameter.toFixed(2),
},
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment