casefoam.postFunctions¶
User postprocessing functions.
User function to manipulate the solution data ['x', 'y', 'z', 'values'].
The function must return a pandas.DataFrame and the function has to take
the parameters (caseComb, time, currentDataFrame, outputDf):
>>> def userFunction(caseComb, time, currentDataFrame):
t = time
minimum = currentDataFrame.iloc[:, 1].min()
mean = currentDataFrame.iloc[:, 1].mean()
maximum = currentDataFrame.iloc[:, 1].max()
df = pd.DataFrame(np.array([time, minimum, mean, maximum], ndmin=2),
columns=['time', 'min', 'mean', 'max'])
df = df.set_index('time')
return df
Functions
getFreeSurfaceWallAndCentre(caseComb, time, …) |
Return the max, min and mean of the given axis. |
getRadius(caseComb, time, currentDataFrame) |
Return the max, min and mean of the radius. |