CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Sinusoidal initialisation of initial holdup field.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2011, 09:29
Default Sinusoidal initialisation of initial holdup field.
  #1
Senior Member
 
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17
balkrishna is on a distinguished road
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.
balkrishna is offline   Reply With Quote

Old   December 13, 2011, 11:54
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Using setFields you have the boxToCell method for initialization. Did you try this one?
Bernhard is offline   Reply With Quote

Old   December 13, 2011, 14:20
Default
  #3
Senior Member
 
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17
balkrishna is on a distinguished road
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 ...
balkrishna is offline   Reply With Quote

Old   December 13, 2011, 16:16
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
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
Bernhard is offline   Reply With Quote

Old   December 13, 2011, 16:51
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Reply

Tags
initialisation, sinusoidal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 12:16


All times are GMT -4. The time now is 18:45.