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

Looping over variables within timestep

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2008, 15:10
Default Hi, I'm solving an electro-
  #1
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Hi,

I'm solving an electro-hydrodynamic problem with OpenFOAM. My solver is transient. To get a stable solution, I think I need to loop a couple of times over the variables WITHIN each time step, to get the non-linear coupling right.

1) Is correction loops within time steps as simple as it looks in the standard PISO solvers ? That is, just have another go at the equations, no extras? I'm not risking messing up the implicit time-stepping or something?

2) Does it make any sense to apply the features for underrelaxation (as used in steadystate solvers) also in a transient solver? Is this at all possible to combine?

Thanks for any advice,

Ola
olwi is offline   Reply With Quote

Old   February 28, 2008, 15:27
Default 1) Yes - just put a loop and k
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
1) Yes - just put a loop and keep it simple

2) Yes. Have a look at transientSimpleFoam on:

http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Core/Ope nFOAM-1.4.1-dev/applications/solvers/incompressible/transientSimpleFoam/transien tSimpleFoam.C?revision=53&view=markup

Beware, if you wish to use under-relaxation, you have to grab the reference field within the loop, using eg. p.storePrevIter();

Enjoy Ola, good to hear from you again,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 28, 2008, 16:07
Default Perfect, Hrv, this should do i
  #3
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Perfect, Hrv, this should do it...
Thanks for the info!

/Ola
olwi is offline   Reply With Quote

Reply


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
Help! Function not LOOPing xtrios FLUENT 2 July 17, 2008 15:44
looping rr123 FLUENT 1 July 8, 2008 17:49
Looping in UDF!!! safa FLUENT 0 December 11, 2007 08:07
Accessing Variables from Previous Timestep Vinayak Barve FLUENT 1 March 10, 2004 07:40
Looping over cells Karl FLUENT 4 March 26, 2002 21:18


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