Non-Dimensional Contour Plots

I would like to know how a Non-Dimensional Contour Plot(eg:P/P_0) can be obtained using Openfoam and visualised using Paraview. Please do help me by giving a suggestion to do so.

Thanks in Advance

OpenFOAM 23-10-20, 7:31 p.m. milinmartin397


You can try the 'scale' post-process functions in your contolDict file. This will write your non-dimensionalized p field for each write-time. You can refer to the link below for more details. https://www.openfoam.com/documentation/guides/latest/api/classFoam_1_1Function1Types_1_1Scale.html



23-10-20, 10:42 p.m. ashleymelvin

Thank you so much. I will try with this bit of information. Regards, Milin
23-10-20, 10:46 p.m. milinmartin397

You could try the "calculator" filter in ParaView if you already ran the simulation with the p field. Steps are: 1. Open case in ParaView. Use the "Plot over line" or "probe location" filter to identify data points. 2. Use calculator filter and in that, you can use "scalar p"/"p0". (where p0 is your constant) 3. Open spreadsheet view in ParaView. You will see an entry with the name "Result" that is your p/p0
24-10-20, 9:31 a.m. divyesh

Thank you. This seems like a more user friendly way.

24-10-20, 10:04 a.m. milinmartin397

Login to add comment

Log-in to answer to this question.