Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mangrovesystems.com/llms.txt

Use this file to discover all available pages before exploring further.

What you’ll build in this exercise:
  • Configure per-delivery batch partitioning to generate separate batches per delivery
  • Add Energy Consumption and Transportation event types for LCA data
  • Calculate process emissions and allocate them to individual batches
  • Verify net carbon output (gross - emissions) across multiple batches
This exercise brings together everything from Module 3: you’ll configure your Mangrove Biochar project to generate multiple batches from partitioned deliveries, then add LCA emissions that are allocated to each batch and deducted from gross carbon to compute net carbon removal. Prerequisites: Complete Lesson 3.1, Lesson 3.2, Lesson 3.3, and Lesson 3.4. Your project should have the 3 event types and multi-step model from Module 2.

Part 1: Design (30 min)

1. Choose a partition strategy

For Mangrove Biochar, decide:
  • Should batches be per-delivery or time-based (e.g., monthly)?
  • What does the Isometric methodology require?
  • What makes operational sense for 3-4 deliveries per week?
We recommend per-delivery partitioning — each delivery becomes its own batch with a tracking ID matching the delivery ticket number. This gives maximum traceability for verification.

2. Identify emission sources

Map the emission sources for Mangrove Biochar:
SourceCategoryData SourceCadence
Electricity for pyrolysisProcessMonthly utility billMonthly
Propane for heatingProcessMonthly supplier invoiceMonthly
Transport to application siteProcessPer-delivery trip logPer-delivery

3. Plan emissions allocation

EmissionMethodRationale
ElectricityProportional by massEnergy scales with throughput
PropaneProportional by massHeating scales with throughput
TransportDirect to delivery batchEach delivery has its own route

Part 2: Build in Mangrove (1.5 hrs)

Step 1: Configure batch partitioning

  1. Open your Mangrove Biochar project’s batch type configuration.
  2. Set the partition cadence to per-delivery (ID-based partitioning).
  3. Verify the batch type is linked to the correct ledger and model output.

Step 2: Add LCA event types

Add two new event types in Data Inputs > Input Settings:

Energy Consumption

DatapointSlugType
Electricity (kWh)electricity-kwhnumber
Propane (gallons)propane-gallonsnumber
Period startperiod-startdate
Period endperiod-enddate

Transportation

DatapointSlugType
Distance (km)distance-kmnumber
Fuel typefuel-typetext
Delivery IDdelivery-idtext

Step 3: Add emission factors as static inputs

Configure these as static inputs in the resource library:
FactorValueUnit
Grid emission factor0.417kg CO2e/kWh
Propane emission factor5.72kg CO2e/gallon
Diesel emission factor2.68kg CO2e/liter
Fuel consumption rate0.30L/km

Step 4: Build LCA calculations in the model

Expand your model in the Model Editor :
1

Electricity emissions

electricity_emissions = electricity_kwh × grid_emission_factor / 1000(Divide by 1000 to convert kg to tonnes)
2

Propane emissions

propane_emissions = propane_gallons × propane_emission_factor / 1000
3

Transport emissions

transport_emissions = distance_km × fuel_consumption_rate × diesel_emission_factor / 1000
4

Allocate shared emissions

Use the data_point_proportion operator to allocate electricity and propane emissions proportionally by biochar mass across batches.
5

Total allocated emissions per batch

batch_emissions = allocated_electricity + allocated_propane + transport_emissions
6

Net carbon per batch

net_carbon = gross_carbon - batch_emissions

Step 5: Create test data

Add events representing one month of operations: 4 Biochar Deliveries:
DeliveryDateMass (t)Carbon %
DEL-001Jan 5380%
DEL-002Jan 12578%
DEL-003Jan 19482%
DEL-004Jan 26279%
1 Energy Consumption event (January):
  • Electricity: 10,000 kWh
  • Propane: 500 gallons
4 Transportation events:
DeliveryDistance (km)
DEL-001150
DEL-002200
DEL-003180
DEL-004120

Step 6: Generate and verify batches

  1. Go to Production Accounting and generate batches for January.
  2. Verify that 4 separate batches are created (one per delivery).
  3. For each batch, check:
    • Gross carbon calculation matches expected values
    • Allocated emissions are proportional to mass
    • Transport emissions are directly assigned to the correct batch
    • Net carbon = gross - total emissions
If you see only 1 batch instead of 4, check that the partition cadence is set to per-delivery (ID-based) and that each delivery event has a unique tracking ID or date range.

Success criteria

You have completed the Module 3 exercise when:
  • Per-delivery partitioning configured — generating batches creates one batch per delivery event
  • 4 test deliveries created across different January dates, each generating its own batch
  • Energy Consumption and Transportation event types created with appropriate datapoints
  • Emission factors stored as static inputs in the resource library
  • Process emissions calculated correctly (electricity × factor, propane × factor, transport × factor)
  • Emissions allocated — electricity and propane proportionally by mass, transport directly to each batch
  • Net carbon = gross carbon - total allocated emissions for each batch
  • Allocation sums match — total allocated emissions across all batches equals the total period emissions

What’s next

You’re still using a single ledger. In Module 4: Mass Balance with Ledgers you’ll learn how to track material across multiple stages using ledgers and multiple batch types. After that, Module 5 will teach you how to run comprehensive integration tests on your complete project.