Field average in Paraview
2 Attachment(s)
Hi All,
Recently I have been playing with field average in Paraview but I got some problems. Basically I am doing pipe flow simulation in OpenFOAM and I want to achieve both axial average and circumferential average. First thing is I want to get a 2D averaged slice to represent the 3D field, like compressing the pipe into a single plane. My idea is to get multiple slices and then take the average of them so that I can obtain a 2D plane (fig 1). Is there any way to do that in Paraview? Second is I want to get the mean velocity profile of the pipe. I created a calculator for radius (i.e. distances from the wall) and then applied contour based on the radius variable I created. By doing this I can get a circular slice at a specific radius every time. After that I applied integrate variable for the circular slice in order to get mean velocity at that radius. The thing is I need much data at different radius, so I need to integrate variable on different circular slices. However, when I use 'new range' to get multiple circular slices (fig 2) and apply integrate variable, I will only get one value for all the slices. My question is how can I get a list of integrated values for each sampled slice with creating all the slices at once? Hope anyone can give me a hint. Thank you very much. Kind regards, Tony |
Anyone has any hints?
Kind regards, Tony |
Greetings Tony,
I've finally managed to give a quick look into this and there isn't anything ready to be used out-of-the-box in ParaView for this. At least not that I'm aware of. The best I can figure out for the first problem, you'll have to do something like this:
For the second problem, you'll have to rely on using a custom filter:
Good luck! Best regards, Bruno |
Dear Bruno,
Thank you very much for the detailed information. I will have a go and see whether I can figure it out. Best regards, Tony |
Hello everyone,
I have simulated flow past a cylinder and now i want to get time average pressure and skin friction co-efficient in the entire flow domain for a certain time interval. What should i do? any suggestion is highly appreciated... Thanks and regards Subhankar |
1 Attachment(s)
I would like to add the suggestion given by Bruno. I did exactly the same as he said, except I used the 'postProcess' function 'surfaces' for generating the slices as a vtk file. Then I used them in paraview.
A rough idea would be. 1) Generate the vtk files of slices using the 'surfaces' post process functionality available in OpenFOAM. 2) Use 'Transform' function in paraview to rotate the datasets at different angles to the Theta = 0 degrees ( Z = 0 ) plane. 3) Use 'ResampleWithDataset' filter to sample the values of rotated dataset with the base dataset ( Theta = 0 ). 4) Average. This involves a lot of circus and so I am attaching here a pdf of the procedure. The process is hectic if you are taking slices for every 5 degrees. I would recommend anyone to automate this with the use of Python trace in paraview, Bash scripting and pvpython to run the python scripts generated by Python trace. Regards VIJAYA KUMAR. G PhD Research Scholar Dept. of Applied Mechanics IIT Madras Email: vjykmr44@gmail.com |
for circumferential averaged quantity
an example to get circumferential averaged stream-wise velocity of a jet
1. cut a slice parameters: - slice type: plane - slice origin and normal axis 2. cut a circular and plot circumferential averaged quantity using "plot over intersection curve' filter slice type: sphere - sphere origin: save as plane slice - sphere radius: user -defined value example x and y axis value - x : arch length - y: U_x see my personal blog link |
All times are GMT -4. The time now is 11:06. |