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

Reloading grids in Pre

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2003, 17:47
Default Reloading grids in Pre
  #1
Pascale Fonteijn
Guest
 
Posts: n/a
Hi All,

In Build 5.5.1, I frequently created grids, consisting of a hex and a tet/prism part. As consecutive cases were very similar, I found the following working order the most effective:1) copy the .db-file (with the combined grids) from case 1 to a new directory for case 2.
2) rename the directory from case 1.
3) open the .db-file (with the combined grids) for case 2.


Obviously Build gave an error as the grids were not found anymore. However, Build gave the opportunity to browse to the new .geo- and .def-file.
After that I only had to write out the definition file of the new combined grid and off I went.

In Pre, it doesn't seem to work that way. You can delete a grid (assembly) and reload a new one but all boundaries of the old grid stay right there and the new ones get an index '1'. Am I missing something?? How can this be done in Pre in the most effective way.

Pascale
  Reply With Quote

Old   July 7, 2003, 13:33
Default Re: Reloading grids in Pre
  #2
Robin
Guest
 
Posts: n/a
Hi Pascale,

You can continue doing this as you have been, but when you delete the assembly, also delete the corresponding composite 2D regions in the region editor. When you import your new grid, the regions will be re-created.

Alternatively, you can export your CCL from Pre and re-use it. Create a new model, import your new grid and then import your CCL. If the same naming conventions are followed, your boundary conditions will be re-applied. This is probably the best way to do what you are asking and is easily scriptable. The following commands will create a new CFX case file, load your grid(s), and load your CCL:

>load filename=D:/Demo/Axial_demo/Stator/Stator_from_ccl.cfx, mode=new
> update

>gtmImport filename=..., type=..., genOpt= -n, \
units=m, nameStrategy=Assembly
> update

>importccl filename=D:/Demo/Axial_demo/Stator/Stator.ccl, mode = append
> update

...

If you are continually setting up similar problems, select only the /FLOW:FLOW section of the CCL for export (this will export the entire flow section, so you don't have to select each item in the displayed list) and save it to the $CFX_ROOT/etc/5.6/Templates directory for convenience. If you have entered custom materials/reaction/CEL etc you should also export the appropriate CCL section.

This will create your own model library. When you create a new case, simply name it and select the Model Library option. If you follow a standard naming convention for your model, all you have to do is import your grid(s) and you are ready to go.

Best regards,
Robin
  Reply With Quote

Reply


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
[Other] OpenFOAM - structured or unstructured Grids ? thomasduerr OpenFOAM Meshing & Mesh Conversion 22 November 24, 2018 23:18
A question about dynamic overset grids JXIA Main CFD Forum 4 January 10, 2008 03:50
FVM: moving grids and cylindrical coordinates GR Main CFD Forum 2 February 24, 2002 14:36
UDF Face Fluxes & Partitioned Grids Greg Perkins FLUENT 0 April 6, 2001 01:50
Can I define grids motion as a time functions Darcy CFX 4 March 29, 2001 21:14


All times are GMT -4. The time now is 12:37.