|
[Sponsors] |
March 15, 2013, 04:44 |
U, phi
|
#1 |
New Member
Aria
Join Date: Nov 2012
Posts: 5
Rep Power: 13 |
hi everybody,
I am solving concentration using diffusion equation and for the convection term I need the velocity (U) . but after 2 seconds, the velocity remains constant (steady) and solving it anymore is just wasting time. Does anyone know how can I read phi after 2 second and continue without solving U anymore? thanks |
|
March 15, 2013, 05:29 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
I don't know how important your start-up phase is (I assume it isn't important), but you can
*write a solver that first calculates the velocity field, and afterwards calculate the diffusion/convection. * update the present solver with an if( t>2 ) around the solution step for U * use a solver for flow first, then switch to a seperate solver for convection/diffusion. |
|
March 21, 2013, 15:32 |
|
#3 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15 |
A not so elegant but very fast way would be, to write a if statement around the #include "uEqn.H" or the code where you solve the momentum equation. You should also stopp solving the pressure correction.
This approch increases the computational work by one if statement every iteration, wouldn't be very flexible and only valid if U and p are constant after some time. But it is done within a minute. Greets Jim |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf() | santiagomarquezd | OpenFOAM Programming & Development | 33 | October 15, 2019 10:24 |
Recreation of phi file, icoFoam | Madeleine P. Vincent | OpenFOAM Running, Solving & CFD | 0 | May 7, 2012 11:17 |
Turbulence Model phi vs phi_ | doug | OpenFOAM Running, Solving & CFD | 4 | November 10, 2009 04:33 |
Another phi question | ehsan_vaghefi | OpenFOAM Running, Solving & CFD | 0 | October 24, 2008 19:56 |