CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to plot alpha vs time graph in multiphase solver of openFOAM (https://www.cfd-online.com/Forums/paraview/149263-how-plot-alpha-vs-time-graph-multiphase-solver-openfoam.html)

shipman March 1, 2015 08:58

How to plot alpha vs time graph in multiphase solver of openFOAM
 
Hi to everyone,

I am using interPhaseChangeFoam to simulate the phase cavitation inside the nozzle in OpenFOAM. I found out that To plot alpha vs time graph using foamCalcEx with volIntegrate is one way and i did it. But i would like to ask that does anyone know how to plot this graph directly inside paraview when i view the case?

Thanks in advance.

shipman March 3, 2015 00:38

Ok it is found...

If someone also wants learn the way how to plot please leave message here...

Thank you

gnut1989 April 15, 2015 05:11

Quote:

Originally Posted by shipman (Post 534089)
Ok it is found...

If someone also wants learn the way how to plot please leave message here...

Thank you

Hi Baris,

I want to learn the way which plot anpha with time you had already done. Could you please help me to do it?

Thank you and best regards,
Duong Tung

Noraa April 22, 2015 12:31

Hello Duong ,

I had the same problem just follow this link it will work:
http://www.cfd-online.com/Forums/ope...-paraview.html

good luck,

shipman April 24, 2015 01:27

Hi Duong,

Sorry again to late answer. As i said i am great busy with PhD thesis stuffs. As Noraa said that it is one way to get alhpa vs time. Another and simple way is to use foamCalcEx volIntegrate.

How to use this is explained here: https://openfoamwiki.net/index.php/Contrib_foamCalcEx

Hope this helps.

BR

Baris

DzhoniD June 10, 2015 11:57

Hi to everyone,

I have some problem with ploting over time. I'm using OpFm and Paraview over 3 months, but can't understand how using "plot variables over time" or "plot selection over time".
I'm solving "damBreak" problem by InterFoam solver, so i need to plot changing of "alpha1" over time in certain plane. For now i trying to use "sampleDict", but it write only the data in separate files, so this is not very convenient.
I can't using foamCalcEx, because my version of OpenFoam (OF-Ex 3.1) is not supported. And I read this topic http://www.cfd-online.com/Forums/ope...-paraview.html, but I see that my version of Paraview is 4.3.1...
Can someone explain to me in details how to use Paraview for solving my "stupid" problem?

P.S.: sorry for my english.
Thanks for all,
DzhoniD

Elham August 5, 2018 23:22

Quote:

Originally Posted by shipman (Post 543504)
Hi Duong,

Sorry again to late answer. As i said i am great busy with PhD thesis stuffs. As Noraa said that it is one way to get alhpa vs time. Another and simple way is to use foamCalcEx volIntegrate.

How to use this is explained here: https://openfoamwiki.net/index.php/Contrib_foamCalcEx

Hope this helps.

BR

Baris


Hi,

I have used foamCalc with different options. One of them is

Code:

foamCalcEx volIntegrate alpha.water -latestTime
but it seems that it calculates the 0 time even after specifying another time, like following:

Code:

Create time

Create mesh for time = 0

Time = 0
    Reading alpha.water
    Calculating volIntegrate(alpha.water): domainIntegrate(alpha.water) [0 3 0 0 0 0 0] 3.34545e-09

End

Does anyone knows the reason?

Cheers,

Elham


All times are GMT -4. The time now is 01:59.