CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Changing the grid on the same set-up

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

Like Tree6Likes
  • 6 Post By Toulouser

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2007, 09:24
Default Changing the grid on the same set-up
  #1
Katya
Guest
 
Posts: n/a
Could anybody advise how to change the grid but safe the rest of setup? Thanks.
  Reply With Quote

Old   February 2, 2007, 03:31
Default Re: Changing the grid on the same set-up
  #2
Gernot
Guest
 
Posts: n/a
Hello Katya, in fluent you can write out the boundary conditions with the help of the text user interface (tui). You type :

file write-bc nameofbc

If you have a fluent file with different mesh or even different geometrie but the same names for the boundarys you write :

file read-bc nameofbc

After that all boundarys with the same name should have the same condition.

hope that helps.

P.S. hey kd whats up with you bad day ore just no education !?
  Reply With Quote

Old   February 2, 2007, 06:43
Default Re: Changing the grid on the same set-up
  #3
gurion
Guest
 
Posts: n/a
Hi Gernot

Are you sure about different geometry? If I'm not mistaken I saw on this board a statement to the contrary.

I have a question regarding the boundary conditions file, does it work with species transport and volumetric reactions as well?
  Reply With Quote

Old   February 2, 2007, 15:16
Default Re: Changing the grid on the same set-up
  #4
Allan Walsh
Guest
 
Posts: n/a
Yes, read/write-bc works with species transport and reactions.

The other feature that can be useful is the interpolation read/write. Say, for example, if the inlet boundaries are changed but the rest of domain is unchanged, the variables can be written to an interpolation file and then the file read back into the new mesh. This would not work that well if the geometry of the domain was completely changed.
  Reply With Quote

Old   February 3, 2007, 01:46
Default Re: Changing the grid... ( Hope this helps !!!!!)
  #5
Toulouser
Guest
 
Posts: n/a
================================================ Duplicating the Case Setup for Different Mesh =================================================

On many occasions, it is necessary to replace the grid while retaining all of the settings for the case. It can be tiresome to start by reading a new mesh file and then duplicating the case setup by specifying settings through the GUI . In addition, there is always a chance for making an error when specifying the new case file setup. FLUENT offers two methods that can be used to simplify this process. It is also possible to use the earlier converged solution as an initial guess for the new CFD run. Procedure Starting with the old Gambit database, or otherwise, generate a new mesh with the necessary modifications. Make sure that the names of the boundaries are identical with those in the existing FLUENT case. Method-1 1. Start FLUENT and read the old case file which will be duplicated. 2. Type the following scheme command in the FLUENT console window:
: (reread-grid "newmeshfilename") In place of newmeshfilename, enter the name of the .msh file to be used. For example, (reread-grid "fine.msh") Note: Do not miss the opening and closing parentheses, or the quotation marks before and after the name of the mesh file. It is also possible to read the mesh file in .gz form. 3. Save the case file and exit the FLUENT session. Method-2 1. Start FLUENT and read the case file which will be duplicated. Write a file called BC that contains all of the case setup information. This can be achieved by entering the following text user interface (TUI) command: file/write-bc/bcfilename In place of bcfilename, enter the name of the file to be written. For example, file/writebc/ setup.bc. For detailed information about TUI commands, please refer to TUI commands. 2. Start FLUENT again, read in the new mesh file, and enter the following command to read in the BC file: file/read-bc/bcfilename 3. Save the case file and exit the FLUENT session. Now, the case file with the new mesh is ready for iteration. 4. Start FLUENT and read the recently saved case file. 5. To initialize the case, or interpolate the results from an earlier simulation, do the following: (a) Read the earlier case and data file. (b) Write out an interpolation file using the FileÆ Interpolate menu. (c) Read the new case and interpolate the earlier results using the Read option in the File Æ Interpolate menu. The user has the freedom to select cell zones as well as the variables of interest while writing the interpolation file. For details about the interpolation process, please refer to: Interpolation steps Tips/Troubleshooting • The BC files can be version specific. Hence, it is highly recommended to use BC files only within a single version of FLUENT. For example, a BC file written with an older FLUENT version (say FLUENT 6.0.20) may not work with a newer version (FLUENT 6.2.16). • If the boundary zones do not have the exact same names as in the BC file, they may be ignored and set to default values during the case setup. In such a circumstance, manual settings will be required. • The name BC file is somewhat misleading. BC files record the entire case setup. In addition to the boundary condition settings, a BC file also contains information about solver settings, values for under relaxation factors, definitions of custom field functions, settings for the monitors to be applied, etc. • The grid will not be scaled by using any of the steps mentioned here. Hence, check grid scaling after using this prescribed approach for case setup. • Interpolating the results from an earlier case and data file may not always help with convergence. If the earlier results were not fully converged, or if they are highly unphysical, it is recommended to initialize the new case using standard procedures.

  Reply With Quote

