CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   initila condition (https://www.cfd-online.com/Forums/fluent/84840-initila-condition.html)

hamid1 February 9, 2011 16:57

initila condition
 
Hello Everybody

My question is does different initial condition in steady and non steady flow lead to different result? how can one initialize in the best way?

thanks

Amir February 10, 2011 03:40

Hi hamid,
if you use enough iterations per time step in order to reach convergence criteria in both cases, your result will not be different. this is a valuable tip for steady cases in which convergency problems exist!

alastormoody11 February 11, 2011 03:44

Hi,

In steady cases initial conditions do not matter with regards to the final converged solution, however the closer your initial conditions are to the converged solution the lesser the number of iterations are required to reach the converged solution.

On the other hand in unsteady you need to know the initial conditons and if you give the wrong initial conditions, the solution goes awry because in an unsteady case the every time step is based on the solution of the preceding time step. So if you give wrong initial conditions your entire solution is wrong.

hamid1 February 11, 2011 18:01

thank you for reply,
so plz just imagine that I have an unsteady problems, if first I solve it in steady mode (with arbitrary I.C.) until it converge and then shifting to Unsteady mode, then in this situation with any i.c. i will reach to the correct result in unsteady?

Amir February 12, 2011 09:03

Hamid,
if you solve steady case and then shift to unsteady solver, the results of converged steady solution will be your I.C. for unsteady ones! if you set another I.C. here by initializing or patching, your steady data will vanish!

hamid1 February 12, 2011 16:02

yeah, exactly.. i meant as you said kindly, i.e. with any i.c. (arbitrary), solving the problem first in steady mode and leading to a well converged result then using the result as i.c. for unsteady problem will lead to a correct solution...
but I did it for one of my problems as follow: there are two pipes attached to each other in the way that there are three openings, say opening 1,2 and 3, all three openings are supposed to be out let pressure, opening 1= 13300pa, opening2=13300 and opening 3(suction)= -100000 pa, for initialization first I made a mass balance between opening 3 and 2 and in other time I made a mass balance between opening 3 and opening 1&2, but the results are totally different ??
any clues or hint will diffidently help me, thanks

Amir February 13, 2011 07:43

Hi Hamid,
would you explain your time varying parameters and also physical I.C. in your cases?

hamid1 February 13, 2011 13:42

Hi Amir,
thanks for reply, then would u forward me ur email add I will send u the pics of b.c and IC by attachment

Amir February 14, 2011 04:14

Hi,
your pictures recieved.
as I understood, non of your parameters vary with time e.g. p=p(t) or ,... are they?
in these cases you just have a steady problem that converge to result from an initial guess that depend on schemes that you used.

hamid1 February 14, 2011 05:11

thanks for reply, actually there are two phases (red and blue in which red has higher viscosity and density), by implementing the intake opening(3), the fluid moves and the idea is to absorb the red phase inside the opening 3, I think there is an unsteady problem, as u can see in one case the trend is red phase absorbing through opening 3 and in the other case (with other i.c.) the red phase is going to way out from another opening, plz kindly let me know what do u think then,

Amir February 14, 2011 11:17

Hamid,
if you want to see final phase positions, it's steady problem. but if you want to trace phase changing from specific initial phase positions then u should use unsteady solver and using steady solution here is not reasonable.

hamid1 February 14, 2011 11:51

thanks, yes I want to see the movement of the second phase (red one) so it would be unsteady, but for i.c. could it influence my result, why I have different result for case 1 and case2 initialization? does solving in steady first and then using the result as new i.c. for unsteady solve my problem, i mean the steady solution works like a filter which whatever is my first i.c. , the coming out results is a good i.c. for unsteady,
thanks again,

Amir February 14, 2011 15:33

Ok, notice that I.C. in unsteady cases is a part of your problem it's not a first guess! you don't have permission to set it by chance. as you said, you want to trace second phase from t=0 to desired time, it will absolutely depend on your I.C..
it would be surprising if you got same results with different I.Cs. !
if you trace second phase for long time and your case doesn't have any special features to be oscillated for example, your final phase position may be independent of I.C. ,here as I said before you can use steady solvers.

hamid1 February 16, 2011 05:27

But the i.c. is considered in all the domain in fluent, as far as I understand, so it would be kind of initial guess, is it right? then how can I find the exactly correct i.c.?
bests, hamid

Amir February 16, 2011 08:36

Right, I.C. is for whole domain but it's not a guess it's initial system condition e.g. at t=0. for unsteady problems I.C. should be given to you like boundary conditions. you can't find I.C. just like B.C.
you will get different results for different boundary condition just like I.C..


All times are GMT -4. The time now is 02:49.