3.7. Common JSON SettingsΒΆ
The following JSON settings are available to the cape
basis module and
apply to each of the solvers. Most of these settings will have the same
meaning for cape.pycart
, cape.pyfun
, and cape.pyover
, although some of
them are superseded by modified options in those derived modules.
The template name for the baseline control file is cape.json
. It can
be invoked via the command-line function cape
via either of the following
two commands.
$ cape $ cape -f cape.json
Similarly, the default file for pycart
is pyCart.json
; the default
file for pyfun
is pyFun.json
; and the default file for pyover
is pyOver.json
.
A basic template for such files is shown below.
{ // Universal Python settings "PythonPath": [], "Modules": [], // Special Python functions to run using API "InitFunction": [], "CaseFunction": [], // Commands to run at beginning of run job "ShellCmds": [], // Commands to run at beginning of batch job "BatchShellCmds": [], // Maximum number of commands to submit or run "nSubmit": 20, // File settings mask (not applicable to Windows systems) "umask": "0027" // Primary settings for iterations, phases, etc. "RunControl": { // List of phases to run "PhaseSequence": [0, 1], // Iteration minimums in each phase "PhaseIters": [200, 400], // Other local options "qsub": False, "MPI": False, "mpicmd": "mpiexec", "Resubmit": false, "Continue": true, // Special subsections "Environ": { }, "ulimit": { }, "Archive": { } }, // PBS job settings "PBS": { }, // Batch job PBS settings different from *PBS* "BatchPBS": { }, // Surface subset and point settings "Config": { }, // Data book settings "DataBook": { }, // Automated Report settings "Report": { }, // Run matrix settings "RunMatrix": { // List of trajectory keys "Keys": ["mach", "alpha", "beta"], // File containing conditions "File": "matrix.csv" } }
An interactive instance of these setting scan be accessed via the following Python commands.
import cape # Import CAPE control instance cntl = cape.Cntl() # Options interface opts = cntl.opts
A detailed description of each class of options can be found in the pages that follow.
- 3.7.1. Uncategorized JSON Options
- 3.7.2. PBS Script Options
- 3.7.3. SLURM Script Options
- 3.7.4. Run Control Settings
- 3.7.5. Archive Settings
- 3.7.6. Solution Configuration & Component Names
- 3.7.7. Data Book Definitions
- 3.7.8. Automated Report Generation with LaTeX
- 3.7.8.1. Report Definitions
- 3.7.8.2. Sweep Definitions
- 3.7.8.3. Figure Definitions
- 3.7.8.4. Subfigure Definitions
- 3.7.8.4.1. Run Conditions Table Subfigure
- 3.7.8.4.2. Sweep Conditions Table Subfigure
- 3.7.8.4.3. List of Cases in a Sweep
- 3.7.8.4.4. Tabular Force & Moment Results
- 3.7.8.4.5. Iterative Force or Moment Plot
- 3.7.8.4.6. Iterative Residual History Subfigure
- 3.7.8.4.7. Sweep Plots of Coefficients
- 3.7.8.4.8. Database Coefficient Histogram Plots
- 3.7.8.4.9. Contour Plots of Sweep Coefficient
- 3.7.8.4.10. Single-Case Line Load Plots
- 3.7.8.4.11. Tecplot Layout Subfigure
- 3.7.8.4.12. Paraview Subfigure
- 3.7.8.4.13. Insert Image Subfigure Type
- 3.7.9. RunMatrix or Run Matrix