.. _template-generation: Template Generation =================== Using the command ``rtc-tools-reservoir-template -d -n `` from the command line will create a directory `` with template files for a reservoir model called ``. The directory `` will be created in the current working directory and will contain a file structure as described above. The generated source file and data files are all template files that need to be completed by the user. File Structure -------------- The file structure looks as follows:: .py ├───input │ ├───(plot_table.csv) │ └───rtcDataConfig.xml │ └───rtcParameterConfig.xml │ └───timeseries_import.xml ├───lookup_tables │ ├───lookup_tables.csv │ ├───(.csv) │ ├───(.csv) │ └───(.csv) └───output The `` is the base directory that contains all files to run the model. It consists of the following files and folders. * `.py`: main model file that describes all the schemes for controlling the reservoir flow. * `input`: directory containing all parameters and external input data. * `plot_table.csv` (optional): file that describes how the output should be visualised. * `rtcParameterConfig.xml`: file that contains the model parameters. * `timeseries_import.xml`: file with all input timeseries and initial conditions. * `rtcDataConfig.xml`: file that contains the mappings for input/output timeseries (from FEWS) and internal model variables. * `lookup_tables`: directory that contains all data for lookup tables. * `lookup_tables.csv`: file that describes all lookup tables. * `***.csv`: data files that contain data for generating lookup tables.