Regions & compartments
A region is an area cut into one slab: a chamber, a reservoir, a well, a mixing cavity. It has no route and no ends, and a channel reaches it by landing on its wall.
Compartments
A region is made of one or more compartments. A simple chamber is a single compartment. You can divide a region into several by drawing a shape inside it or welded onto it (see below). You select, name and edit each compartment on its own. In the Body tab, a divided region lists its compartments under its own row.
A compartment is filled with either void or material:
- A void compartment is a pocket: the slab is carved away there and the fluid is in it. A pocket carries its own depth, wall profile and corner radii, so one region can hold a shallow antechamber beside a deep well, or a step in a chamber’s floor.
- A material compartment is a hole: the slab is left untouched there and the fluid is not in it. Use one for a post standing in a chamber, an island, or a wall between two halves of one shape.
Switching a compartment’s fill turns one into the other. A pocket switched to material becomes a hole and the slab closes over it, and a hole switched back is carved out again. A compartment that sits inside material cannot be switched to material, and the switch is refused. See Inspector for the fill control.
Nested shapes
Drawing inside a compartment produces its opposite. Inside a chamber you draw a hole, an island of slab standing in the void. Inside that hole you draw a pocket, a void carved into the island. You can go on nesting as deep as you need.
A pocket drawn inside a pocket is not separated from it. The two meet along their shared boundary and form one void that differs only in depth, so separating a void from the void around it takes a hole between them.
Curved walls
Every edge of a region’s outline can be bowed into a circular arc. There is no arc tool and no arc shape. To bow an edge, drag the handle that appears when you point at it, or type a number in the inspector. The bow is how far the edge’s middle sits off the straight line between its two vertices. A positive bow grows the compartment the edge belongs to, and a negative one shrinks it.
A circle is a region with four vertices, one at each of the compass points, whose four edges are each bowed to a quarter turn. You can move a vertex, re-bow an edge, weld to it, or nest a shape inside it, as with any other region.
A seam is one edge with a compartment on each side, so bowing it bows both. Nothing you can do to a seam opens a gap between the two.
The weld
Welding joins the shape you are drawing to one that is already there. Place a vertex on an existing wall and the two shapes share that boundary exactly, with no material between them. Two shapes drawn separately have their vertices a fraction apart, which leaves a thin wall between them.
A welded shape can take a run of the wall it welds to along with the boundary, which is how a corridor comes off a chamber. See Toolbar & tools for the clicks that decide how much of the wall comes along.
Seams and movement
A seam is the boundary two welded compartments share, and the app draws it as a hairline. It is the one part of a compartment’s outline that fluid crosses.
Welding also merges the shapes into one movable unit, so dragging a welded compartment brings its neighbours with it. A shape set inside another, such as a hole in a chamber or a pocket in a hole, is not welded to it and moves on its own.
Welding onto a region that is a separate child absorbs it. Its shape joins the one you drew, and it stops being a child of its own. Absorbing is refused where it would discard something you authored, such as a position bound to an expression or a label a pin sources, and the chip says which.
The compartment a thing belongs to
A thing belongs to the compartment it is placed in, and moving a region or a compartment moves what belongs to it. A pillar placed in a chamber belongs to that chamber, and so do a point placed inside it and a hole drawn in it.
A thing moved or copied into another compartment belongs to that one. A hole or a pocket moved onto bare slab, or pasted anywhere, becomes a region of its own. A compartment can refuse a thing, such as a solid area refusing a pillar. A refused thing keeps its old compartment, and the Problems list reports it as outside its host. See Viewport & navigation → The left-drag for how a drag shows and controls this.
Sockets
A socket is a compartment of a component that the component exposes to whoever places it.
In the component that places it, you can put components into that compartment as if it were one
of your own. A component that holds a chamber can expose it as a socket, and a design that places
the component fills the chamber with pillars. A placed component with no socket refuses a drop
inside it, and the chip reads it has no socket.
To expose a compartment, open the component, right-click the compartment’s row in the Body tab and choose Expose as socket. The socket is named after the compartment where it has a name, and after the region otherwise. The component’s sockets are listed on its Pins tab, where you rename one or remove it. A rename carries over to the designs that use the socket. Removing it is refused while one of them has something in it.
In the design that places the component, a socket is a row under the component in the Body tree, and the things in it are listed under that row. Drag a component into the socket’s area to put it there. A point cannot go into a socket, and a component that needs an open area cannot go into a socket that is material. A socket whose fill depends on the component’s parameters can turn to material for some values. What is in it is then left out of the chip, and Problems reports it.
Compartment removal
Deleting a compartment removes that piece of a divided region, or the whole region where it has only one compartment. What sits in the piece stays where it is and belongs to whatever is around it, so a pillar or a point in a deleted pocket is then in the chamber. Where the slab closes over the piece instead, what was in it is deleted with it. A channel that lands on the piece’s wall keeps its end, which becomes free.
Deleting a piece is also how you put a wall across a region at its top level, where a hole cannot go. Divide a chamber into three pockets and delete the middle one. The slab closes over it and separates the two ends. Inside a pocket, the wall can be a hole instead.
Compartment names
A compartment with no name of its own shows a derived one. A region that is not divided at its
top level reads region. Every other compartment reads pocket or hole with a number among its
siblings, such as hole 1, pocket 2, hole 3. The numbers follow position, so removing a
sibling renumbers the rest. Give a compartment a name where the label must not change.
Placement
The outermost compartment carries the region’s own pos, rot and layer, so moving the
region moves everything inside it. A nested compartment carries dx, dy and rot instead,
which move it within the shape that contains it. A nested compartment has no layer row, since
everything in one region is cut into one slab.
Regions in the network
Channels reach a region only through wall-bound points, and bores through points inside it (a well). A region with neither is a cavity in the slab that nothing flows into.
See also
- Channels & points — wall-bound points and how a channel breaks into a wall, and wells punched through a point inside a region.
- Inspector — the fill control, the compartment detail and the Body tree.
- Layers, stacks & processes — the slab a region is cut into.
- Fabrication overrides — the depth, walls and corner radii a pocket carries.
- Toolbar & tools — the Draw region gesture, the three shapes it draws, and the wall clicks a weld is made with.
- Viewport & navigation — the midpoint handle that bows an edge.
- Keyboard & mouse reference — the Draw region tool’s keys.