Old   February 3, 2007, 10:31
Default Re: Changing the grid... ( Hope this helps !!!!!)
  #6
gurion
Guest
 
Posts: n/a
(reread-grid "newmeshfilename")? Where is the documentation on this? Anyway, I tried it and it looks like it is working, saved me manually re-typing 40 reactions with 19 species. Thank you for this most useful tip.

While on the subject of chemical species, do you know of a shortcut to export mixture reactions and species data from a case file to a propdb.scm file?
  Reply With Quote

Old   February 3, 2007, 20:20
Default Re: Changing the grid... ( Hope this helps !!!!!)
  #7
zxaar
Guest
 
Posts: n/a
I think you should put this in Wiki FAQs.
  Reply With Quote

Old   October 8, 2009, 17:31
Default Thank you!
  #8
New Member
 
Teymour
Join Date: Apr 2009
Location: Seattle
Posts: 25
Rep Power: 17
teymourj is on a distinguished road
Hi,

Just wanted to thank you for this detail reply. That helped me to initialize my new mesh with old data perfectly.

Thank you so much again and again!

_teymourj

Quote:
Originally Posted by Toulouser
;138829
================================================ Duplicating the Case Setup for Different Mesh =================================================

On many occasions, it is necessary to replace the grid while retaining all of the settings for the case. It can be tiresome to start by reading a new mesh file and then duplicating the case setup by specifying settings through the GUI . In addition, there is always a chance for making an error when specifying the new case file setup. FLUENT offers two methods that can be used to simplify this process. It is also possible to use the earlier converged solution as an initial guess for the new CFD run. Procedure Starting with the old Gambit database, or otherwise, generate a new mesh with the necessary modifications. Make sure that the names of the boundaries are identical with those in the existing FLUENT case. Method-1 1. Start FLUENT and read the old case file which will be duplicated. 2. Type the following scheme command in the FLUENT console window:
: (reread-grid "newmeshfilename") In place of newmeshfilename, enter the name of the .msh file to be used. For example, (reread-grid "fine.msh") Note: Do not miss the opening and closing parentheses, or the quotation marks before and after the name of the mesh file. It is also possible to read the mesh file in .gz form. 3. Save the case file and exit the FLUENT session. Method-2 1. Start FLUENT and read the case file which will be duplicated. Write a file called BC that contains all of the case setup information. This can be achieved by entering the following text user interface (TUI) command: file/write-bc/bcfilename In place of bcfilename, enter the name of the file to be written. For example, file/writebc/ setup.bc. For detailed information about TUI commands, please refer to TUI commands. 2. Start FLUENT again, read in the new mesh file, and enter the following command to read in the BC file: file/read-bc/bcfilename 3. Save the case file and exit the FLUENT session. Now, the case file with the new mesh is ready for iteration. 4. Start FLUENT and read the recently saved case file. 5. To initialize the case, or interpolate the results from an earlier simulation, do the following: (a) Read the earlier case and data file. (b) Write out an interpolation file using the FileÆ Interpolate menu. (c) Read the new case and interpolate the earlier results using the Read option in the File Æ Interpolate menu. The user has the freedom to select cell zones as well as the variables of interest while writing the interpolation file. For details about the interpolation process, please refer to: Interpolation steps Tips/Troubleshooting • The BC files can be version specific. Hence, it is highly recommended to use BC files only within a single version of FLUENT. For example, a BC file written with an older FLUENT version (say FLUENT 6.0.20) may not work with a newer version (FLUENT 6.2.16). • If the boundary zones do not have the exact same names as in the BC file, they may be ignored and set to default values during the case setup. In such a circumstance, manual settings will be required. • The name BC file is somewhat misleading. BC files record the entire case setup. In addition to the boundary condition settings, a BC file also contains information about solver settings, values for under relaxation factors, definitions of custom field functions, settings for the monitors to be applied, etc. • The grid will not be scaled by using any of the steps mentioned here. Hence, check grid scaling after using this prescribed approach for case setup. • Interpolating the results from an earlier case and data file may not always help with convergence. If the earlier results were not fully converged, or if they are highly unphysical, it is recommended to initialize the new case using standard procedures.
teymourj 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
On grid independent solution for pulsatile flow David FLUENT 5 March 25, 2022 04:33
MapFields to New Grid For Extreme Grid Deformations due to Body Motion albcem OpenFOAM 0 May 5, 2009 15:17
Installation problems indy OpenFOAM Installation 7 April 3, 2009 10:40
Help with GNUPlot Renato. Main CFD Forum 6 June 6, 2007 20:51
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 12:18


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