|
[Sponsors] |
February 28, 2008, 15:10 |
Hi,
I'm solving an electro-
|
#1 |
Member
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17 |
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 |
|
February 28, 2008, 15:27 |
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 |
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 |
|
February 28, 2008, 16:07 |
Perfect, Hrv, this should do i
|
#3 |
Member
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17 |
Perfect, Hrv, this should do it...
Thanks for the info! /Ola |
|
|
|
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 |