fluidfoam.openfoamsimu

Class to load all data saved at timeStep of an openFoam simulation

class fluidfoam.openfoamsimu.OpenFoamSimu(path, simu=None, timeStep=None, structured=False)[source]

Class to load all data saved at timeStep of an openFoam simulation

Args:

path: str, reference path where simulations are stored.

You may want to provide path if all your simulations are located inside path and subfolders of path. You can do it by modifying in the __init__ path=’/path/to/the/simulations/’

simu: str, name of the simu that has to be loaded.

If simu=None, it will lists all existing simulation names in path and ask you to choose.

timeStep: str, timeStep to load. If None, load the last time step

structured: bool, true if the mesh is structured

OpenFoamSimu.keys()[source]

Print the name of all variables loaded from simulation results

OpenFoamSimu.readopenfoam(timeStep=None, structured=True)[source]

Reading SedFoam results Load the last time step saved of the simulation

Args:

timeStep : str or int, timeStep to load. If None, load the last time step

structured : bool, true if the mesh is structured

Classes

OpenFoamSimu(path[, simu, timeStep, structured])

Class to load all data saved at timeStep of an openFoam simulation

Exceptions

DirectorySimuError(simu)

Error