Hungarian Journal of Industrial Chemistry, Vol.24, No.2, 117-130, 1996
Dynamic simulation by algorithmic generated structural models .2. Prolog implementation of the model generator
The proposed model generator represents a completely new approach in the dynamic simulation of process units in chemical engineering. Using this tool, instead of the manifold transformation of the model through the mathematical constructs and the numerical algorithm, the process unit is automatically mapped onto an executable Prolog program. Starting from the knowledge of the user-defined decomposition pattern and from the actual prototypes of the physical and chemical changes, the respective balance elements and elementary transitions are algorithmically generated in the form of properly classified PROLOG clauses. The calculation itself is simply carried out by the consecutive execution of the ranked elementary transitions. The user can communicate with the system either through a user-friendly interface or directly via the generating database. The core definitions of the generating and executing metainterpreter can be supplemented by the user defined prototypes of the given field. In the second part of the paper the Prolog implementation and the application of the model generator will be illustrated.