baterm — Quick Reference Sheet

baterm — Quick Reference Sheet

Start: baterm · Help: help baterm · Manual: manual · Axes: +X East, +Y North, +Z up
Files (under ./data by default): .context · .building · .pv · .sidemask · .baterm
Simulator: set simulator batem|energyplus · Domain shorthand: context|building|building zones|pv lock then bare subcommands; unlock
ChatGPT (session Q&A): @<question> or ask <question> — needs OPENAI_API_KEY + loaded context

Typical flow: context load site → building load house → building simulate → building vars / export run
With PV: … → pv load plant → pv simulate → pv balance / pv enercost

Workspace

Command Action
status Session snapshot (context / building / PV)
clear Forget context + building + PV
cd [path] / cd - Change / previous directory
pwd Print current working directory
ls [path] List files and folders (Unix-like)
dir [folder] List project files in ./data (baterm extensions)
dataload <zenodo_id> Download Zenodo record into ./data
update Refresh packaged data / libraries
export <name> Write name.xlsx (session series)
plot / vars Session time-series picker / list all vars
run <file.baterm> Replay a baterm script (.baterm / .script)
pyrun <file.py> [args] Run external Python code
workshops / list / <id> / stop List / open / stop JupyterLab workshop tutorials
quickref Open batem/lectures/quick_reference_sheet.html
lectures / list / <id> Open lecture PDFs related to workshops
manual Open batem/lectures/Baterm_User_Manual.pdf
help naming Variable naming rules
@<question> / ask <question> Ask ChatGPT about the current session (OPENAI_API_KEY + context)
exit / quit Leave baterm
material list thermal\|glazing List material properties from propertiesDB.xlsx
material thermal load <name> <row> Load a thermal material row into the workspace

Context domain — context …

ContextData UI sets the reference year for simulations. Weather comes from open-meteo.com using the GPS coordinates. The first download can take a while — do not interrupt it; on success, data are stored as ./data/<location>.json. Altitude may occasionally need manual input if the elevation server fails. After too many downloads you may be banned for a while; retry later or copy a JSON from another machine. Prefer a full past year (not the current incomplete year).

Command preceded by context Action
/ Summarize loaded ContextData
new / edit GUI create / modify
load / save <path> Load / save a .context file
delete [<path>] Forget session or delete .context file
3d [names…] Side masks in 3D (optional name filter)
heliodon Sun paths + horizon + side-masks
best angles Best exposure/slope for 1 m² global irradiation
plot / vars Context series picker / list variables
temperature Temperature analysis
rain Rainfall analysis
solar Solar irradiance analysis (sunny days > 120 W/m²)
wind Wind rose (direction × speed)
psychro Psychrometric chart (comfort zone; one point per hour)
evolution Temperature and rainfall trends from 1980 to the reference year
lock Domain lock: bare heliodon → context heliodon

Side masks + lot: context sidemasks · new · edit <name> · load/save/delete <name> · 3d [names…]
(Also Design on the context form → Shape Designer in lot-masks mode; export fills side_masks + lot.)

Building domain — building …

Command preceded by building Action
Summarize BuildingData
new / edit GUI create / modify (edit blocked if any floor is partitioned — use zones delete <floor> first)
load / save <path> Load / save a .building file
lambda Built-in λ-house (Grenoble reference)
delete [<path>] Forget session or delete .building file
footprint 2D plan of the building outline
3d Interactive 3D view
heliodons [floor <m>] [side <n>] Façade heliodons (optional floor/side filters)
simulate [--quick] Hourly simulation for the reference year
results HVAC performances and comfort indicators
plot / vars Building series picker / list variables
energies / sankey / lighting Energy pies / Sankey / daylight heatmap
Us Envelope U + Ubat
standard [H1\|H2\|H3] RT2012 / RE2020 indicators (climate zone)
optimize Comfort-first tune of fields marked Tune in BuildingData
irise / irise <id> to <zone> List / attach IRISE PELEC (install DB with dataload 15499551)
zones List storeys / sub-zones (area, volume, outdoor_sides)
zones edit/new/delete <floor> Shape designer (+ ZonesData after export) / delete+edit / remove partition
zones copy <ref> <f1> [<f2>…] Copy partition from <ref> onto each target floor
zones data <zone_name> Edit a single zone form
zones lock / lock Domain lock for zones / building subcommands

Variation (building variation … [--quick] [--keep] [--max-jobs N] [--max-workers M]):
heat_recovery · air_renewal · *_heating_setpoint · *_cooling_setpoint · solar_factor · z_rotation · insulation
glazing_ratio [side <n>] [floor <m>] · solar_protection side <n>

wall_contacts: façade strip(s) not outdoor-exposed — {"side_id", "temperature_C", "n_floors"}.
temperature_C = float → fixed outer temperature (party wall); null / None → adiabatic.

HVAC_controlled: building default (True/False); zones may override in ZonesData / ZoneData (False → no heating/cooling capacity).

Occupancy occupancy_rate_setup_string (building / zone form): lowercase = weekdays (a–d), uppercase = weekends (A–D), then optional absences (DD/MM->DD/MM). Several letters → average of rates. Rate ∈ [0, 1]; headcount = rate × area × density/100. Example: abABCC(25/12->7/1)(15/7->15/8).

