(1) For surface grids with complex topologies, most grids need to be custom made and are difficult to automate their creation. In such cases, the user provides a script or program that will generate the surface grid and OVERFLOW input file for each grid. Work is being conducted to try and automate this step, but in the meantime there are tools available to assist the user with this step (e.g. see the scripts example).
(2) A complex configuration may also be decomposed into a larger number of surface grids with simple topologies (e.g. free floating or constant plane at the boundaries). Such systems may be created from a user interface such as OVERGRID or from a single run of a hyperbolic/TFI grid generator such as SURGRD. In these cases, the user enters the script system with a surface grid file in PLOT3D multiple grid format. The PreVol script is run which automatically determines the surface topology (assuming all solid walls are located at L=1) and generates the OVERFLOW input files, config.tcl and inputs.tcl files. The user has the option to further edit these files if special inputs are needed beyond the defaults.
setenv SCRIPTLIB $HOME/chimera/scriptlib where the above path matches the location of your chimera directory. Use "echo $SCRIPTLIB" to test for the correct assignment. This is necessary for seamless access to the library of routines in this directory.
set path = ( $path $HOME/chimera/bin ) in your .cshrc file. Use "which BuildSurf" to verify your path is correct. This allows access to the executable scripts in this directory.
For starting option (1), a number of subdirectories can exist where each subdirectory should contain a Makefile that defines the process for creating one or more surface grid files, and an accompanying boundary condition file. This process maybe nothing more than reformatting an input grid, or it might be a complex script system which generates the surface grids using the tools found in the Chimera Grid Tools package. For each grid, a rootname is used to identify the grid, and filenames for that grid consist of the rootname followed by a suffix that defines the contents of the file. See the Naming Convention for definitions of the file suffixes. More than one component or grid can reside in any subdirectory, as long as there is a rule in the Makefile for creating all the necessary surface grids and boundary condition files.
For starting option (2), just one subdirectory is needed which should contain the surface grid file. Since this option usually involves a larger number of grids that are similar in topology, the root names are automatically generated by the PreVol script. Note that PreVol assumes that all solid walls are located at L=1.
The boundary condition file is merely the set of NAMELISTS for an OVERFLOW input file that are associated with one grid. Each grid must have its own boundary condition input file; these input files are identified with the file suffix of .ovfi. In addition to the standard OVERFLOW NAMELISTs for a grid, the .ovfi file should contain a comment line which defines the family name for each boundary surface that covers a wall, if the particular grid contains a wall. For starting option (1), the user-provided surface grid creation scripts should generate the .ovfi files. For starting option (2), these files are automatically created by PreVol.
The following suffix convention is then used for each grid:
.fmt initial surface grid in a formatted file type
.def surface grid definition from CAD or other data
.srf surface grid in final form
.vol volume grid
.hypi HYPGEN input file
.ovfi OVERFLOW input file
.legi LEGRID input file
.pwk surface grid with a wake cut added on
.com PLOT3D command file
.tcl Tcl language scripts or input files
.mvlog Log file from makevol (for diagnostics)
.bvinp history file to record parameter settings. Used
when re-running BuildVol to see if a grid needs updating.
The scripts in chimera/bin are named such that all scripts beginning with a capital letter are meant for use in this configuraton building procedure, whereas there are other miscellaneous scripts (e.g. makevol, intersect, etc.) that will probably not be accessed directly by the user at this level.
Once a PEGSUS/PEGASUS input file is complete the user can start PEGSUS/PEGASUS via RunPeg/RunPeg5. See the output from 'RunPeg -help' for the options available for using this script. After successful completion, there will exist a grid.in, XINTOUT, and OVERFLOW input files. The user may want to first run MIXSUR (using the above-mentioned mixsur.i), and then can start the OVERFLOW run. This is meant as just a brief overview of how these tools can be run, and how a user might best go about utilizing some of the tools in CGT.
set default(xxxx) "value1 [value2 ... valueN]"
set MESH(xxxx) "value1 [value2 ... valueN]"
The first form changes the default value of the parameter which will be used by all grids. The second form is used by substituting the word MESH with the root name of the individual grid for which the parameter is to be changed.
| Parameter | Description | Default Value |
|---|---|---|
| set MESH(zreg) z | Wall-spacing used in volume grid generation. | 0.5 |
| set MESH(izstrt ) i | HYPGEN input variable izstr: selects stretching, 1 for exponential, 2 for hyperbolic | 2 |
| set MESH(npzreg ) n | HYPGEN input variable npzreg: number of points in l-direction | 49 |
| set MESH(dz0 ) z | HYPGEN input variable dz0: initial spacing | 0.001 |
| set MESH(dz1 ) z | HYPGEN input variable dz1: final spacing | 0.1 |
| set MESH(ibcja ) i | HYPGEN input variable ibcja: boundary condition for j=1 | -1 |
| set MESH(ibcjb ) i | HYPGEN input variable ibcjb: boundary condition for j=jmax | -1 |
| set MESH(ibcka ) i | HYPGEN input variable ibcka: boundary condition for k=1 | -1 |
| set MESH(ibckb) i | HYPGEN input variable ibckb: boundary condition for k=kmax | -1 |
| set MESH(imeth ) i | HYPGEN input variable imeth: selects dissipation method | 2 |
| set MESH(smu2 ) s | HYPGEN input variable smu2: second-order dissipation coefficient | 1.0 |
| set MESH(itsvol) i | HYPGEN input variable itsvol: number of times volumes are averaged | 100 |
| set MESH(timj ) tj | HYPGEN input variable timj: Barth implicitness factor for j | 0.0 |
| set MESH(timk ) tk | HYPGEN input variable timk: Barth implicitness factor for k | 0.0 |
| set MESH(iaxis ) i | HYPGEN input variable iaxis: controls treatment of singular axis BC | 1 |
| set MESH(exaxis ) e | HYPGEN input variable exaxis: controls treatment of singular axis BC | 0.1 |
| set MESH(volres) v | HYPGEN input variable volres: controls treatment of singular axis BC | 0.4 |
| set MESH(nsub ) n | HYPGEN input variable nsub: controls number of sub-steps used to march one step | 1 |
| set MESH(srmax ) s | uses srmax as a maximum stretching ratio to determine the number of points required for NPZREG | none |
| set MESH(legrid ) 1 | Causes BuildVol to use LEGRID instead of HYPGEN to generate volume grid | 0 |
| set MESH(rey ) r | LEGRID input variable rey: used to determine initial spacing | none |
| set MESH(chord ) c | LEGRID input variable chord: used to determine initial spacing | 1.0 |
| set MESH(xref) x | LEGRID input variable xref: used to determine initial spacing | 0.1 |
| set MESH(yplus) y | LEGRID input variable yplus: used to determine initial spacing | 1.0 |
| set MESH(smogrdargs ) ARGS | Used to pass ARGS as command-line parameters to the program SMOGRD | |
| set MESH(adddummy) "iadja iadjb iadka iadkb iadla iadlb" | Specifies number of dummy grid planes to add to j=1, j=jmax, k=1, k=kmax, l=1, l=lmax faces before performing smoothing with SMOGRD; dummy planes are removed after smoothing | 0 0 0 0 0 0 |
| set MESH(hypinargs) ARGS | ARGS is a string composed of flags to be passed to the HYPIN program. The following parameters are allowed: -zmax ZMAX (this is the only one that's required); -wallsp WALLSP; -z1 Z1; -z2 Z2; -dz2 DZ2; -srmax SRMAX; | -zmax 0.5 |
| set MESH(nosmogrd ) 1 | Overrides the default behavior of running SMOGRD for regions which do not have wall boundary conditions at L=1 | 0 |
| set MESH(smogrd ) 1 | Runs SMOGRD to smooth and enlarge wall-spacing cells in regions which are detected to have no wall-type boundary conditions at the L=1 surface; this is the default behavior | 1 |
| set MESH(nobccheck) 1 | Overrides the default of checking the OVERFLOW input file for info about running HYPGEN and/or SMOGRD. | 0 |
| set MESH(phantom) 1 | Setting this to 1 designates this mesh as a phantom mesh, which is to be used only for hole-cutting in PEGSUS, and it will not appear in the final grid system | 0 |
| set MESH(box) "file1 file2 ..." | Designates MESH as a box mesh, to be generated by the program BOXGR, and to be sized to surround the grids contained in the files file1, file2, etc | none |
| set MESH(command) "command1 ; command2 ; ... " | A series of shell commands which will be used by BuildVol to generate the volume grid for zone MESH, instead of using the the built-in makevol script | none |
| set MESH(nomakevol) 1 | Designates that BuildVol does not need to build the volume grid for MESH | none |
| set MESH(link_list) "string1 [string2 ...]" | A space-separated list of strings used to limit the LINK lists created by BuildPegi; the LINK list for MESH contains only other grids whose name contains one of the strings | none |
| set MESH(XXX,fringe) num | Used by BuildPegi to specify fringe levels for a mesh. Typically num should be 1 or 2. XXX can be hole, ob, jmin, jmax, kmin, kmax, lmin, lmax. This changes the fringe level specified in the PEGSUS input files for hole boundaries, outer boundaries, or for the outer boundaries at the six different faces of the mesh, respectively. | 2 |
| lappend priority(family_name_a) "zone1 zone2" | Used by BuildMixsuri to specify priorities within the mixsur input file. This gives zone1 priority over zone2 within the family named family_name. | none |
NASA Ames Research Center, Moffett Field CA 94035-1000, (650) 604-5000
Privacy Statement
URL: http://rotorcraft.arc.nasa.gov/
This Website Maintained By: Randall L. Peterson.
Responsible NASA Official: Dr. William Warmbrodt (Chief)
Ames Research Center Homepage
NASA Homepage