\file README.md \author Paul Ullrich \version August 25, 2015
Copyright 2000-2015 Paul Ullrich
This file is distributed as part of the Tempest source code package. Permission is granted to use, copy, modify and distribute this source code and its documentation under the terms of the GNU General Public License. This software is provided "as is" without express or implied warranty.
REQUIRED EXTERNAL LIBRARIES libpng libnetcdf libnetcdf_c++
BUILDING Modify src/Makefile to specify NetCDF paths make all
SYNOPSIS ./SQuadGen
PARAMETERS --grid_type ["CS"] (Options: ICO | CS) --refine_type ["LOWCONN"] (Options: LOWCONN | CUBIT | LOWCONNOLD) --refine_level [2] --resolution [10] --refine_file [""] --output ["grid.g"] --loadcsrefinementmap [false] --smooth_type ["NONE"] (Options: NONE | SPRING) --smooth_dist [1] (Smooth distance, -1 = smooth entire mesh) --smooth_iter [10] --lon_base [-180.000000] --lon_shift [0.000000] --invert [false] --block_refine [false]
DESCRIPTION SQuadGen is a mesh generation utility that uses a cubed-sphere base mesh to generate quadrilateral meshes with user-specified enhancements. In order to determine where enhancement is desired, the user provides a PNG file which corresponds to a latitude-longitude grid. Raster values with higher brightness (whiter values) are tagged for refinement. The algorithm uses a basic paving technique and supports two paving stencil types: Low-connectivity (LOWCONN) and CUBIT-type transition regions.
OPTIONS --grid_type (CS) | ICO
Type of base mesh to use for refinement: cubed-sphere (CS) or icosahedral
(ICO). If ICO is specified, generate a basic icosahedral flag mesh. All
refinement criteria will be ignored in this case.
--refine_type (LOWCONN) | CUBIT | LOWCONNOLD
Type of paving stencil to use LOWCONN, CUBIT or LOWCONNOLD. LOWCONN provides
a few enhancements over the previous LOWCONN old template by removing
spurious elements with high aspect ratios (typically near interior corners).
--refine_file
Filename of the PNG file to use for specifying refinement regions.
--output
Filename for the output EXODUS-format grid file.
--loadcsrefinementmap
(ADVANCED) If specified, the refinement map will be reloaded from the
previously generated refine_map.dat file. This option allows for manual
editing of the cubed-sphere refine map.
--smooth_type (NONE) | SPRING
If SPRING is specified, use spring-dynamics type mesh smoothing once the
refined mesh has been generated.
--smooth_dist
By default (smooth dist 1) only nodes which are part of the transition region
will be smoothed. Larger values of smooth_dist includes nodes of distance
smooth_dist away from the transition region (by edge connectivity). If
smooth_dist is set to -1 then the entire mesh will be subjected to smoothing.
--smooth_iter
Number of smoothing iterations to perform. A larger value will typically
result in a smoother mesh.
--lon_base
Longitude coordinate (in degrees) of the left-most edge of the PNG image.
--lon_shift
Amount of rotation (in degrees) to apply to the base mesh.
--invert
Invert the base image (so black identifies regions of refinement).
--block_refine
Turn on block-wise tagging of elements for refinement.