#!/usr/bin/env python

import sys

alpha_deg = sys.argv[1]

with open("system/fvOptions", "w") as f:
    with open("system/fvOptions.template") as template:
        txt = template.read()
    f.write(txt.format(alpha_deg=alpha_deg))

#!/usr/bin/env python

import sys

if len(sys.argv) > 1:
    alpha_deg = sys.argv[1]
else:
    alpha_deg = 4.0

with open("system/fvOptions", "w") as f:
    with open("system/fvOptions.template") as template:
        txt = template.read()
    f.write(txt.format(alpha_deg=alpha_deg))

Add a default angle of attack
Add a default angle of attack
