Platform Modeling & Calculation Conventions
A complete reference to how TianGong LCA models calculate inventories and impacts: the eight core objects, linear scaling and demand summation, multi-product allocation with a worked example, matrix solving (I − A)x = y with feedback loops, Primary vs. Other Product Results, and the three model representations.
When you place processes on the TianGong LCA canvas, wire their exchanges, and click Save, the platform returns a solved life cycle inventory and 25 environmental impact indicators within seconds. How exactly does that math work? How are multi-product processes allocated? How do circular recycling loops converge? And how do Primary Product Results differ from Other Product Results?
This reference externalizes TianGong LCA's core modeling semantics and calculation rules in plain language with concrete worked examples.
At a Glance
- Product-demand linear scaling: Every process inventory is anchored to its quantitative reference quantity. Models turn your functional unit into final demand
y, solve(I − A)x = yacross all activities (including feedback loops), then compute elementary flowsg = Bxand impactsh = Cg.- Allocation happens before demand solving: Multi-product processes must declare explicit allocation rules before participating in demand equations; the engine never guesses shares for unallocated non-reference co-products.
- Exact calculation semantics: Source unit processes calculate from
meanAmount; LCIA uses the SHA-256-pinned 25-method static bundle under the non-regional default profile, matching exact(flow UUID, version, direction)—missing factors flag incomplete coverage while explicit finite zero factors remain valid zero.
1. Eight Core Objects in a Model
| Core object | Plain meaning | Everyday modeling example |
|---|---|---|
| Flow | An exchanged item with a unique UUID, version, and flow property | Ammonia, industrial electricity, CO₂ emitted to air |
| Process | An input/output inventory recorded at one reference scale | Inputs, energy, and emissions to produce 100 kg of a chemical |
| Process Instance | One specific occurrence of a versioned Process inside a Model | Two plant units on the canvas each referencing the same electricity process |
| Exchange | A single input or output row inside a Process | Input 50 kg feedstock; Output 100 kg product |
| Connection | Declares which upstream Process supplies a downstream input | Ammonia output of synthesis unit linked to ammonia input of fertilizer unit |
| Quantitative Reference | The product output or treatment input that defines process scale | Output 100 kg product, or waste-treatment Input 1 kg waste |
| Functional Unit | The final product or service and target quantity the study delivers | Deliver 1 tonne of specification-grade methanol |
| Activity Level | Total scaled activity required from a process to meet the functional unit | Scaling a 100 kg process by 100× to supply 10,000 kg |
Every process, flow, and reference carries an exact version; multiple instances of the same process on one canvas participate independently in calculation.
2. Linear Scaling, Demand Summation, and System Boundaries
1. How Process Scaling Works
Suppose a process inventory is defined per 100 kg product output (50 kg raw material input, 20 kg CO₂ emission). When a model needs 10,000 kg of that product:
Scaling factor = Required product quantity / Reference product quantity
= 10,000 / 100 = 100Every exchange scales proportionally by 100×: raw material becomes 5,000 kg and CO₂ becomes 2,000 kg.
2. Multiple Consumers and Canvas Linking Rules
- Canvas wiring rule: Each input flow of a process takes one explicit upstream provider on the canvas (wiring multiple providers directly raises
MULTIPLE_PROVIDERS; see Supply Linking & Market Mechanism and System Modelling FAQ). Conversely, one product output can feed multiple downstream consumers. - Additive demand: When a product supplies multiple downstream units and/or final demand directly:
Total supplied quantity = Demand from Consumer A + Demand from Consumer B + Direct final demand3. Final Demand, Intermediate Demand, Boundaries, and Waste Treatment
- Final vs. intermediate demand: If your functional unit is
500 kgof finished product,500 kgis final demand, while the ammonia, electricity, and freight required to manufacture it are intermediate demands. - System boundary: Connected internal deliveries cancel out in pairs. Unconnected technosphere exchanges remain as boundary inputs/outputs, while elementary flows remain as resource extractions and environmental emissions.
- Input-reference treatment processes: Waste treatment or recycling processes typically define their quantitative reference as an Input (e.g., receiving
1 kgof waste for treatment). Their energy use, emissions, and recovered materials scale with the treated quantity.
3. Multi-Product Processes and Allocation (Worked Example)
When one process delivers multiple products (such as P and Q), allocation specifies how much of each input and emission belongs to each product. With product reference output q_p, exchange amount b_e, and decimal share α_(e,p) (e.g., 80% = 0.8):
Unit exchange for product p = b_e × α_(e,p) / q_pTwo Supported Allocation Conventions
- Standard target-based per-exchange allocation (recommended):
- Every exchange carrying an allocation declaration must have shares summing to
100%(1.0); unlisted products receive0%. - Any exchange with no allocation declaration belongs
100%to the process's quantitative reference product, with0%to other products. - If the entire process has no allocation declarations at all, calculation supports only its quantitative reference; linking a non-reference co-product requires adding allocation in the source process first.
- Every exchange carrying an allocation declaration must have shares summing to
- Legacy uniform allocation (shares recorded on product outputs):
- When declared output shares sum to
100%, unlisted non-reference products receive0%(their unit inventory keeps only their own output with zero allocated inputs/emissions). - If non-reference outputs declare shares while the reference output omits one, declare the reference product's share explicitly (even if
0%) so all product shares sum to100%.
- When declared output shares sum to
Complete Worked Example: Co-Products P and Q (80% / 20% Split)
Suppose a process produces 100 kg of Product P and 20 kg of Product Q while consuming 50 kg of raw material and emitting 100 kg of CO₂, allocated 80% to P and 20% to Q:
| Allocated single-product inventory | Reference output | Raw material (b × α / q) | CO₂ emission (b × α / q) |
|---|---|---|---|
| Product P unit inventory | 1 kg P | 50 × 0.8 / 100 = 0.4 kg | 100 × 0.8 / 100 = 0.8 kg |
| Product Q unit inventory | 1 kg Q | 50 × 0.2 / 20 = 0.5 kg | 100 × 0.2 / 20 = 1.0 kg |
Under three different downstream demand combinations, the allocated inventories scale independently:
| Demand for P | Demand for Q | Total raw material | Total CO₂ emission |
|---|---|---|---|
100 kg | 10 kg | 100×0.4 + 10×0.5 = 45 kg | 100×0.8 + 10×1.0 = 90 kg |
100 kg | 20 kg | 100×0.4 + 20×0.5 = 50 kg | 100×0.8 + 20×1.0 = 100 kg |
100 kg | 30 kg | 100×0.4 + 30×0.5 = 55 kg | 100×0.8 + 30×1.0 = 110 kg |
Multifunctionality can also be resolved via subdivision or system expansion; the platform's demand equations assume input inventories already carry clear product attribution. For broader allocation theory, see the TianGong LCA Knowledge Base.
4. Matrix Solving, Circular Loops, and LCIA Calculation
1. Core Matrix Equations
With single-product activities normalized to 1 unit of reference output—activity vector x, technology matrix A, final-demand vector y, elementary-flow matrix B, and characterization-factor matrix C—calculation runs in three linear steps:
1. Solve activity levels: (I − A) x = y
2. Aggregate elementary flows: g = B x
3. Compute impact indicators: h = C g2. Circular Feedback Loop Example
Models containing internal reuse or mutual supply loops are solved simultaneously—no manual iteration needed. If producing 1 unit requires 0.2 units of the same product internally and final demand is y = 1:
x = 0.2 x + 1
0.8 x = 1
x = 1.25Total activity is 1.25 units: 0.25 units circulate internally and 1.0 unit satisfies final demand. Disconnected activities not required by the functional unit receive activity 0.
3. Numeric Basis and LCIA Matching Rules
- Exchange amount used: Ordinary source processes calculate from
meanAmount(resultingAmountstays as evidence; formally published Result Processes display their frozenresultingAmount). - 25-method static bundle & exact matching: Frontend and Worker share one SHA-256-verified 25-method static bundle (
lcia.static_cache_bundle.v1, non-regional default profile; see Database Overview). Factors match strictly on(method_id, method_version, flow_uuid, flow_version, direction)—never fuzzy names, and never summing regional alternatives. - Missing factor vs. explicit zero: An uncharacterized flow is flagged as incomplete coverage (never silent zero); an explicit finite
0factor remains a valid numeric0. Non-finite numbers or manifest hash mismatches refuse trusted numeric output (see LCIA Calculation & Results).
5. Primary Product Result vs. Other Product Results
After saving a Lifecycle Model, the Model Results view displays two sections—Primary Product and Other Products (see Generated Data & Release Artifacts and Save and Reuse Model Results):
- Primary Product Result (
primary): Matches the model's chosen reference process, reference exchange, and functional unit target; governs main model activity levels and instance scaling factors. - Other Product Results (
secondary): Covers every other eligible product in the model—intermediate products, boundary products, and standalone nodes—regardless of whether they link downstream. Each solves its own demand vector at its source reference quantity (including loops) without altering main-model scaling and without silently normalizing to1. - Allocated Unit Processes (
allocated): Internal calculation dependencies split from multi-product nodes; kept out of summary result lists. - Explicit unexpanded boundaries: Unexpanded external inputs remain on the boundary (results never imply full cradle-to-grave coverage). Moving a product from boundary to intermediate position preserves its result identity rather than deleting it.
6. Three Representations of a Model and Save/Review Discipline
In TIDAS and on the platform, every Lifecycle Model maintains three linked views:
| Representation | Storage carrier | What it holds | Purpose |
|---|---|---|---|
| Edit Graph | json_tg.xflow | Canvas node layout, raw process version links, manual connections, reference target | Visual authoring and editing |
| Computation Graph | Standard LifecycleModel dataset | Single-product processInstance references, supply links, @multiplicationFactor = x / q | Matrix calculation and standardized exchange |
| Result Inventory | Result Process (R(P)) | Aggregated inputs, emissions, and impacts for the functional unit | Inspection, comparison, and upstream reuse |
@multiplicationFactorexample: To supply100 kg, a referenced process withq = 1 kgcarries@multiplicationFactor = 100 / 1 = 100; a referenced process withq = 100 kgcarries@multiplicationFactor = 100 / 100 = 1. Both yield identical physical exchange amounts.
Ten-Step Calculation & Save Flow
1. Edit process nodes & links on canvas
→ 2. Set reference product & functional unit
→ 3. Load exact-version processes & flows
→ 4. Apply allocation to form single-product inventories
→ 5. Build technology matrix A & final-demand vector y
→ 6. Solve activity levels x (including feedback loops)
→ 7. Aggregate boundary & elementary flows g = B x
→ 8. Compute impacts h = C g across 25 static methods & check coverage
→ 9. Generate processInstance entries & @multiplicationFactor
→ 10. Persist model plus Primary & Other Product Result ProcessesFour Practical Authoring Rules
- Check validates current edits only: Submitting for review requires an explicit successful Save first—submission never saves or recalculates implicitly.
- Repair missing co-product allocations at the source: If diagnostics report an unallocated non-reference product, update allocation in the source process, point the model to the updated version, and re-save.
- Failed recalculations preserve prior saved results: Existing saved results remain intact until a new calculation succeeds and saves.
- Practice with the worked case study: Follow Partially Terminated System Modeling to see canvas linking and saving end to end.
Where to Go Next
- See how unlinked technosphere inputs route automatically in solver snapshots: Supply Linking & Market Mechanism
- Distinguish model save outputs, Calculation Bundles, and formal Release artifacts: Generated Data & Release Artifacts
- Look up TianGong, TIDAS, and cross-database terminology in one place: Core Terminology & Glossary
Data Production & Release Pipeline
An end-to-end guide to how TianGong LCA datasets move from literature collection, web/CLI/Foundry authoring, Data Check, and multi-role Data Review (0→20→100) through the data_product_manager Data Processing workspace and deterministic Release workflows.
Supply Linking & Market Mechanism
A complete guide to why TianGong LCA has no standalone ecoinvent-style market datasets, how the solver builds an implicit regional supply mix, worked numerical examples, materialized outputs vs. dynamic synthesis, diagnostics, and when to model explicitly.