Advanced Foreground Modeling
Advanced Foreground Modeling
The Antelope foreground implementation provides powerful extensions beyond the basic Foreground Interface for sophisticated LCA modeling. This enhanced implementation enables complex fragment-based modeling workflows that integrate seamlessly with background data sources.
Key Enhancements
The advanced foreground implementation extends the basic interface with:
Category | Capabilities | Key Methods |
---|---|---|
Fragment Discovery | Advanced search and navigation | frag() , frags() , fragments_with_flow() |
Process Integration | Convert processes to fragments | create_process_model() , extend_process() |
Advanced Operations | Fragment manipulation and restructuring | clone_fragment() , split_subfragment() , interpose() |
Scenario Management | Multi-scenario modeling | scenarios() , knobs() , enhanced observe() |
Balance Flows | Automatic mass/energy balancing | set_balance_flow() , balance fragment patterns |
Enhanced Modeling Workflow
The advanced foreground enables sophisticated modeling patterns:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 1. Create process model from background data
steel_model = query.create_process_model(steel_process)
# 2. Extend with detailed supply chain
query.extend_process(steel_model, include_elementary=True)
# 3. Create scenario variants
query.observe(energy_input, exchange_value=15.0, scenario='renewable')
query.observe(energy_input, exchange_value=25.0, scenario='fossil')
# 4. Model complex product systems
widget_model = query.new_fragment(widget_flow, 'Output')
steel_input = query.new_fragment(steel_flow, 'Input', parent=widget_model)
steel_input.terminate(steel_model) # Link to detailed steel model
# 5. Perform scenario analysis
for scenario in ['renewable', 'fossil']:
result = query.fragment_lcia(widget_model, gwp_quantity, scenario=scenario)
print(f"{scenario}: {result.total()} kg CO2-eq")
Core Concepts
Fragment Trees and Hierarchies
Advanced foreground modeling uses hierarchical fragment trees where:
- Reference fragments represent products or services
- Child fragments represent material/energy inputs and co-products
- Balance fragments enforce conservation constraints
- Subfragments enable modular, reusable model components
Process Model Integration
The implementation seamlessly converts background processes into foreground fragments:
- Automatic fragment creation from process inventories
- Intelligent termination linking to supply chain processes
- Preservation of process metadata and properties
Scenario-Aware Modeling
Enhanced scenario support enables:
- Parameter scenarios with different exchange values
- Termination scenarios with different supply sources
- Comparative analysis across scenario variants
- Sensitivity analysis using parameter knobs
Getting Started
- Fragment Discovery - Learn advanced search and navigation
- Process Models - Convert background data to fragments
- Advanced Operations - Master fragment manipulation
- Scenarios - Build multi-scenario models
- Balance Flows - Implement conservation constraints
Integration with Other Interfaces
The advanced foreground works seamlessly with other Antelope interfaces:
- Basic: Entity creation and property management
- Exchange: Process inventory integration via
create_process_model()
- Index: Process discovery for model building
- Quantity: Impact assessment with
fragment_lcia()
- Background: System-level inventory for process extension
- Configure: Data source tuning and optimization
Use Cases
Product System Modeling: Build hierarchical models of complex products with detailed supply chains
Scenario Analysis: Compare different technology choices, energy sources, or geographic regions
Sensitivity Analysis: Identify critical parameters using the “knobs” interface
Model Reuse: Create modular subfragments that can be shared across different product models
Data Integration: Seamlessly combine proprietary foreground data with public background databases
Next Steps
- Start with Fragment Discovery to understand navigation
- Learn Process Models for background integration
- Master Advanced Operations for complex modeling
- Explore Scenarios for comparative analysis