Medlea

Docs /Engineering Workflow

Defining Zones

Zones are regions painted onto your geometry where fluid enters or exits the domain. Zones and boundaries are two separate objects: you paint a zone in the viewer, then create a boundary and attach the zone to it. This tutorial explains the painting workflow and the AI-assisted Auto-Zoning shortcut.

How Zones Work in LeaRes

ConceptMeaning
ZoneA set of surface cells you paint in the viewer, created with Add new zone (Alt+A)
BoundaryA named condition that references one zone and carries one or more typed properties
Wall (implicit)Every cell not in a zone — no painting required

Everything you do not paint is treated as wall automatically; there is no separate wall-painting step.

Tip: Before painting, identify where fluid should enter and where it should leave. Those openings become your zones; the rest of the surface stays wall.

Zone Definition

Painting Zones Manually

Step 1: Paint a Zone

  1. Expand Zoning tools in the viewer toolbar
  2. Pick a selection modesolid, face or cell — and a brush size
  3. Click Add new zone, or press Alt+A
  4. Hold ALT and click/drag on the geometry to add cells to the active zone
  5. Alt+Z / Alt+Y undo and redo; Backspace or Alt+C removes the current zone; Remove all zones clears everything

The current zone indicator in the toolbar shows which zone you are painting into.

Step 2: Create the Boundary

  1. Click + on the Boundaries container (Add new boundary)
  2. Name it, then pick your zone in the Associated zone dropdown

Step 3: Assign the Type

  1. Open the Boundary type dropdown — it reads Select until you choose
  2. Choose the type (for example Velocity Inlet or Pressure Outlet) and fill in its parameters
  3. Optionally click Add another property to stack a second condition on the same boundary

Note: The same nine base types are offered in every project — see Boundary Conditions: Types. Both Noslip Wall and Freeslip Wall are selectable; you only need them when a wall region must be named explicitly or made slip.

Step 4: Repeat for Each Opening

Add one boundary per opening. A simple pipe, for instance, needs one inlet boundary and one outlet boundary; the cylindrical surface in between stays wall without any action.

Next Steps

Continue to Auto-Zoning.