import argparse
from pathlib import Path
parser = argparse.ArgumentParser(
description='Animate the results from OpenFoam'
)
parser.add_argument('var', type=str,
help='OpenFoam variable to display')
parser.add_argument('-c', '--config', type=Path, default='config.ini',
help='configuration file (default config.ini)')
parser.add_argument('-l', '--log-level', default='info', type=str,
help='log level')
args = parser.parse_args()
if args.var == 'alpha.water':
import alpha_water
alpha_water.animate(args.config, args.log_level)