PySysML2: Building Knowledge from Models with SysML v2 and Python
摘要
The systems engineering community is pushing toward the adoption of digital engineering to improve the design process and resultant systems across the life cycle. This shift depends on the ability to produce useful digital twins. Systems Modeling Language (SysML) version 1.x and its implementing tools do not contain truly open interfaces or otherwise enable data exchange in formats to integrate systems models with a variety of data analysis and simulation tools. Lacking data interoperability, SysML version 1.x models struggle to enable a systems engineering digital engineering vision. SysML v2 corrects many of these shortfalls with specification of a text-based language and a RESTful application programming interface (API). This chapter introduces PySysML2, a prototype software application to integrate SysML v2 models with the Python-based ecosystem of analysis tools. This work demonstrates the functionality and utility of PySysML2 by describing how to read into, manipulate within, and use SysML v2 models in a Python environment. Additionally, we demonstrate SysML v2 model serialization into a portable JSON (JavaScript Object Notation) format that supports interoperability with a wide range of commonly used data analysis tools. We close with a recommendation for continued open-source exploration of the pathfinder work presented in this chapter.