CFD Online URL
[Sponsors]
Home > Forums > FLUENT

Change BC during the run?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 6, 2003, 08:14
Default Change BC during the run?
  #1
jx
Guest
 
Posts: n/a
Hi, all,

Is it possible for me to use some kind of BC seetings to get an initial flow field after certain iterations, and then change the BC and continue the run untill converged?

For example, I use a guessed temperature level at a wall to get an initial solution, and then change the temperature condition for that wall to constant heat flux condition and hope to get the real solution.

I don't know how fluent saves case information, but I feel if I continue the iterations from previous saved .cas and .dat files, fluent always picks up the previous boundary condition seetings and does not take the newly modified BC.

How can I do this?

Thanks,

jx
  Reply With Quote

Old   November 6, 2003, 09:45
Default Re: Change BC during the run?
  #2
ap
Guest
 
Posts: n/a
If you want to change a BC during calculation, just stop it where you want, open the Boundary Conditions panel and set the new boundary condition. Save the case file and start the calculation again.

Hi

ap
  Reply With Quote

Old   November 6, 2003, 11:40
Default Re: Change BC during the run?
  #3
Ajay Rao
Guest
 
Posts: n/a
You could use a UDF , and while iterating you have a choice of updating your UDF after every iteration where in you could set the new coundary condition. You could check for the time and also apply it after a time step. Using UDF's allows this to be done. Regards, Ajay
  Reply With Quote

Old   November 6, 2003, 12:28
Default Re: Change BC during the run?
  #4
eric
Guest
 
Posts: n/a
Hi jx,

You say

"For example, I use a guessed temperature level at a wall to get an initial solution, and then change the temperature condition for that wall to constant heat flux condition and hope to get the real solution".

This seems like a good idea, does it work?

Eric
  Reply With Quote

Old   November 6, 2003, 12:30
Default Re: Change BC during the run?
  #5
David
Guest
 
Posts: n/a
hi,

all these comments are quite interesting!

Ajay, would it be possible to give us the UDF that would set the new boundary conditions with time?

thank you

regards

David
  Reply With Quote

Old   November 6, 2003, 17:49
Default Re: Change BC during the run?
  #6
jx
Guest
 
Posts: n/a
So the critical step here is to "save the case file" and then restart the calculations, right? I previously just didn't save the case file after changing BC settings.

I'll try what you said. Thanks, ap!

jx
  Reply With Quote

Old   November 6, 2003, 20:22
Default Re: Change BC during the run?
  #7
ap
Guest
 
Posts: n/a
Dear jx, to clarify, I'll do an example. Let's say I have a pipe: velocity inlet and outflow boudary conditions.

I run my calculation for a while, then I decide to change the outflow BC to a pressure outlet.

I stop the calculation where I need to, I open the Boundary condition panel, and then change the BC and set it's new parameters.

Saving the case file just allows me to have all calculated data before the change, but it doesn't affect the BC change. This way I can go back, if I did something wrong in the change, without starting the calculation from scratch.

However, if I don't save and immediatly start iterations after the change, FLUENT will immediatly use the new BC anyway.

Hi

ap
  Reply With Quote

Old   November 6, 2003, 21:45
Default Re: Change BC during the run?
  #8
Ajay Rao
Guest
 
Posts: n/a
define time ,T as global variable real time, told;

DEFINE_PROFILE(set_Temp,tf,nv)

{

begin_f_loop (face,tf)

{

if (time != told)

{

T = new_temperature;

told=time;

}

F_PROFILE(face,tf,nv)= T

}

end_f_loop (face,tf)

UDF is updated every iteration. First time when the UDF runs oldtime=0; time=0.0001 ( deltat=0.0001) since times are different T=new_temperature and is applied to all the faces of the boundary. nxt iteration UDF is updated but now both times are same , new_temperature is not calculated and thus the F_PROFILE applies the "old_temperature(calculated at previous time step )" .Thus temperature can be changed at every time interval.
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solid/liquid phase change fabian_roesler OpenFOAM 10 December 24, 2012 07:37
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 16:36
problems with LES run Tim CFX 1 February 27, 2006 08:28
no enthalpy change across the momentum source Atit Koonsrisuk CFX 2 December 19, 2005 03:33
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 06:43.