casefoam.loadData.time_series

casefoam.loadData.time_series(solutionDir, file, caseStructure=None, baseCase='.', columnNames=None)[source]

Load timeSeries(e.g probes, forces etc)

Loads a timeseries of a given case and save them into one pandas.DataFrame. multiple cases can be combined with the caseStructure argument

Parameters:
solutionDir : str

Solution directory in the OpenFOAM case postProcessing directory.

file : str

File name of the solution file.

caseStructure : list, optional

List of parent, child and grandchild names:

[[parent1, parent2],
 [child1, child2, child3],
 [grandchild1, grandchild2]]
baseCase : str, optional

Root directory of all cases.

columnNames : list, optional

List of columnNames.

Returns:
outputDf : pandas.DataFrame

pandas.DataFrame with solutions for all times.