A non-transitory computer-readable storage medium encoded with commands which, when executed by a processor of a computer, cause the computer to generate simulation models for a digital twin of a process in a process-based production plant for a product, the commands comprising:
- a) program code for receiving process flow design data of the process of the production plant;
- b) program code for generating a steady-state flow-driven simulation model of the process from the process flow design data;
- c) program code for generating a steady-state pressure-driven simulation model of the process from the steady-state flow-driven simulation model;
- d) program code for receiving piping and instrumentation design data;
- and
- e) program code for generating a dynamic pressure-driven simulation model of the process from the steady-state pressure-driven simulation model and the piping and instrumentation design data, the dynamic pressure-driven simulation model including sensors and actuators of control loops of the process-based production plant;
- wherein each simulation model determines measurable state variables of the production plant as a function of material flows of liquid or gaseous feedstocks and as a function of operating media supplied to the process-based production plant;
- and
- wherein model data is generated by each simulation model and stored in a data memory such that the model data is readable from the data memory by simulation software and each simulation model is executable based on the read model data.