Investigate writting a proper parser usable from Python for OpenFOAM input files
OpenFOAM input files are quite simple : https://www.openfoam.com/documentation/user-guide/2-openfoam-cases/2-2-basic-inputoutput-file-format
Writing a parser could be not too difficult and long (and @Pooriadf you could learn useful stuff).
You could spend some hours to investigate if we could write a parser for these files. I found this nice note https://tomassetti.me/parsing-in-python/ which could be useful for this task.
We should also investigate what is done in PyFOAM.
Please @Pooriadf summarize what you found in this issue and if needed in a page in doc/dev
. Then, we'll decide how we proceed.