casefoam.loadData.positional_field

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

Load positionalField(surfaces and sets).

Loads a positionalField 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.

time : float

Point of time at which to load the field.

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.

Returns:
outputDf : pandas.DataFrame

pandas.DataFrame with solutions for all times.