anisotropy/openfoam/miscellaneous.py
2021-05-26 17:18:39 +05:00

10 lines
248 B
Python

def foamDictionary(filepath: str, entry: str, value: str = None, case: str = None):
args = [filepath, "-entry", entry]
if value:
args.extend(["-set", value])
application("foamDictionary", *args, case = case, stderr = False)