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 Thanks, Balkrishna. |
Using setFields you have the boxToCell method for initialization. Did you try this one?
|
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 ...
|
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
|
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. |