CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Sinusoidal initialisation of initial holdup field. (https://www.cfd-online.com/Forums/openfoam/95313-sinusoidal-initialisation-initial-holdup-field.html)

balkrishna December 13, 2011 08:29

Sinusoidal initialisation of initial holdup field.
 
Hi,

I am using VOF to simulate a 2d case of bubble rising in a liquid. I wish to initialise the gas holdup field in a sinusoidal manner. Precisely ,
Code:

If y < Y
alpha =1

Else
alpha =0

Is there any way to do this using setFields ?

Thanks,
Balkrishna.

Bernhard December 13, 2011 10:54

Using setFields you have the boxToCell method for initialization. Did you try this one?

balkrishna December 13, 2011 13:20

Yes , but i think that allows one to give only initialisations in the form of quadrilaterals ... thats why the name BOXtoCell . Pls correct me if I am wrong ...

Bernhard December 13, 2011 15:16

Ok, I misread your pseudocode, but I am quite sure you can do this with funkySetFields of the swak4Foam utility: http://openfoamwiki.net/index.php/Contrib/swak4Foam

ngj December 13, 2011 15:51

Hi Balkrishna

You would also be able to do it with the waves2Foam utility found in

http://openfoamwiki.net/index.php/Contrib/waves2Foam

If you need a sinusoidal interface with a quiescent fluid, then you could initialise the computational domain with a 'stokesFirstStanding' type wave. However, it might be more easily merely to use swak4Foam.

Kind regards,

Niels


All times are GMT -4. The time now is 20:43.