Miscellanous Utilities for CFL3D
Currently, the following tools are available along with CFL3D. These files
are all compiled using the make cfl3d_tools command (see "Building
Executables" on the index bar at the left of the CFL3D webpage).
- Tools:
- Get_FD.F
- This program reads two CFL3D restart files and calculate finite
differences of force and moment coefficients; it is used to validate
complex-variable approach for determining solution derivatives.
- INGRID_to_p3d.F
- This program converts PEGSUS 4.x INGRID file to a PLOT3D file that
can be used in CFL3D. Note that the INGRID file must correspond
to grid points rather than "augmented" cell centers.
- XINTOUT_to_ovrlp.F
- This program converts the XINTOUT overset grid interpolation file
from PEGSUS to the ovrlp.bin file used by CFL3D.
- cfl3d_to_pegbc.F
- This program creates a peg.bc.raw file for use with PEGSUS 5.x.
- cgns_to_cfl3dinput.F
- This program reads a CGNS file and creates a PLOT3D-type grid as well
as a best-guess for a CFL3D input file.
- everyother_xyz.F
- This program reads a grid and creates an every-other-point grid. This
can be useful in combination with the program v6inpdoubhalf.F, in order
to reduce the required CFL3D run-time memory when you are only
running on a coarser-level grid (and not taking it up to the finer
level(s).
- grid_perturb.F
- This program generates a real-valued grid (PLOT3D multiblock form)
by reading in a real-valued grid (PLOT3D multiblock form) and a
corresponding real-valued matrix of grid-sensitivity derivatives
(PLOT3D multiblock function file form, with 3*ndv variables for
the x,y,z components of the ndv design variables). The code
Get_FD.F may be used with the two restart files to determine
d(Cl)/d(DV), d(Cd)/d(DV), etc.
- grid_perturb_cmplx.F
- This program generates a complex-valued grid (PLOT3D multiblock form)
by reading in a real-valued grid (PLOT3D multiblock form) and a
corresponding real-valued matrix of grid-sensitivity derivatives
(PLOT3D multiblock function file form, with 3*ndv variables for
the x,y,z components of the ndv design variables).
The output grid may be read into the complex version of CFL3D
(cfl3dcmplx_mpi or cfl3dcmplx_seq) to determine the solution
derivatives with respect to the chosen design variable.
- initialize_field.F
- This program creates a restart.bin restart file in which you can
specify specific initial conditions, region by region. This can
be useful when "freestream everywhere" is not a desirable initial
condition.
- moovmaker.F
- This program reads the PLOT3D files output by CFL3D when the MOVIE
parameter is used for 2-D datasets (or 3-D datasets surface-only),
and creates new PLOT3D files with time as the third (k) direction.
- p3d_to_INGRID.F
- This program converts either PLOT3D or CFL3D type grids into either
INGRID type grids that can be used with PEGSUS 4.x, or PLOT3D
type grids that can be used with PEGSUS 5.x. The converted grids
can contain either the grid points as given in the input grids,
or "augmented" cell centers of the input grids.
- p3d_to_cfl3drst.F
- This program reads PLOT3D files and creates an approximate restart.bin
restart file. This can be useful if: (1) you are given a PLOT3D Q-file
from another code, and you wish to use it as a basis for starting
CFL3D, or (2) you have lost the CFL3D restart file, but you still
have the PLOT3D Q-file.
- plot3dg_to_cgns.F
- This program reads a PLOT3D grid file and a CFL3D input file and
creates a CGNS file (with grid, BC, and 1-to-1 connectivity information
in it).
- v6_restart_mod.F
- This program reads a restart.bin restart file and manipulates it. It can
switch between unformatted and formatted (which is useful if you need
to transfer the restart file to a machine of different architecture).
It can also write out the restart file either the same size, half the size,
or double the size. Going to half size is useful if one wishes to restart
from a fine grid solution and run on a coarser level. User can choose
to coarsen/refine only particular index directions, if desired.
The program cannot both coarsen and refine different directions
simultaneously.
- v6inpdoubhalf.F
- This program reads a CFL3D input file and creates a new input file
appropriate for a grid of either half or double the size.
This can be useful in combination with the program everyother_xyz.F when
running on coarser grid levels, and you wish to reduce the run-time memory
required.
- cgns_readhist.F
- This program reads the convergence history information (residual, CL, CD, etc.)
from a CGNS file and writes it to a formatted file.
- cfl3d_to_nmf.F
- This program reads a CFL3D input file and translates the BC and 1-to-1 information
to a neutral map file (nmf) format - see
http://geolab.larc.nasa.gov/Volume/Doc/nmf.htm
(available only after Version 6.5).
- nmf_to_cfl3dinput.F
- This program reads a neutral map file (nmf) and creates a best-guess for a
CFL3D input file. See
http://geolab.larc.nasa.gov/Volume/Doc/nmf.htm
(available only after Version 6.5).
- cfl3dinp_to_FVBND.F
- This program reads a CFL3D input file and creates a Fieldview
.fvbnd file (useful for finding and plotting viscous/inviscid walls).
(available only after Version 6.5).
- gridswitchijk.F
- Reads a PLOT3D grid and switches j,k,i to i,j,k (also transposes y and z if desired).
This is typically helpful if you have a 2-plane grid with
k as the 2-D direction (CFL3D wants it to be i).
(available only after Version 6.6).
- v6inpswitchijk.F
- This program reads a CFL3D V6 input file and outputs another input
file that transposes i to j, j to k, and k to i.
This is typically helpful if you have a 2-plane case with
k as the 2-D direction (CFL3D wants it to be i), and you used an
automatic tool such as cgns_to_cfl3dinput to create an input file
from the k-as-2D-direction initial case.
(available only after Version 6.6).
Privacy Act Statement
Responsible NASA Official:
Christopher Rumsey
Page Curator:
Christopher Rumsey
Last Updated: 03/29/2013