This is an example input file for use with the libGRVY parsing mechanism. Note that behind the scenes, the library is using the GetPot parsing tool to provide a flexible parsing mechanism for C/C++ and Fortran. Note that the default comment delimiter is defined as the # sign and comments can begin at the beginning of a line or after a variable declaration to aid in documenting the input file. The parsing mechansism is keyword driven and can be organized into multiple sections. Consequently, you are allowed to have variables of the same name so long as they are within unique section definitions. Note also that because the parsing mechanism is keyword driven, the input directives can be specified in arbitrary order. There is no requirement to maintain a specific variable declaration pattern.
# -*-getpot-*-
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Example ASCII input file
#
# The input parser support a notion of sections which are defined by
# the [section] syntax. You are allowed to have variables of the same
# name so long as they are within unique section definitions.
#
# ------------------------------------------------------------------------------
#------------------------------------------
# Example global input variable definitions
#------------------------------------------
reyn = 2.5e6 # Reynolds Number
mach = 7.5 # Freestream Mach number
iter_max = 1000 # Max number of timesteps
time_max = 15.5 # Max simulation time [secs]
aoa = 20.5 # Angle of attack [deg]
gridfile = './grid_plate.nc' # Input gridfile
restart = true # Restart flag (boolean)
#--------------------------------
# Example solver control section
#--------------------------------
[solver]
turbulence = 1 # Include turbulence? (1=yes,0=no)
viscosity = 1 # Include viscous terms? (1=yes,0=no)
radiation = 0 # Couple with radiation? (1=yes,0=no)
chemistry = 0 # Couple with chemistry? (1=yes,0=no)
ablation = 0 # Couple with ablation model? (1=yes,0=no)
rest_suffix = './sol_foo.nc' # Suffix for restart file name
switches = '1 5 6 9' # Example vector of ints
keywords = 'wicked
fast' # Example string vector
#--------------------------------------------
# Example submodel constants - note the two
# ways to define multiple constants.
#--------------------------------------------
[turbulence]
model = "SA" # Spalart-Allmaras
A = '12.5 23.3 -1.25' # Relevant model constants (into a vector)
c1 = 12.5 c2 = 23.2 c3 = -1.25 # Relevant model constants (3 separate constants)
[chemistry]
model = '9-equation-superfly' # Deliniation of a reaction set
[user-variables]
preview-coefficient = '12 cm'
lateral-side-distance = '2.1 m/s'
control-interval = '0.1 s'
compensation-ratio = '0.4e34 rad/(m*s)'