Module 4 Exercise: Design & Build Mass Balance with Ledgers
Design a multi-ledger structure for Mangrove Biochar, create three batch types and three ledgers, configure allocations, and verify end-to-end mass balance.
Create 3 ledgers and configure allocations between them
Add test data across all stages and verify that mass balance holds
This exercise brings together everything from Module 4: you’ll design and build a multi-ledger mass balance system for Mangrove Biochar. By the end, material will flow from feedstock receipt through biochar production to carbon delivery — with ledger balances that reconcile at every stage.Prerequisites: Complete Lesson 4.1, Lesson 4.2, and Lesson 4.3. Your project should have the batch partitioning and LCA setup from the Module 3 exercise.
Feedstock consumed (dry tonnes) → biochar produced (biochar tonnes) using yield ratio
Biochar Production
Carbon Delivered
By delivery — each delivery draws from produced inventory
Biochar delivered (tonnes) → carbon sequestered (tCO2e) using carbon content % and CO2 conversion
The conversion factors are project-specific. For Mangrove Biochar, a typical yield ratio is ~30% (5 dry tonnes feedstock → 1.5 tonnes biochar) and carbon content is ~80% (1.5 tonnes biochar × 0.80 × 3.67 = 4.4 tCO2e).
If ledger balances don’t reconcile, check: (1) allocations are configured correctly between ledgers, (2) conversion factors match your test data, (3) each batch type credits the correct ledger.
You now have a complete multi-stage mass balance system. In Module 5: Integration Testing you’ll learn how to test your full project end-to-end — verifying that events, models, batches, ledgers, and reports all work together correctly.