Letter Meaning
a / A Always present (home)
b / B Always empty (out)
c Weekday: home except office hours (~08–17 out; nights home)
d Weekday: present during office hours (lunch dip at noon)
C Weekend: Saturday home, Sunday out
D Weekend: Saturday out, Sunday home

If only weekdays are given, weekends default to B; if only weekends, weekdays default to b. Absences force rate 0.

PV domain — pv …

Command preceded by pv Action
Summarize PVplantData
new / edit GUI create / modify (Tune for optimize)
load / save <path> Load / save .pv
delete [<path>] · dir Forget session / list .pv files
3d · heliodon · best angles Geometry / sun / orientation search
simulate · results · plot · vars Yield → PV:power_W
optimize Max yield or match PELEC (after building sim)
balance Day×month heatmap PV − PELEC
enercost [base\|hp_hc] [--base/--hp/--hc/--export €] Bill from PELEC + PV
lock Domain lock: bare simulate → pv simulate

Shape Designer

Two windows: plot (matplotlib plan, +X east / +Y north) + console (typed commands).
Left-click the plot → same as point x y (mm rounding; ignored while zoom/pan toolbar is active).
Axes: origin (0,0) is always created at start (except when a footprint is preloaded).

Modes (how you open them)

Mode Prompt Opened from Role Export
lot-masks lot-masks > ContextData → side_masks → Design Empty site: define lot + distant side masks export (no args) → lot ring + masks → Context UI
footprint footprint > BuildingData → footprint → Designer Draw building outline; only origin at start footprint <ids…> then export → outline
zones zones > After locking footprint, or building zones edit <floor> Partition locked outline into named rooms export → footprint + zones (+ ZonesData UI)
roof roof > BuildingData → roof_points → Design Footprint read-only; pick roof apexes roof <ids…> then export <z…> → (x,y,z) list

Read-only overlays: in footprint / zones / roof, context lot and side masks are drawn dashed ([ro]). Edit them only via context new / edit / delete (lot-masks Design).
OSM: in lot-masks, if Neighborhood1/2 LAT,LON are set, OpenStreetMap is shown and the view is locked to that box.
GPS: gps <LAT>,<LON> needs Context 0 LAT, LON reference (local x = east, y = north, metres).

Typical sequences: - Lot + masks: point/gps → lot id1 id2 id3 […] → mask idA idB height [name] → export - Building outline: build geometry → footprint id0 id1 id2 […] → export - Floor zones: (zones mode) build internals → zone Name id0 id1 id2 […] → export - Roof: build apex points → roof id0 id1 […] → export <z> or export z0 z1 …

Construction & query (most modes)

Command Action
point <x> <y> Create / reuse a construction point (also: left-click plot)
gps <LAT>,<LON> GPS → local (x,y) point (needs site reference)
position <id> Print (x, y) of a point
measure <id1> <id2> Distance between two points
angle <id1> <id2> <id3> Angle at id2 (degrees), path id1→id2→id3
split <id1> <id2> Midpoint between two points
direction <id1> <id2> Infinite construction line through two points
hline <id> / vline <id> Horizontal / vertical line through a point
aline <id> <angle_deg> Line through a point at angle from +X (east)
distance <id> <r> Construction circle (radius r) centred on a point
rotation <id1> <id2> <deg> Rotate direction id1→id2 around id1 by deg
translation <id1> <id2> dx\|dy … Parallel-translate a direction (dx/dy keywords)
label <id> <text> Text annotation next to a point
resize / resize xmin xmax ymin ymax Fit view to all points, or set axis limits

Intersections of lines/circles create new points automatically (clipped to the footprint once in zones mode).

Transform whole geometry

Command Mode Action
move dx <v> [dy <v>] footprint, lot-masks Translate all construction points
turn <angle_deg> footprint, lot-masks Rotate all points about (0,0)

Mode-specific geometry

Command Mode Action
footprint <id0> <id1> … footprint Lock outline (≥3 ids) → switch to zones
delete footprint zones Drop outline + zones → back to footprint
zone <name> <id1> <id2> <id3> … zones Named room polygon (≥3 vertices)
delete zone <name> zones Remove a named zone
lot <id1> <id2> <id3> […] lot-masks Closed building lot (≥3 summits; first id auto-appended)
delete lot lot-masks Clear the lot
mask <id1> <id2> <height> [name] lot-masks Vertical side mask between two points (height > 0)
delete mask <name> lot-masks Remove a side mask by name
roof <id0> <id1> … roof Select apex points for export
delete point <id> (most) Remove a construction point (if unused)

Session / files / leave

Command Action
clear Reset geometry (keeps mode; lot-masks clears masks/lot; roof keeps footprint; context overlays kept)
save <name> / load <name> ./data/<name>.mask | .footprint | .zones | .roof (mode suffix)
dir List mode files in ./data/
cd [path] / pwd Working directory
export Commit result and close both windows (see mode table; roof needs heights)
quit / exit Close without exporting

In-shell detail: help <topic> · Full docs: manual, batem/doc/Baterm_User_Manual.md