casefoam.CaseFoamManipulator

class casefoam.CaseFoamManipulator(baseCase)[source]

OpenFOAM case based on a base case.

Generates a OpenFOAM case based on a base case and manipulate it.

Parameters:
baseCase : str

Directory of the base case.

Methods

loadParameter(self, parameterFile[, caseDir]) Load a parameter file.
updateParameter(self, parameter, parameterUpdate) Update content of a parameter.
updateString(self, caseStringFile, …) Update string in text file.