Oak Ridge Ranch
Three bedrooms and two baths, with its own wall and window types, a gable at one end of the roof and a block of client requests.
// A three-bedroom, two-bath ranch on one floor: the v0 target house in
// docs/IDEA.md ("A possible first milestone"). The entry, living room,
// kitchen and dining room are one open great room, with the laundry off
// the kitchen. The bedrooms, the baths and the hall that serves them are a
// wing across the back of the house that reaches the east side, with the
// primary bath inside the primary bedroom.
house "Oak Ridge Ranch" {
jurisdiction "us/irc-2021"
// Assemblies. A type lists its layers outside first (a floor, top first);
// materials and their thermal values come from the catalog (catalogs/).
type cedar_2x6: wall {
wood_bevel_siding 0.5in
xps_board 1in
osb 0.4375in
mineral_wool_batt 5.5in between softwood_lumber at 24in
gypsum_board 0.5in
}
type quiet_2x4: wall {
gypsum_board 0.625in
mineral_wool_batt 3.5in between softwood_lumber at 16in
gypsum_board 0.625in
}
type picture: window {
u_factor = 0.27
shgc = 0.30
}
// Which elements take which type. A room's body can also type its own
// walls, its windows or one of its walls, as the primary bedroom, the
// living room and the laundry do below.
exterior walls: cedar_2x6
windows: window_triple_low_e // a catalog window
// The roof: hipped, but with a gable on the east end, over the bedroom
// wing. Without this line the engine builds a hip roof at 6/12 with a
// 12 in overhang.
roof gable east pitch 7/12 overhang 18in
// The design: every space, with the designer's sizes and the rooms each
// one opens onto. A room's body holds its constraints, its relations and
// the spaces inside it; a space inside a room, such as the primary bath,
// has a door into that room unless something else is stated.
wing bedrooms east {
room primary: bedroom {
door_to hall
wall hall: quiet_2x4 // one wall: the one to the hall
room primary_bath: bathroom
}
room bed2: bedroom { door_to hall }
room bed3: bedroom { door_to hall }
room hall: hall { door_to living cased }
room bath2: bathroom { area >= 40sqft, door_to hall }
}
// An open space: its rooms are open to one another, with no doors.
open great {
room entry: entry {
width >= 5'-6"
door south // the front door
}
room living: living {
area ~ 320sqft, width >= 14ft
windows: picture
}
room kitchen: kitchen { width >= 12ft }
room dining: dining { area >= 100sqft }
}
room laundry: laundry {
area >= 35sqft, door_to kitchen
walls: quiet_2x4 // every wall of one room
}
// A relation can also stand on its own line.
prefer kitchen adjacent laundry
// What the client asked for, refining the spaces above by name. These
// outrank the designer's choices.
client {
primary {
area >= 150sqft
width >= 12ft
prefer area ~ 180sqft
}
bed2 { area >= 110sqft }
bed3 { area >= 110sqft }
primary_bath { area >= 60sqft }
primary door_to primary_bath
prefer bed2 adjacent bed3
}
}