CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Plot interface (alpha_water=0.5) vs time in ParaFoam (https://www.cfd-online.com/Forums/paraview/166397-plot-interface-alpha_water-0-5-vs-time-parafoam.html)

block February 8, 2016 19:25

Plot interface (alpha_water=0.5) vs time in ParaFoam
 
1 Attachment(s)
Hi Foamers,

I would be grateful if someone can help me with plotting alpha.water value 0.5 over time, so far I only know how to view this for one time step through using the following steps on paraview:

1) make counter at alpha.water=0.5
2) then use filter pointdatatocelldata
3) then plot over line

and this shows the alpha vs height however i would like to see height for 0.5 alpha for all time steps in one graph.

The help will be extremely appreciated, i have attached a photo to help visualize the issue


Kind Regards

Rimsha

Attachment 45029.

kkk March 22, 2016 06:52

Hi

I don't know if the graph including 3 axis, coordX, height and time, can be described in paraview.
But it must be possible to output csv files including coordX and height at each time.
I think you can draw the 3d graph by matlab or matlab clones, octave or scilab.
Csv files can be easily imported by matlab clones.

Regards,
kkk

kkk March 23, 2016 05:08

3 Attachment(s)
Hi

I created a python script that output water height as csv file.
I attached test case too.
Please execute following after ./Allrun
Code:

pvpython waterHeight.py
It will out put waterHeight.csv with some png files.
createGraph.sce is scilab script. You can make graph of waterHeight.csv with it.
Just try it.

Regards,
kkk

prakashPra November 6, 2020 17:03

interface height along a slant wall
 
Quote:

Originally Posted by kkk (Post 591240)
Hi

I created a python script that output water height as csv file.
I attached test case too.
Please execute following after ./Allrun
Code:

pvpython waterHeight.py
It will out put waterHeight.csv with some png files.
createGraph.sce is scilab script. You can make graph of waterHeight.csv with it.
Just try it.

Regards,
kkk

Hello Kenyoh,
Thanks for sharing your test file.
I am doing capillary dominated flow in a V-shaped container where I need to obtain the contact line motion.
I was curious if if it is possible to obtain interface height along the slant wall using your files.
Thank you!


All times are GMT -4. The time now is 22:25.