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

Changing the grid... ( Hope this helps !!!!!)

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

Changing the grid... ( Hope this helps !!!!!)

Posted December 4, 2009 at 05:37 by calemarie

Handy for further use...

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.
Posted in Uncategorized
Views 3169 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 07:19.