The Deck Builder is Kirra’s visual tool for designing charge columns. It provides a drag-and-drop interface for stacking explosive decks, stemming layers, spacers, and primers into a complete charge design. You can apply the design to individual holes or save it as a reusable rule.
There are several ways to open the Deck Builder:
Screenshot coming soon
The Deck Builder dialog has three main panels:
| Panel | Description |
|---|---|
| Product Palette (left) | Displays all loaded products. Drag a product onto the Section View to add a deck. |
| Section View (centre) | Interactive 2D cross-section of the hole showing all decks from collar to toe. Click to select a deck; drag deck boundaries to resize. |
| Formula Builder (right) | Drag-and-drop formula construction for setting deck lengths and primer positions. |
Select any deck in the Section View to edit its properties:
| Property | Description |
|---|---|
| Product | The explosive or stemming product (from your products database) |
| Length | Deck length in metres, or a formula, or a mass value |
| Scaling Mode | How the deck adapts when applied to different hole lengths |
| Swap Conditions | Optional product substitution rules for wet, damp, or reactive holes |
You can set the length of a deck in four ways:
| Method | How to Enter | Example |
|---|---|---|
| Fixed length | Type a number in metres | 3.5 |
| Formula | Type a formula starting with fx: |
fx:holeLength - 3.5 |
| Mass | Type m: followed by kilograms |
m:50 (50 kg) |
| Drag | Drag the deck boundary in the Section View | Visual resize |
Note: Dragging a deck boundary in the Section View overrides any formula on that deck. Use formulas for designs that need to adapt to different hole sizes.
Each deck has a scaling mode that controls how it behaves when applied to holes of different lengths:
| Mode | Badge | Behaviour |
|---|---|---|
| Proportional | (none) | Deck length scales proportionally with hole length (default) |
| Fixed Length | F (blue) | Deck keeps its exact length regardless of hole depth |
| Fixed Mass | M (orange) | Deck recalculates length to maintain the same explosive mass at different diameters |
| Variable | VR (green) | Formula is re-evaluated for each hole (set automatically for formula-based decks) |
The Formula Builder panel provides a drag-and-drop interface for creating deck length and primer depth formulas.
Drag or click these variable chips to insert them into the formula bar:
| Variable | Description |
|---|---|
holeLength |
Total hole length from collar to toe (metres) |
holeDiameter |
Hole diameter (millimetres) |
benchHeight |
Vertical distance from collar to grade (metres) |
subdrillLength |
Distance from grade to toe along the hole (metres) |
chargeBase |
Depth to the base of the deepest charge deck (metres) |
chargeTop |
Depth to the top of the deepest charge deck (metres) |
chargeLength |
Length of the deepest charge deck (metres) |
stemLength |
Depth to the top of the first charge deck (metres) |
deckBase[N] |
Base depth of any deck at position N (works for all deck types) |
deckTop[N] |
Top depth of any deck at position N |
deckLength[N] |
Length of any deck at position N |
Drag or click operator chips: +, -, *, /, (, ), ?, :, &&, ||, and comparison operators.
holeLength into the formula bar* operator0.3fx:holeLength * 0.3 with a preview like = 3.60 mPrimers are detonator assemblies positioned at specific depths within the charge column.
Primer depth formulas work the same as deck length formulas. Common patterns:
| Formula | What It Does |
|---|---|
fx:chargeBase - 0.3 |
Places the primer 0.3 m above the base of the deepest charge deck |
fx:deckBase[4] - 0.3 |
Places the primer 0.3 m above the deck at position 4 (any deck type) |
fx:holeLength * 0.95 |
Places the primer at 95% of hole depth |
For multi-deck configurations, you can add multiple primers targeting different decks. Each primer has its own depth formula:
fx:deckBase[8] - 0.3 (targets the bottom charge deck)fx:deckBase[4] - 0.3 (targets the upper charge deck)Each deck can carry swap rules that automatically substitute the product when certain hole conditions are met.
| Code | Condition | Example |
|---|---|---|
w |
Wet hole | Swap ANFO to water-resistant ANFO |
d |
Damp hole | Swap ANFO to emulsion |
r |
Reactive ground | Swap to a reactive-ground-safe product |
t |
Temperature threshold | Swap if borehole temperature exceeds a limit |
When a charge rule is applied to a hole:
Decks are ordered from collar (top) to toe (bottom) using a position number. The Section View displays this visually:
Collar (0 m)
+-------------------+
| Position 1 | Stemming (Inert, Fixed Length)
+-------------------+
| Position 2 | ANFO (Coupled, Formula)
+-------------------+
| Position 3 | Gas Bag (Spacer)
+-------------------+
| Position 4 | ANFO (Coupled, Fixed Length)
+-------------------+
| Position 5 | Stemming (Inert, Formula)
+-------------------+
Toe (hole length)
Position numbers do not need to be sequential — gaps are allowed. The engine sorts all decks by position number to determine the collar-to-toe order.
Saved rules can be applied to any selection of holes and are included when you export charge configurations.
Click Apply in the Deck Builder to save the charge design to the currently selected hole.
The Section View in the Deck Builder shows a live preview of the charge design, including:
As you change formulas or drag deck boundaries, the preview updates in real time.