Tapio Lempinen , Lauri Mehtätalo , Annika Kangas , Tero Heinonen , Paulo Borges , Jari Vauhkonen
{"title":"A lightweight dataflow-based software framework for building forest simulators","authors":"Tapio Lempinen , Lauri Mehtätalo , Annika Kangas , Tero Heinonen , Paulo Borges , Jari Vauhkonen","doi":"10.1016/j.envsoft.2025.106661","DOIUrl":null,"url":null,"abstract":"<div><div>Simulators are critical tools for decision-making in forest management. We propose a dataflow-based model linking approach to increase the flexibility and modularity of forest simulator software while maintaining high computational efficiency. Our approach dynamically constructs a data model and model chains for simulation based on a model library, enabled treatments, and requested output variables. Models are framework- and language-independent pure functions, described through metadata in a domain-specific language. A case study with three model libraries demonstrates the applicability and efficiency of our approach. We observed a 96% speedup compared to an unoptimized real-world model implementation, while 95% of our code (measured by lines) was framework-independent and reusable. We observed a 15% slowdown compared to an optimized hand-written C implementation of a simpler model. We conclude that dataflow-based model linking can be used to build flexible and modular simulation software with a small runtime overhead.</div></div>","PeriodicalId":310,"journal":{"name":"Environmental Modelling & Software","volume":"194 ","pages":"Article 106661"},"PeriodicalIF":4.6000,"publicationDate":"2025-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Environmental Modelling & Software","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1364815225003457","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
Simulators are critical tools for decision-making in forest management. We propose a dataflow-based model linking approach to increase the flexibility and modularity of forest simulator software while maintaining high computational efficiency. Our approach dynamically constructs a data model and model chains for simulation based on a model library, enabled treatments, and requested output variables. Models are framework- and language-independent pure functions, described through metadata in a domain-specific language. A case study with three model libraries demonstrates the applicability and efficiency of our approach. We observed a 96% speedup compared to an unoptimized real-world model implementation, while 95% of our code (measured by lines) was framework-independent and reusable. We observed a 15% slowdown compared to an optimized hand-written C implementation of a simpler model. We conclude that dataflow-based model linking can be used to build flexible and modular simulation software with a small runtime overhead.
期刊介绍:
Environmental Modelling & Software publishes contributions, in the form of research articles, reviews and short communications, on recent advances in environmental modelling and/or software. The aim is to improve our capacity to represent, understand, predict or manage the behaviour of environmental systems at all practical scales, and to communicate those improvements to a wide scientific and professional audience.