This function reads in a SWAP main file writes the parameters, vectors, and tables into csv format into the rswap directory. these can then be loaded using load_swap_parameters(), load_swap_tables() and load_swap_vectors()

parse_swap_file(project_path, swap_file = "swap.swp", verbose = F)

Arguments

project_path

path to project directory (string)

swap_file

optional swap main file name (string) defaults to "swap.swp"

verbose

print status? (flag)

Value

Returns paths to where the parameters, vectors, and tables are written

Details

Also, this parsing technique was designed to work with the SWAP example cases. If your SWAP main file structure does something different, you might run into trouble.

This function will be expanded to work with more SWAP input files like .dra