This repository has been archived on 2022-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
openfoam_project/post_process/animate/__main__.py

17 lines
428 B
Python
Raw Normal View History

2022-01-23 09:38:00 +01:00
import argparse
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=str,
2022-01-23 10:07:32 +01:00
default='config.ini',
help='Configuration file (default config.ini)')
2022-01-23 09:38:00 +01:00
args = parser.parse_args()
if args.var == 'alpha.water':
import alpha_water
alpha_water.animate(args.config)