jeeemieee
05/12/2025, 6:01 PMos or subprocess packages to run the solver and retrieve your data with the fluidfoam package after it's done (in my experience that one is the fastest)
Modifications of the solver files (if needed) can be done using the pyfoam or foamlib packages.
I also agree with @qr; a flow chart of the program you're trying to make will definitely help here.