Command Summary
Command Summary
Release v1.5.9
November, 2022
$CART3D/doc/COMMAND_SUMMARY.pdf
Contents:
adapt 1
adjointCart 2
adjointErrorEst_quad 3
aero.csh 4
aero_archive.csh 4
aero_getResults.pl 5
aero_redo.csh NEW! 5
aero_upgrade.py 5
aerograce.csh 5
autoInputs 6
breakTris 6
c3d_checkInputs.py 7
c3dvis 7
clic 7
c3d_parallel_runner.pl NEW! 8
closestPair 9
comp2tri 9
con g_space 9
cubes 10
cutter 11
diagnoseGeom.pl 11
di Triq 12
do_compAvgs.csh 12
dxf2tri.pl 12
owCart & mpix_ owCart 13
inspectMesh 14
intersect 14
LDM.pl 15
livePlot.pl 15
lsee.pl 16
mesh2mesh 17
mgPrep & mgTree 18
mk_aeroTables.csh 18
model2aero.pl 19
net2p3d 19
reorder 19
stl2tri.pl 20
tri2stl 20
triangulate 20
trimCutPlanes NEW! 21
trix 22
viscousDrag 23
wrl2c3d.pl 23
ws_builder.csh 24
ws_runner.csh 24
xsensit 25
$CART3D/doc/COMMAND_SUMMARY.pdf –i–
fl
ff
fi
fl
Cart3D v1.5.9 – Cart3D Command Summary 2022.11
$CART3D/bin/$CART3D_ARCH/adapt
Mesh adaptation module for Cart3D. adapt is used to re ne an existing mesh either using feature detec-
tion or adjoint-based error estimates. It takes as input an existing mesh and checkpoint le and returns an
adapted mesh and an accompanying checkpoint le with the prolonged solution. This mesh & checkpoint
le can then be run by owCart to advance the solution further. Technical description in AIAA Paper
2003-0862, & AIAA 2008-6593 available on-line at:
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa2002-0863.pd
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa2008-6593.pd
o Required les
• Mesh.mg.c3 => Cart3D mesh in SFC orde
• Mesh.c3d.Info => Mesh info le for input mes
• preAdapt.ckpt => Cart3D checkpoint le on input mes
$CART3D/doc/COMMAND_SUMMARY.pdf – 1 of 25 –
fi
:
d
fi
:
fl
fi
]
fi
r
fi
fi
h
–
2
fi
f
$CART3D/bin/$CART3D_ARCH/adjointCart
Parallel discrete adjoint solver for Cart3D. This code is usually invoked by aero.csh. See technical de-
scription in NASA/TP-2016-219422 and AIAA Paper 2005-0877, available on-line at:
https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20160013550.pdf and
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.140.472&rep=rep1&type=pd
-- I/O Options --
-v verbose mode ON
-mem Report memory usage (auto on with -v)
-i %s Input file name, default:<input.cntl>
-T Dump surf triangulation in Tecplot format <surfName.dat>
-clic Dump surf triangulation in Clic format <surfName.triq>
-no_his Turn off writing history file <historyADJ.dat>
-binaryIO Write post-processing data in binary (plotfiles etc.) <FALSE>
-Xcut %d Num of X=const cut planes <disjointCutPlanes.dat>
-Ycut %d Num of Y=const cut planes <disjointCutPlanes.dat>
-Zcut %d Num of Z=const cut planes <disjointCutPlanes.dat>
-version Dump version info and exit
-Dmatrix Dump i,j formatted connectivity Matrices
-Dcut Dump tecplottable file <cutcells.dat>
o Required les
• Flow. le => Converged ow solution check-point l
• dObjdQ.q => Right Hand Side (RHS) of linear syste
• dResdX.q => Residual sensitivity (optional
$CART3D/doc/COMMAND_SUMMARY.pdf – 2 of 25 –
fi
:
fi
:
fi
fl
]
fi
m
–
fl
f
$CART3D/bin/$CART3D_ARCH/adjointErrorEst_quad
Parallel adjoint-based error estimation module for Cart3D. adjointErrorEst_quad takes the coarse
mesh, ow solution and adjoint and estimates error on a uniformly re ned embedded mesh to produce a
cell-wise error estimate on the coarse input mesh. This code is usually invoked by aero.csh. See technical
description in NASA/TP-2016-219422 and AIAA Paper 2007-4187, available on-line at:
https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20160013550.pdf and
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa2007-4187.pdf
-- I/O Options --
-v verbose mode ON
-mem Report memory usage (auto on with -v)
-i %s Input file name, default:<input.cntl>
-binaryIO Write post-processing data in binary (plotfiles etc.) <FALSE>
-Xcut %d Num of X=const cut planes of error estimates <disjointCutPlanes.dat>
-Ycut %d Num of Y=const cut planes of error estimates <disjointCutPlanes.dat>
-Zcut %d Num of Z=const cut planes of error estimates <disjointCutPlanes.dat>
-version Dump version info and exit
-histo Dump cell-wise errors (useful for histograms)
-Dcut Dump tecplottable file <cutcells.dat>
o Required les
• Adjoint. le => converged coarse-mesh adjoint check-point l
• Flow. le => converged coarse-mesh ow check-point l
• Mesh.mg.c3 => Cart3D mesh in SFC orde
• Mesh.c3d.Info => Mesh info le for input mes
$CART3D/doc/COMMAND_SUMMARY.pdf – 3 of 25 –
fi
fl
fi
:
d
fi
:
fi
r
fl
h
fi
e
fi
–
e
fi
$CART3D/bin/aero.csh
Top-level driver for adjoint-based mesh adaptation with Cart3D. Copy to working directory and edit user
con gurable params. See samples & README.txt in $CART3D/cases/samples_adapt.
• Use 'restart' or '-restart' to run more adaptation cycles. Handles abnormal exits due to machine crash-
es, etc. To restart from a speci c 'adapt??' directory, delete all adapt directories that follow it. For exam-
ple, to restart from adapt06 in a run that nished at adapt08, delete adapt07 and adapt08 and restart.
This ag is ignored if there are no 'adapt??' directories and an error is reported if the le AERO_-
FILE_ARCHIVE.txt is detected
• Use 'jumpstart' or '-jumpstart' to start an adaptive from a given input mesh. To do this, put a
Mesh.c3d.Info le and a mesh le (Mesh.mg.c3d, Mesh.R.c3d, or Mesh.c3d) in the same directory as
aero.csh (along with the other usual input les) and the run will start from this mesh
• Use 'skip nest' or '-skip nest' to skip solving on the nest mesh. This is used when wishing to run a
different solver on the nest mesh, e.g. the MPI version of owCart. The nal adapt directory contains the
nal mesh, all the input les and a FLOWCART.txt le that contains the command line. Note that the
BEST link points to the previous 'adapt??' directory
• Use 'archive' or '-archive' to generate a run archive. This option deep cleans the run directory tree,
keeping only the essential output les. Once archived, restarts are not possible. This option simply calls
the aero_archive.csh script
• Set the environment variable “debug_verbose” (% setenv debug_verbose) for more verbose output
Script returns 0 on success and 1 on error. Read tips, hints and documentation in
$CART3D/doc/adjoint. Use '% touch STOP' to force a stop after the next ow solve
o Required les
• Components.i.tri => Triangulation of input geometr
• input.cntl => input le for ow solve
• input.c3d => input le for cubes
$CART3D/bin/aero_archive.csh
Remove non-essential les after an aero.csh run. Execute this script in the run directory. This can be run
directly using the “-archive” aero.csh option. The script cleans up the directory, archives loadsCC.dat from
all the adapt?? directories and keeps only minimum for post-run forensics.
Returns 0 on success and 1 on error
$CART3D/doc/COMMAND_SUMMARY.pdf – 4 of 25 –
fi
fi
fl
:
fi
fi
fi
:
fi
fi
fi
fi
.
fi
fi
fi
fi
fi
.
fl
fi
fi
r
fi
.
fi
y
fi
fl
–
]
fi
fl
fi
$CART3D/bin/aero_getResults.pl
Script to harvest adjoint adaptation results. Handles multiple functionals. This code is usually invoked by
aero.csh, but may be called manually from within a top-level aero.csh directory
$CART3D/bin/aero_redo.csh NEW!
Run a different owCart (or command line options) on a sequence of grids generated by aero.csh. Cre-
ates a REDO directory. Can be executed after an aero.csh run or simultaneously with an aero.csh run.
Copy to your working directory and edit the top few lines of the script to specify your heart’s desire.
Usage: ./aero_redo.csh
$CART3D/bin/aero_upgrade.py
Upgrade any older aero.csh script to the current version. This is very handy if you have a legacy aero.c-
sh run that you want to re-do with a newer release of Cart3D. aero_upgrade.py will preserve your run-di-
rectory aero.csh customizations and report anything out of the ordinary that it encounters. aero_up-
grade.py always makes a backup of your original aero.csh so that you can refer to it if necessary. The de-
fault location for the template is $CART3D/bin/aero.csh which is included in the standard distribution
$CART3D/bin/aerograce.csh
Mesh convergence plotter for aero.csh runs. Invoke from within a top-level aero.csh directory. This
script uses templates in $CART3D/lib/ and requires xmgr/xmgrace in your path. Plots generated include
functional convergence with error estimation, as well as plots of error and functional convergence. If there
are multiple fun_con_ID.dat les, you can specify the ID to plot a particular output. Data from results_ID.dat
will be automatically included. If you omit ID, then func_con.dat and results.dat are used as defaults.
$CART3D/doc/COMMAND_SUMMARY.pdf – 5 of 25 –
fl
fi
]
–
]
$CART3D/bin/$CART3D_ARCH/autoInputs
Automatically generates both required and optional input les for cubes, the volume mesh generator.
The autoInputs tool automatically nudges the mesh in the three Cartesian directions to avoid most com-
mon degeneracies. In general, the user has the capability to control the overall domain extent as well as the
initial background mesh density. The tool also provides the capability to create meshes on half of an as-
sumed symmetric geometry to cut ow solution time The default values for the tool are generally quite good
for most cases and the use of this tool is highly recommended
$CART3D/bin/$CART3D_ARCH/breakTris
Add component labels to existing watertight surface triangulations. Labels can be added based on logical
entities (individual watertight components) or based on geometric features (“creases” in the geometry). See
the HOWTO on labeling triangulations for examples and a complete discussion of component labeling. La-
bels can be applied either to separate watertight components or to entities in the GMP hierarchy of the con-
guration
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/howto/faceLabels
$CART3D/doc/COMMAND_SUMMARY.pdf – 6 of 25 –
fi
fl
]
fi
.
–
i
$CART3D/bin/c3d_checkInputs.py
Check Cart3D input les. Run in aero-shell directory or optimization directory. Add search terms to com-
mand line to search error strings ("all" prints all). Output details what settings have been migrated and iden-
ti es any unknown or additional additions to legacy aero.csh scripts. This script uses python 2.6 or 2.7. If
that is not default on your system, then you’ll want to run using “% /path/to/python2 c3d_checkInputs.py
Usage: c3d_checkInputs.py [options
Options
-h, --help show this help message and exit
-q (Quiet) Print errors, but not warnings and notes
$CART3D/bin/$CART3D_ARCH/c3dvis
A post-processing tool for visualizing the solution on the volume mesh. For those cases that the Carte-
sian cut-plane functionality of owCart is insuf cient, such as arbitrary slices through the grid or three-di-
mensional streamlines, c3dvis can be used to create a Tecplot or an Ensight data le. The inputs required
for c3dvis are the surface triangulation, mesh les and input control le previously used as inputs to ow-
Cart and the checkpoint restart le created by owCart.
o Required les
• Components.i.tri => Watertight surface triangulation of the con guratio
• input.cntl => owCart input l
• Mesh.mg.c3 => Cart3D mesh in SFC orde
• Mesh.c3d.Info => Mesh info le for input mes
• check.#### => owCart checkpoint le with solutio
$CART3D/bin/$CART3D_ARCH/clic
Standalone force and moment package that computes forces, moments, and slice extractions from clic
triangulations (“-clic” option to owCart). This package has been largely replaced through the use of inter-
nal calls within owCart & mpix_ owCart to the clic library (which is more accurate) its still very useful for
doing slice extractions on the surface (e.g. Cp cuts on wings and bodies). An example showing its use is in
the $CART3D/cases/samples/oneraM6 self-running example in the distributio
Usage: clic [ argument list
Options
-i %s control file name, def:<clic.cntl>
-outDir %s output directory, def:<./>
-v verbose more ON
-mem Report memory usage (auto on with -v)
-parse verbose parsing ON
-T Create tecplot file
$CART3D/doc/COMMAND_SUMMARY.pdf – 7 of 25 –
fi
:
#
d
fl
fi
fl
fl
fi
:
fi
fl
fl
]
fi
fi
fl
]
fi
]
fi
h
fl
fi
n
–
fi
fi
n
fi
fl
”
Since c3d_parallel_runner.pl is equally helpful for heavy lifting outside of Cart3D, it’s frequently soft-
linked to “domany”.
% cd $CART3D/bin; ln -s c3d_parallel_runner.pl domany; rehash; cd -
Options
-j %d max. number of concurrent parallel jobs
-c %s command to run <"sboom -e -C 1.e-6">
-f force, rerun command again
-t test, show job-list and exit
-- Options to identify the location of case directories --
-r %s root directory that contains all run directories
-d %s string in directory name where case runs, may include regex
-s %s optional string to help find run directories, may include regex
-x exclude matches on optional '-s string'
-- Options to control IO and other runtime behavior --
-w %d IO format extra whitespace <0>
-z %d sleep time to check job status in seconds <1>
-v be verbose
-q be quiet
$CART3D/doc/COMMAND_SUMMARY.pdf – 8 of 25 –
fi
:
fi
.
v
]
v
–
fi
$CART3D/bin/$CART3D_ARCH/closestPair
Ef ciently determine the closest component to any particular target component. closestPair uses partic-
ularly ef cient search techniques so that it can be called with low overhead.
$CART3D/bin/$CART3D_ARCH/comp2tri
Combine a set of individual components or combinations of components into a Cart3D un-intersected
con guration triangulation with multiple components. See the HOWTO on labeling triangulations for exam-
ples and a complete discussion with many examples. comp2tri can also be used to modify component IDs
or GMP tags on-the- y during the assembly process. See useful examples online:
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/howto/faceLabels/
$CART3D/bin/$CART3D_ARCH/con g_space
Utility to manipulate and position individual components within a Cart3D con guration with a hierarchical
con guration description (Con g.xml) according to a pre-set schedule established by Con gSpace.xml.
Usage: con g_space [ argument list
Options
-in %s Input triangulation file name
-out %s Output triangulation file name
-ascii ascii output default: <FALSE>
-tri Output Cart3D tri file instead of trix (VTU) default:<FALSE>
-param_list ... parameter list, e.g. Flap=2, ...
-v verbose mode ON
$CART3D/doc/COMMAND_SUMMARY.pdf – 9 of 25 –
fi
fi
fi
fi
:
fi
fl
fi
fi
fi
]
fi
fi
.
fi
fi
i
$CART3D/bin/$CART3D_ARCH/cubes
Cart3D’s multi-level Cartesian mesh generator with cut-cell boundaries. The Cart3D website includes a
large section on underlying concepts and usage. For speci c usage info, the easiest place to get started are
the examples in $CART3D/cases/samples/. Background and theory with other important details can be
found in (1) AIAA Jol. 36(6):952-960, 1998, (2) the CRC handbook of Mesh Generation, or (3) VKI Lecture
Series 1998-02. Online documentation is at: https://www.nas.nasa.gov/publications/software/docs/cart3d/
pages/meshGeneration.html
Additional background and theory references are available on-line at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/AIAA-97-0196.pd
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/crcChapterDraft.ps.g
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aftosmis_97vkiNotes.pd
$CART3D/doc/COMMAND_SUMMARY.pdf – 10 of 25 –
:
fi
–
:
o Required les
• Components.i.tri => Watertight surface triangulation of the con guratio
• input.c3d => cubes control l
• preSpec.cntl.c3d => (optional) pre-speci ed adaptation regions and XLev
$CART3D/bin/$CART3D_ARCH/cutter
Cut-cell engine that optionally produces sensitivities of cut-cells to perturbations in the geometry. This
code is typically called internally within the Cart3D package and design framework and is not generally
called directly by users from the command line.
$CART3D/bin/diagnoseGeom.pl
This script runs intersect on all the pairwise combinations of components of a geometry to nd any of-
fending component combinations. In Cart3D release v1.4.9 and later the "-ascii" ag is no longer needed
since ascii/binary letypes automatically detected
$CART3D/doc/COMMAND_SUMMARY.pdf – 11 of 25 –
fi
fi
:
fi
e
fi
–
fi
n
fl
fi
Cart3D v1.5.9 – Cart3D Command Summary 2022.11
$CART3D/bin/$CART3D_ARCH/di Triq
Take the point-wise difference between Cp and ow values in 2 different *.triq les on the same triangula-
tion. Useful for nding point-wise changes in surface loads at various unsteady time steps or multigrid cy-
cles
$CART3D/bin/do_compAvgs.csh
Run this script from the top of the windspace directories created with ws_builder.csh to iteratively av-
erage loads outputs for all components for which loads histories exist. If the integer averaging_window is
unspeci ed, the script will try to detect it from flowCart's stdout or from the setting in aero.csh. Since in-
ternal averaging was added to owCart in 2016 (v1.5 and later), this script has been largely replaced by the
average loads data found in "loadsCC.avg.dat” (which is done internally by owCart and is generally
more accurate)
$CART3D/bin/dxf2tri.pl
An input interface that converts a basic “*.dxf” format triangulation le to a Cart3D triangulation format.
Additional documentation available on-line at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/surfaceModeling.htm
$CART3D/doc/COMMAND_SUMMARY.pdf – 12 of 25 –
fi
:
fi
fi
fl
]
fi
ff
fl
]
–
fi
fl
fi
l
$CART3D/doc/COMMAND_SUMMARY.pdf – 13 of 25 –
fl
:
fl
fl
fl
fl
fl
]
fl
0
fl
fl
fl
/
fl
–
0
fi
Cart3D v1.5.9 – Cart3D Command Summary 2022.11
$CART3D/bin/$CART3D_ARCH/inspectMesh
inspectMesh is a quick way to print the vital stats of an existing Mesh.mg.c3d, Mesh.c3d, or Mesh.R.c3d
le. It tells you how many meshes are in the le (multigrid levels), if the mesh is 2D or 3D, and how many
cells and faces of each type there are. Its also handy for locating a particular cell within the mesh, the “-cell
%d” option reports the cell’s coordinates and re nement levels in each direction.
$CART3D/bin/$CART3D_ARCH/intersect
Extracts the wetted surface of a con guration. "Con gurations" are collections of components output ei-
ther by triangulate, comp2tri, or made by some other method. intersect is extensively documented in AIAA
Paper 97-0197. The wetted surface extracted by intersect is in the form of a Cart3D wetted surface triangu-
lation and is watertight. Component information is retained. By convention, output les are generally named
*.i.tri to indicate that they are post-intersection and do not contain any internal geometry. If "intersect" ever
fails, it drops an "Error.dat" le which is a tecplotable le containing geometry local to the problem which
caused it to fail. Intersect is quite robust, and it begins and ends with a geometry veri cation phase. If inter-
sect stops during the initial geometry veri cation it will suggest possible problems in the input geometry
(e.g. “Component N” is not closed, non-manifold, etc.) These checks are topological in nature and do not
depend on oating point math. They are therefore robust. Intersect is based on boolean intersection predi-
cates and uses adaptive precision oating point math with automatic tie-breaking to resolve
degeneracies. See the $CAR3D/cases/samples/ and on-line documentation at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/surfaceModeling.htm
Additional background and theory references are available on-line at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/AIAA-97-0196.pd
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aftosmis_97vkiNotes.pd
$CART3D/doc/COMMAND_SUMMARY.pdf – 14 of 25 –
fi
fl
fi
fi
fl
fi
fi
fi
fi
fi
fi
fi
–
.
fi
fi
f
$CART3D/bin/LDM.pl
A simple output formatter for the clic force and moment utility. The LDM.pl script takes in the output from
a clic run and reformats the output info in a tabular format (for shipping to MS Excel etc..
$CART3D/bin/livePlot.pl
livePlot.pl is a “live” convergence history and force summary plotter for {mpix_} owCart and ad-
jointCart. Invoke from within a directory where owCart is currently running (or has already run), and it will
create a plot using xmgrace. If the case is currently running, the plot will update every few seconds. live-
Plot.pl can also be run from within a top level aero.csh directory and will automatically update as the simu-
lation evolves through multiple adaptation cycles. This is an extremely handy utility. livePlot.pl depends on
xmgrace/xmgr which needs to be in your path
You can download xmgrace from
http://plasma-gate.weizmann.ac.il/Grace/
$CART3D/doc/COMMAND_SUMMARY.pdf – 15 of 25 –
fl
J
–
fl
)
$CART3D/bin/lsee.pl
This script generates point-wise estimates of discretization error along line sensors extracted from a se-
quence of meshes. See gs.6, 7 & 8 in AIAA Paper 2017-3255 for some useful examples.
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa_2017-3255.pdf
Notes
1. You must specify at least a medium and a ne mesh signature. If only two are speci ed, rst-order
spatial convergence is assumed
2. Signature le format needs to be one of: two columns of x-y values, Cart3D lineSensor (reads fourth
and fth columns), or Tecplot 'ZONE' le (reads rst and fourth columns). Data must be ordered
3. Output les are prepended with ee_. Check headers for help. Output les named ee_jeb_ can be
used to plot error bars. File name strings _l, _m and _h represent low, medium and high con dence
error regions. File ee_cm_best represents the error region as a continuous poly-line. This is a alter-
nate way to plot the error regions --- ll in or shade the polygon
$CART3D/doc/COMMAND_SUMMARY.pdf – 16 of 25 –
fi
:
fi
:
fi
fi
.
fi
fi
fi
fi
fi
.
–
fi
v
fi
fi
fi
fi
.
$CART3D/bin/$CART3D_ARCH/mesh2mesh
Transfer the solution (and optionally the residual) between two meshes with different geometries for
warm-starting nearby cases. mesh2mesh uses an the space lling curves to do this transfer with linear
time complexity so its very fast. This code permits solutions warm starting of solutions for perturbations of
the geometry (e.g. control surface de ection) or small modi cations to the geometry during design. A
worked example is in $CART3D/cases/samples/mesh2mesh_ex/, Other examples, along with a technical
description and approach are in
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa2004_1232.pdf
-mesh2d Mesh is 2D
-sfc %c SFC ordering: H = Peano-Hilbert (default), M = Morton
-Uinf Initialize newly exposed cells with free stream conditions <FALSE>
-no_fill (DEBUG) Don't fill new cells <FALSE>
$CART3D/doc/COMMAND_SUMMARY.pdf – 17 of 25 –
fl
]
fi
fi
–
fi
e
$CART3D/bin/mk_aeroTables.csh
For a speci ed list of components, traverse the wind-space directory structure and harvest aero per-
formance data run this script from within a particular windspace (where M*A*B*R* subdirectories are visi-
ble). You must run do_compAvgs.csh rst. Any component who’s force/moment is requested in the “$__-
Force_Moment_Processing:” in input.cntl is allowed, default is entire
$CART3D/doc/COMMAND_SUMMARY.pdf – 18 of 25 –
fi
:
fi
l
fl
–
.
$CART3D/bin/model2aero.pl
Script to convert from model to body to aero frames using forces.dat and moments.dat history les out-
put from owCart
$CART3D/bin/$CART3D_ARCH/net2p3d
Convert a Langley Wireframe Grid Standard (LaWGS) mesh network to a multiple grid plot3D struc-
tured grid. See the sample in $CART3D/cases/samples/oneraM6/ for a good description and illustration.
$CART3D/bin/$CART3D_ARCH/reorder
reorder takes meshes (Mesh.c3d) output by cubes and re-orders them using a space- lling-curve based
ordering. Think of it as a backend for cubes. owCart takes these re-ordered meshes and can partition
them on-the- y onto any number of processors. Even if you're going to run on a single CPU (unpartitioned
domain) its worth reordering since reordered meshes have better locality and will execute faster on cache-
based machines. reorder is the key to owCart's domain-decomposition strategy and is required for mesh
coarsening. reorder can be invoked from within cubes using the “-reorder” ag on the cubes command line.
On-line documentation
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/ owCart_reorder.htm
Technical description and approach
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/aiaa2004_1232.pd
$CART3D/doc/COMMAND_SUMMARY.pdf – 19 of 25 –
fl
:
fl
.
fi
:
fi
]
fl
]
fl
fi
fl
–
]
fl
l
fi
f
fi
$CART3D/bin/stl2tri.pl
An input interface that converts an ascii stereolithography “*.stl” format triangulation le to a Cart3D in-
dexed triangulation format with component information. NOTE: admesh is a prerequisite and must be in
your path. You can download admesh a
https:/github.com/admesh/admesh
Additional documentation available on-line at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/surfaceModeling.htm
$CART3D/bin/$CART3D_ARCH/tri2stl
The inverse of stl2tri.pl. Convert a Cart3D indexed triangulation to an ascii-formatted stereolithography
triangulation. All component information is lost.
$CART3D/bin/$CART3D_ARCH/triangulate
Triangulate a structured grid le. Triangulate takes a multiple-grid plot3d format con guration and triangu-
lates it component-by-component. Points with duplicate geometry (same point in physical space) are re-
moved. (Comparisons for point removal use a default tolerance of 1.e-6 model units.) It is used for convert-
ing components speci ed from structured geometry sources into intersection-ready triangulations. Compo-
nent information is retained for each triangulation. See the example in the distribution at $CART3D/cases/
samples/oneraM6/ Additional documentation available on-line at
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/surfaceModeling.html
$CART3D/doc/COMMAND_SUMMARY.pdf – 20 of 25 –
fi
fi
fi
fi
fi
]
fi
t
fi
:
–
fl
l
fi
fi
]
$CART3D/bin/$CART3D_ARCH/trimCutPlanes NEW!
Uses new polygon types in Tecplot to produce pretty cut-planes that more accurately display the geome-
try actually being solved by owCart. The standard cut planes.{dat,plt} do not make any attempt to accu-
rately represent the cut-cells in Cart3D. Instead, they simply show full (un-cut) quadrilaterals which often
contain misleading values — especially in cells split into multiple control volumes, or in cut cells in which
only a small fraction of the cell is actually in the ow. trimCutPlanes recti es this by using a general polyg-
onal representation of the slice through the cut-cell
o Required les: (these should all exist in any owCart run directory
• Components.i.tr ==> surface triangulatio
• Mesh.c3d.Inf ==> Mesh info le from cube
• Mesh.mg.c3 ==> Cart3D Mesh l
• check.#### ==> owCart checkpoint le with solutio
• input.cnt ==> owCart input le
$CART3D/doc/COMMAND_SUMMARY.pdf – 21 of 25 –
l
:
#
d
o
fi
i
fl
fl
fl
fi
fi
fi
e
fi
]
fi
s
fl
.
fl
n
–
fi
)
$CART3D/bin/$CART3D_ARCH/trix
The Swiss army knife of triangulations: format converter, translations, and more. The default ac-
tion is to convert the input les to the Cart3D extended triangulation (VTK) format. Shape sensitivi-
ties (if present) are automatically adjusted to re ect any geometry manipulations. Trix can also be
used to move/rotate selected disconnected components with respect to others in the con guration.
$CART3D/doc/COMMAND_SUMMARY.pdf – 22 of 25 –
fi
fi
]
fl
)
–
fi
$CART3D/bin/$CART3D_ARCH/viscousDrag
Simple viscous drag calculator that can be run on a Cart3D *.triq le output from owCart. The method
uses a single-pass boundary layer solution against the inviscid solution in the *.triq le.
On-line documentation
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/howto/viscousDrag
Technical description and approach
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/publications/AIAA_2006-0652.pd
$CART3D/bin/wrl2c3d.pl
An input interface that converts a VRML (Virtual Reality Modeling Language) format triangulation les
into a Cart3D single component triangulation. VRML’s *.wrl les typically don’t include any component in-
formation, so each *wrl le is assumed to contain only one sold. If the input contains many topologically
separate objects, they may be separated with breakTris.
See the on-line documentation for info on surface modeling and le formats.
https://www.nas.nasa.gov/publications/software/docs/cart3d/pages/surfaceModeling.htm
$CART3D/doc/COMMAND_SUMMARY.pdf – 23 of 25 –
fi
fi
:
fi
i
fi
fi
fi
–
fl
fi
fi
Cart3D v1.5.9 – Cart3D Command Summary 2022.11
$CART3D/bin/ws_builder.csh
This automation script builds and populates a 3 dimensional “windspace” for parameter studies over a
range of Mach numbers, incidence angles (alpha), and side slip angles (beta) based upon a single template
directory. Windspace directories use the naming convention M*A*B* and can then be traversed by ws_run-
ner.sh, and post-processed with do_compAvgs.csh and mk_aeroTables.csh. The contents of the tem-
plate directory are copied into each and the input les are modi ed for each individual case. ws_builder.c-
sh does not run the cases, it simply sets up the directories. To use, make a copy of the script in your local
directory and edit the top few lines of the script to set your range of Mach, alpha and beta. To run, put all
required top-level aero.csh les in a directory called “template” within the launch directory.
Usage: ./ws_builder.cs
$CART3D/bin/ws_runner.csh
Unsophisticated automation utility for running an windspace parameter study setup by ws_builder.csh.
This script simply runs cases one after the other on the local hardware. Set the desired number of threads
at the top of the script. More sophisticated versions of this script are available from the Cart3D development
team including versions developed for systems using the Portable Batch System (PBS). This script is also a
good starting point for automation of post-processing tasks.
To run, launch this script from the top-level windspace directory with the M*A*B* directories created by
ws_builder.csh all visible at the current level.
Usage: ws_runner.csh
$CART3D/doc/COMMAND_SUMMARY.pdf – 24 of 25 –
fi
fi
fi
–
Cart3D v1.5.9 – Cart3D Command Summary 2022.11
$CART3D/bin/$CART3D_ARCH/xsensit
Computes the sensitivity of the objective function (in input.cntl or Functionals.xml) to changes in the ow
state -- frequently referred to as dObj/dQ or dJ/dQ. This code is not usually invoked by hand and is usually
run either by aero.csh (for error estimation) or by the Cart3D design framework. The code runs in parallel
on the number of cores set by the $OMP_NUM_THREADS environment variable. Execution requires about
the same time as one or two ne-grid iterations on the current mesh. Memory usage is approximately the
same as the ow solver.
-- I/O Options --
-v verbose mode ON
-mem Report memory usage (auto on with -v)
-i %s Input file name, default:<input.cntl>
-T Dump surf triangulation in Tecplot format <surfName.dat>
-clic Dump surf triangulation in Clic format <surfName.triq>
-binaryIO Write post-processing data in binary (plotfiles etc.) <FALSE>
-Xcut %d Num of X=const cut planes <disjointCutPlanesLIN.dat>
-Ycut %d Num of Y=const cut planes <disjointCutPlanesLIN.dat>
-Zcut %d Num of Z=const cut planes <disjointCutPlanesLIN.dat>
-version Dump version info and exit
-Dmatrix Dump i,j formatted connectivity Matrices
-Dcut Dump tecplottable file <cutcells.dat>
-no_ckpt Suppress checkPointing
-- Sensitivities --
-dMach Compute dR/dMinf and dJ/dMinf
-dAlpha Compute dR/dAlpha and dJ/dAlpha
-dBeta Compute dR/dBeta and dJ/dBeta
-dRoll Compute dR/dRoll and dJ/dRoll
-dRhoinf Compute dR/dRhoinf and dJ/dRhoinf
-dShape Compute dR/dShape and dJ/dShape
-dBackPressureBC %d Compute dR/dInletPressureRatioBC and dJ/dInletPressureRatioBC
for a specified component
-dVelocityBC %d Compute dR/dInletVelocityBC and dJ/dInletVelocityBC
for a specified component
-dQ Compute dJ/dQ
-objGrad Evaluate objective function gradient
o Required les
• Flow. le => converged ow solution check-point l
• dResdX.q => R.H.S. of linear syste
• dObjdQ.q => Objective function sensitivity (optional
$CART3D/doc/COMMAND_SUMMARY.pdf – 25 of 25 –
fi
:
fl
fi
:
fl
fi
fi
)
–
fl