3. Usage and Common SettingsΒΆ
This section covers basic usage of the CAPE modules that work for each solvers. That is, there is no need for separate descriptions for Cart3D, OVERFLOW, and FUN3D.
The most important cape
tools are the command-line scripts pycart
,
pyfun
, and pyover
. These are used to submit jobs, check status, and
perform post-processing. Each of the three has an extensive set of command-line
options, and most of these are available to all three scripts. Each executable
script has at a minimum a JSON file as an input.
Note
For CAPE developers, the three scripts (and other CAPE executables) are all located in the
$CAPE/bin/
folder. For regular users who installcape
usingpip
as recommended in these docs, the executables will live alongside the other local executables installed bypip
.On a Linux system, this will often be
$HOME/.local/bin
.
In addition, all the functionality of the pycart
, pyfun
, and pyover
scripts can be accessed via a Python API. Each of the three scripts has its own
module: cape.pycart.cntl
, cape.pyfun.cntl
, or
cape.pyover.cntl
. These are typically more useful for accessing
post-processing data, and it can also be useful in creating advanced scenarios
that cannot be set up fully within the JSON input file.
Finally, there a number of additional executables that serve more specific purposes such as converting file formats.
- 3.1. General Case Setup
- 3.2. Command-Line Interface
- 3.2.1. Basic Commands
- 3.2.1.1. Help Message
- 3.2.1.2. Status Check
- 3.2.1.3. Batch Commands
- 3.2.1.4. Data Book Updates
- 3.2.1.5. Archiving Solutions
- 3.2.1.6. Trimming Excess Files While Running
- 3.2.1.7. Creating Reports
- 3.2.1.8. Killing Jobs
- 3.2.1.9. Removing Cases
- 3.2.1.10. Execute a Script in Each Case Folder
- 3.2.1.11. Extending a Case to Repeat the Last Phase
- 3.2.1.12. Apply New Settings and/or Add Phases
- 3.2.1.13. Submitting or Running Jobs
- 3.2.2. Command Modifiers
- 3.2.3. Run Matrix Subsetting
- 3.2.1. Basic Commands
- 3.3. Syntax for CAPE JSON Files
- 3.4. Syntax for Run Matrix Files
- 3.5. Setting Freestream Conditions in Cape
- 3.6. Automated Post-Processing Reports
- 3.7. Common JSON Settings
- 3.8. Advanced Setup: Python Scripting