CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Changing inlet conditions without starting again

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2011, 10:31
Default Changing inlet conditions without starting again
  #1
New Member
 
Join Date: Mar 2011
Posts: 2
Rep Power: 0
Conflate is on a distinguished road
Hi,

I've ran a simulation for about 24 hours and I'd like to now change the inlet velocity slightly.

Is there a way to copy the internal fields from the old case but use the inlet conditions from "0" in the new case? It would speed up the convergence considerably.

I've tried using mapFields but it seems to always use the inlet velocity from the old case, and none of the pyFoam tools seem to be suitable.

In Ansys CFX I could tell the solver to initialize from a results file but it would take all the boundary conditions from the new case, that's exactly what I'm trying to do here.

Thanks,

Mitchell
Conflate is offline   Reply With Quote

Old   April 1, 2011, 04:02
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by Conflate View Post
Hi,

I've ran a simulation for about 24 hours and I'd like to now change the inlet velocity slightly.

Is there a way to copy the internal fields from the old case but use the inlet conditions from "0" in the new case? It would speed up the convergence considerably.

I've tried using mapFields but it seems to always use the inlet velocity from the old case, and none of the pyFoam tools seem to be suitable.
Boundary conditions are specified in the boundaryField dictionary also in the results of you run. If you saved in ASCII format, you can simply copy/paste the corresponding boundary condition.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   April 1, 2011, 08:29
Default
  #3
New Member
 
Join Date: Mar 2011
Posts: 2
Rep Power: 0
Conflate is on a distinguished road
Thanks a lot, I was also having problems opening the results files but I changed the output format to ascii in controlDict, ran a couple more iterations, and now I can change the boundaryFields like you suggested.

Cheers,

Mitchell
Conflate is offline   Reply With Quote

Old   April 25, 2022, 09:19
Default
  #4
Member
 
Gabriel Felix
Join Date: May 2021
Location: Brazil
Posts: 34
Rep Power: 5
gabrielfelix is on a distinguished road
Quote:
Originally Posted by alberto View Post
Boundary conditions are specified in the boundaryField dictionary also in the results of you run. If you saved in ASCII format, you can simply copy/paste the corresponding boundary condition.

Best,
Thanks! It helped a lot. That is precisely would its needed to do. For those who dont know boundaryField is a field inside the files 0/U, 0/p, 0/nut for exemple in which there are the boundary conditions of each patch in your mesh such as: inlet, wall, outlet, etc.

I recommend editing those files with nano or vi. Just search for the patch you want (e.g inlet) and change the values.
gabrielfelix is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Velocity inlet boundary conditions abm FLUENT 16 October 18, 2014 09:52
How to set pulsating inlet boundary conditions with a very high frequency Ton CFX 10 March 22, 2012 17:57
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
inlet boundary conditions species transport richard FLUENT 2 August 20, 2008 08:25
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


All times are GMT -4. The time now is 08:10.