Data for: Foundations of Programmable Process Structures for the unified modeling and simulation of agricultural and aquacultural systems
This supplementary material contains the input and output files of an illustrative simplified example about the biofilter of a Recirculation Aquaculture System, described in the Paper, entitled „Foundations of Programmable Process Structures for the unified modeling and simulation of agricultural and aquacultural systems”. In the files, we apply Prolog syntax, as defined in Syntax_Prolog_implementation.txt. The process network of the simplified example is defined in file Simplemod_N.pl. There are three coordinates ([inlet],[unit] and [outlet], containing 1-2-1 state elements and 1-3-0 transition elements, respectively. The initial conditions (concentrations, volumes) and parameters (kinetic coefficients, flow rates, limit concentrations, limit volumes) are described in a textual file (Simplemod_D.pl), derived through an MS Excel user interface. The general-purpose executable kernel of PPS generates the editable graphical model (Simplemod_G.graphml) from the • GraphML definition of the meta-prototypes, • the case specific process network (Simplemod _N.pl) and • process database (Simplemod_D.pl). files. Having generated the graphical model, the expert of the given field has to prepare the locally executable programs for the respective prototype elements, copied from the meta-prototypes. In the studied RAS related example, there are two state and three transition prototypes, as follows: State prototypes: • prot_vessel: calculates the intensive properties (concentrations) from the extensive quantities in the various vessels (for the calculation of state elements “in”, “rea” and “out”), • prot_action: determines the control interventions initiated by the control decisions (for the calculation of state element, named control); Transition prototypes: • prot_flow: determines the controlled event-driven transports for the calculation of transition elements “flow” between the various compartments, • prot_reaction: calculates (actually isothermal) reactions (for the transition element, named “reaction”), • prot_control: defines the measurement-based control decisions (by the transition element, named “control”). The locally executable programs of the prototypes are described in the Simplemod_G_prot.graphml file. The expert can edit the graphical model, necessarily. Afterwards, the second generating algorithm of the general purpose PPS kernel interprets the completed Simplemod_G.graphml file and prepares the dynamic databases of the simulation, namely: • Exp.pl that contains the state and transition prototypes, including the full declaration of their local programs described by the appropriate Prolog clauses; and • Use.pl that contains the description of the actual state, transition and connection elements, with their initial values and the parameters. The selected simulation results are saved in a file (it is Out.csv in our example). Also, the final state of the model (i.e. of the dynamic database Use.pl) is saved in FinalUse.pl.
Steps to reproduce
Executable of the simulator will be made available upon request.