Ze Meng
← ZTools

Analyze

zAnalyzeSunlight

Outdoor direct sun hours on surfaces and building masses, pass line, report and Excel

zAnalyzeSunlight shows how much direct sun the outdoor surfaces of a site get: the ground of a plaza or courtyard, a facade, a roof. It counts the sunny hours of every sample point over one day, the four key days of the year, or a range of dates, colors the surface by that number, and gives the share of the area that reaches the hours you ask for, a report with an hour by month chart, and an Excel workbook. It looks at direct sun and shadows only (no sky light): use zAnalyzeDaylight for the inside of rooms and zAnalyzeShadow for hour by hour shadow pictures.

Good for:

  • Comparing which parts of a plaza, courtyard or roof garden are sunny for most of the day and which stay in shade.
  • Reading the sun hours of a facade or roof on the winter solstice, the summer solstice or the whole year, for solar panels or planting.
  • Finding how long a new volume keeps the neighboring site in shadow.

Quick start

  1. Run zAnalyzeSunlight, pick the faces, meshes or solids to analyze, and press Enter (Enter with nothing picked opens the window empty, and you add objects there).
  2. In the SITE tab check the latitude, longitude and time zone. A document with an Earth Anchor Point uses it; otherwise the last place you used is shown (Boston the first time).
  3. In the TIME tab choose the Mode (one day, the four key dates, or a date range), the hours, the step and Min Hours. The SURFACES tab holds the obstructions.
  4. In the OBJECTS table set the Cell size of each object, press Flip if the lit side is the wrong one, and press Compute.
  5. Look at the colored result in the viewport. The Metric bar at the top chooses what the colors show. The big number of the result card is the share of the object that reaches Min Hours. The Pass Line switch of the result card draws the boundary of that part in the viewport.
  6. Output opens the report (its Month by Hour card shows at which hours the object is in sun; for a run of up to 31 days it has a column per day, Day by Hour) or saves an Excel workbook or a CSV file, and Bake puts the colored result and the pass line into the model.
  7. Close the tool with the X.

Reset (lower left) or a right-click on the result card puts every setting back to its default.

The Metric bar

Both results come from one Compute; switching is instant.

  • Hours: the total hours of direct sun of each point over all the days (the sum).
  • Longest: the longest single stretch of sun in one day (the best day for a range), as some sunlight codes ask for an unbroken stretch.

The first and last sun of each point are computed too: they are columns of the Excel workbook and the CSV file.

OBJECTS

One row per object. The first row is the global row and acts on all objects.

  • Object: click to select a row (the result card and chart follow it), double-click to rename, Shift or Ctrl click to select several, drag the grip to reorder. The right-click menu has Rename, Delete, Bake, Select, Zoom to Objects, Select All, Invert Selection and Clear All.
  • + Add Object: pick more objects. A single surface is analyzed on its own. A building mass (a polysurface, an extrusion or a closed mesh) is analyzed on its whole envelope: every facade and the roof, each point facing out from its own face; the underside is left out. To analyze one face only, pick it with Ctrl+Shift+click (also for a face inside a block).
  • Cell: the side of one square cell in ft. Smaller is finer and slower.
  • Flip: turns the lit side of a single surface round. A nearly horizontal surface starts facing up, a wall facing outwards. A building mass has no side to flip, so its Flip is grey.
  • Compute: one object (row icon) or all (global row).

SITE

  • Latitude, Longitude, Time Zone: the zone is local standard time without daylight saving and follows the longitude until you change it.
  • EPW File (optional): Open loads a weather file and takes the place from it, Download opens the free EPW library in the browser, the broom button (Clear) removes it. Without a file the sun counts whenever it is up and not blocked (clear sky). With a file an hour counts only when its direct sun reaches Min Sun (120 W/m2 by default), so cloudy hours drop out.

SURFACES

  • Obstructions (one row): All uses every visible object of the document except the analyzed surfaces and this tool’s own results. Pick uses only the objects you pick (Enter with nothing picked means no obstruction, Esc goes back to All); click Pick again to pick again. The grey line under it says how many objects cast shadows. The pick is saved in the document.

TIME

  • Mode: Single Day, Key Dates (Mar 20, Jun 21, Sep 23 and Dec 21 of the year of Date) or Date Range (every day from Date to To, up to 366 days).
  • Hours: the daily window, default 8 to 18, local standard time.
  • Step: 15 min, 30 min (default) or 1 hour. Each sample counts for its own step. Finer steps find short gaps and take longer.
  • Min Hours (Pass Line): for Hours the total hours, for Longest one unbroken stretch. The result card and the pass line use it.

The result card

  • The big number: the share of the selected object that reaches Min Hours, with its average and the days.
  • The gradient bar and the switches below it (Map Result, Gradient, Blur Gradient, Grid Divisions, North Arrow) work as in the other analysis tools; the North Arrow is at the lower right of the viewport.
  • Pass Line (the sixth switch): draws the boundary of the part that reaches Min Hours in the viewport. Bake adds it as curves.

Output and Bake

  • Export Excel…: a workbook with Summary (one row per object), Settings (what the Compute was run with), Hour x Month, By day (runs up to 31 days) and Points (every sample point).
  • Report…: the shared analysis report window. One page per computed object, with a Metric switch (Hours, Longest). Cards: the headline, the colored plan, the Area Curve, Month by Hour (the share of the object in sun for every hour, per day or per month), By Object with the pass line, and Numbers. There are also a compare page and a summary page. Export as PNG or copy. It refreshes after each Compute and closes with the window.
  • Export CSV…: one row per sample point.
  • Bake: puts the colored result into the model on the zAnalyzeSunlight layer as a mesh, plus the pass line as curves when it is on. Baking an object again replaces its last result.

Remembered

Place, time zone, mode, dates, hours, step, Min Hours, EPW file, metric, switches and gradient are remembered. The obstruction pick is saved in the document. The object list is not remembered.

Good to know

  • A building mass shades itself: one wing of an L or U shape casts its shadow on the other. A single surface never shades itself.
  • A curved surface or face (a round facade, a vault) is sampled on the surface itself, each point with its own normal.
  • Trees are opaque. With Pick you can leave them out.
  • A single surface that turns away from the sun gets 0 hours: press Flip.