cape.cfdx.cli: Command-line interface to cape (executable)¶
This module provides the main() function that is used by the
executable called cape.
- class cape.cfdx.cli.Cfdx1to2Args(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxApplyArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxApproveArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxArchiveArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxArgReader(*args, **kw)¶
Bases:
ArgReader- casecntl_mod¶
- cntl_cls¶
- cntl_mod¶
- runner_cls¶
- class cape.cfdx.cli.CfdxBatchArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxCheckArgs(*args, **kw)¶
Bases:
_CfdxCaseLoopArgs
- class cape.cfdx.cli.CfdxCheckDBArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxCheckFMArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxCheckLLArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxCheckTriqFMArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxCleanArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxCollectCutPlaneArgs(*args, **kw)¶
Bases:
CfdxCollectSurfArgs
- class cape.cfdx.cli.CfdxCollectSurfArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxDefailArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxDezombieArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxEditArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxExecArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxExtendArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxExtractDexArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractFMArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractIterFMArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractLLArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractPropArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractPyFuncArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractSurfCpArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractTimeSeriesArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractTriqFMArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxExtractTriqPTArgs(*args, **kw)¶
Bases:
_CfdxExtractArgs
- class cape.cfdx.cli.CfdxFailArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxFindArgs(*args, **kw)¶
Bases:
_CfdxCaseLoopArgs
- class cape.cfdx.cli.CfdxFindJSONArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxFindLargeArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxFrontDesk(*args, **kw)¶
Bases:
CfdxArgReader- infer_cmdname() str¶
Infer sub-command if not determined by first argument
This command is usually overwritten in subclasses for special command-line interfaces where the primary task is inferred from options. This version always returns
None- Call:
>>> cmdname = parser.infer_cmdname()
- Inputs:
- parser:
ArgReader Command-line argument parser
- parser:
- Outputs:
- cmdname:
str Name of sub-command
- cmdname:
- class cape.cfdx.cli.CfdxGetConfigArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxOpenPDFArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxPostFileArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxQdelArgs(*args, **kw)¶
Bases:
_CfdxCaseLoopArgs
- class cape.cfdx.cli.CfdxReceiveFileArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxRemoveCasesArgs(*args, **kw)¶
Bases:
_CfdxCaseLoopArgs
- class cape.cfdx.cli.CfdxReportArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxRunArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxSearchLargeArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxSetConfigArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxSkeletonArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxStartArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxTriangulateCutPlaneArgs(*args, **kw)¶
Bases:
CfdxArgReader
- class cape.cfdx.cli.CfdxUnarchiveArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- class cape.cfdx.cli.CfdxUnmarkArgs(*args, **kw)¶
Bases:
_CfdxSubsetArgs
- cape.cfdx.cli.cape_1to2(*, h: bool | None = None, solver: str | None = None) Tuple[int, Any]¶
Run
cfdx-1to2commandConvert Python and JSON files from CAPE 1 to 2 standard
- cape.cfdx.cli.cape_apply(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, apply: bool | None = None, qsub: bool = False) Tuple[int, Any]¶
Run
cfdx-applycommandRe-apply current settings to case(s)
- Call:
>>> ierr, v = cape_apply(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- apply:
bool Apply current JSON settings to existing case(s)
- qsub: {
False} |bool Don’t submit PBS/Slurm jobs even if otherwise specified
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_approve(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, PASS: bool | None = None) Tuple[int, Any]¶
Run
cfdx-approvecommandMark selected cases as complete
- Call:
>>> ierr, v = cape_approve(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- PASS:
bool Mark case(s) as PASS
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_archive(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, archive: bool | None = None) Tuple[int, Any]¶
Run
cfdx-archivecommandArchive cases; delete files not needed for post-processing
- Call:
>>> ierr, v = cape_archive(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- archive:
bool Archive files from case(s) and delete extra files
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_batch(*, h: bool | None = None, solver: str | None = None) Tuple[int, Any]¶
Run
cfdx-batchcommandSubmit CAPE command as a PBS/Slurm batch job
- cape.cfdx.cli.cape_c(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, cols: str | list | None = None, counters: str | list | None = None, j: bool | None = None, c: bool | None = None, nproc: int = 8, u: str | None = None) Tuple[int, Any]¶
Run
cfdx-checkcommandCheck status of one or more cases
- Call:
>>> ierr, v = cape_c(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- add-cols:
str|list Additional columns to show in run matrix status table
- add-counters:
str|list Additional keys to show totals after run mat table
- cols:
str|list Explicit list of status columns
- counters:
str|list Explicit list of keys to show totals for in
py{x} -c- hide-cols:
str|list Standard columns to hide in run matrix status table
- hide-counters:
str|list Standard keys to omit totals after run mat table
- j:
bool List PBS/Slurm job ID in
-coutput- c:
bool Check and display case(s) status
- nproc: {
8} |int Number of parallel processes to use
- u:
str Pretend to be user UID
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_check_db(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, Any]¶
Run
cfdx-check-dbcommandCheck completion of all databook components
- Call:
>>> ierr, v = cape_check_db(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- check-db: {
True} |bool Check completion of all databook products
- check-fm:
bool Check completion of force & moment components
- check-ll:
bool Check completion of line load components
- check-triqfm:
bool Check completion of patch load (triqfm) components
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_check_fm(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, Any]¶
Run
cfdx-check-fmcommandCheck completion of all force & moment components
- Call:
>>> ierr, v = cape_check_fm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- check-fm: {
True} |bool Check completion of force & moment components
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_check_ll(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, Any]¶
Run
cfdx-check-llcommandCheck completion of all line load components
- Call:
>>> ierr, v = cape_check_ll(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- check-ll: {
True} |bool Check completion of line load components
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_check_triqfm(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, Any]¶
Run
cfdx-check-triqfmcommandCheck completion of TriqFM components
- Call:
>>> ierr, v = cape_check_triqfm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- check-triqfm: {
True} |bool Check completion of patch load (triqfm) components
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_clean(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, clean: bool | None = None) Tuple[int, Any]¶
Run
cfdx-cleancommandRemove extra files not necessary for running a case
- Call:
>>> ierr, v = cape_clean(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- clean:
bool Remove files not necessary for running and not archived
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_collect_cutplane(nsurf: int = None, *, h: bool | None = None, solver: str | None = None, batchsize: int | None = None, clean: bool = False, nmax: int | None = None, nproc: int | None = None, adaptive: bool | None = None, constant: bool | None = None, fixed: bool | None = None, raw: bool | None = None) Tuple[int, Any]¶
Run
cfdx-collect-cutplanecommandCollect cut-plane data in current case folder
- Call:
>>> ierr, v = cape_collect_cutplane(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- nsurf:
int Index of surface to process
- batchsize:
int Number of snapshots to collect into each batch files
- clean: {
False} |bool Remove files not necessary for running and not archived
- nmax:
int Maximum number of snapshots to process
- nproc:
int Number of parallel processes to use
- adaptive:
bool Save the adapted-mesh version of flow data (more data)
- constant:
bool Assume a fixed (not adaptive) mesh for data collection
- fixed:
bool Interpolate flow data to common grid
- raw:
bool Collect raw flow data w/o triangulating or interpolating
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_collect_surfdata(nsurf: int = 1, *, h: bool | None = None, solver: str | None = None, batchsize: int | None = None, clean: bool = False, nmax: int | None = None, nproc: int | None = None) Tuple[int, Any]¶
Run
cfdx-collect-surfcommandCollect surface data in current case folder
- Call:
>>> ierr, v = cape_collect_surfdata(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- nsurf: {
1} |int Index of surface to process
- batchsize:
int Number of snapshots to collect into each batch files
- clean: {
False} |bool Remove files not necessary for running and not archived
- nmax:
int Maximum number of snapshots to process
- nproc:
int Number of parallel processes to use
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_defail(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, defail: bool | None = None) Tuple[int, Any]¶
Run
cfdx-defailcommandRemove FAIL files from case(s)and other failure artifacts
- Call:
>>> ierr, v = cape_defail(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- defail:
bool Clean up FAIL cases, deletes
FAILand others
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_dezombie(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, dezombie: bool | None = None, early: bool | None = None) Tuple[int, Any]¶
Run
cfdx-dezombiecommandDelete job and clean-up stalled cases (aka ‘zombie’ cases)
- Call:
>>> ierr, v = cape_dezombie(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- dezombie:
bool Clean up ZOMBIE cases, RUNNING but no recent file mods
- early:
bool Reduce PhaseIters to current iter; makes case
DONE
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_edit(edit: str, *, h: bool | None = None, solver: str | None = None, f: str | None = None, fjson: str | None = None) Tuple[int, Any]¶
Run
cfdx-edit-jsoncommandEdit JSON settings from command-line
- Call:
>>> ierr, v = cape_edit(*a, **kw)
- Inputs:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_exec(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, e: str | None = None) Tuple[int, Any]¶
Run
cfdx-execcommandRun a shell command in folder of case(s)
- Call:
>>> ierr, v = cape_exec(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- e:
str Execute the command EXEC
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extend(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, extend: bool | int = 1, imax: int | None = None, qsub: bool = False) Tuple[int, Any]¶
Run
cfdx-extendcommandExtend unmarked cases
- Call:
>>> ierr, v = cape_extend(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- extend: {
1} |bool|int Extend case(s) by N_EXT copies of last phase
- imax:
int Do not extend a case beyond iteration M
- qsub: {
False} |bool Don’t submit PBS/Slurm jobs even if otherwise specified
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_dex(dex: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extractcommandExtract DataBook components
- Call:
>>> ierr, v = cape_extract_dex(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- dex:
bool|str Extract DataBook components matching pattern DEX
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_fm(fm: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-fmcommandExtract averaged force & moment results
- Call:
>>> ierr, v = cape_extract_fm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- fm:
bool|str Extract force & moment data [comps matching PAT] for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_iterfm(iter_fm: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-iter-fmcommandExtract iterative force & moment histories
- Call:
>>> ierr, v = cape_extract_iterfm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- iter-fm:
bool|str Extract iterative force & moment histories
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_ll(ll: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-llcommandCompute and extract line load results
- Call:
>>> ierr, v = cape_extract_ll(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- ll:
bool|str Extract line load data [comps matching PAT] for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_prop(prop: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-propcommandExtract other scalar results
- Call:
>>> ierr, v = cape_extract_prop(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- prop:
bool|str Extract scalar properties [comps matching PAT]
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_pyfunc(dbpyfunc: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-pyfunccommandExtract data from custom Python functions
- Call:
>>> ierr, v = cape_extract_pyfunc(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- dbpyfunc:
bool|str Extract scalar data from custom Python function
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_surfcp(surfcp: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-surfcpcommandExtract surfcp data
- Call:
>>> ierr, v = cape_extract_surfcp(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- surfcp:
bool|str Extract surface pressure data for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_timeseries(ts: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-timeseriescommandExtract time series data
- Call:
>>> ierr, v = cape_extract_timeseries(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- ts:
bool|str Extract time-series data [comps matching PAT]
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_triqfm(triqfm: bool | str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None) Tuple[int, Any]¶
Run
cfdx-extract-triqfmcommandExtract post-processed patch loads
- Call:
>>> ierr, v = cape_extract_triqfm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- triqfm:
bool|str Extract triq F&M data [comps matching PAT] for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_extract_triqpt(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, delete: bool | None = None, pt: bool | str | None = None) Tuple[int, Any]¶
Run
cfdx-extract-triqptcommandCollect post-processed point sensor data
- Call:
>>> ierr, v = cape_extract_triqpt(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- delete:
bool Delete DataBook entries instead of adding new ones
- pt:
bool|str Extract surf point sensors [comps matching PAT] for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_fail(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, FAIL: bool | None = None) Tuple[int, Any]¶
Run
cfdx-failcommandMark selected cases as ERRORs
- Call:
>>> ierr, v = cape_fail(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- FAIL:
bool Mark case(s) as ERRORs
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_find(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, cols: str | list | None = None, counters: str | list | None = None, j: bool | None = None) Tuple[int, Any]¶
Run
cfdx-findcommandFind indices of cases meeting constraints
- Call:
>>> ierr, v = cape_find(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- add-cols:
str|list Additional columns to show in run matrix status table
- add-counters:
str|list Additional keys to show totals after run mat table
- cols:
str|list Explicit list of status columns
- counters:
str|list Explicit list of keys to show totals for in
py{x} -c- hide-cols:
str|list Standard columns to hide in run matrix status table
- hide-counters:
str|list Standard keys to omit totals after run mat table
- j:
bool List PBS/Slurm job ID in
-coutput
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_find_json(pat: str | None = None, *, h: bool | None = None, solver: str | None = None) Tuple[int, list]¶
Run
cfdx-find-jsoncommandFind CAPE JSON files
- cape.cfdx.cli.cape_find_large(cutoff: str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, list]¶
Run
cfdx-find-largecommandFind folders with large file size
- Call:
>>> ierr, v = cape_find_large(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- cutoff:
str Min file size or count for ‘large’
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_get_config(opt: str, *, h: bool | None = None, solver: str | None = None) Tuple[int, list]¶
Run
cfdx-get-configcommandShow value of user CAPE configuration
- cape.cfdx.cli.cape_open_pdf(fpdf: str, *, h: bool | None = None, solver: str | None = None, local: bool | None = None, pull: bool | None = None, wait: bool | None = None) Tuple[int, list]¶
Run
cfdx-open-pdfcommandOpen a PDF file in preferred reader
- Call:
>>> ierr, v = cape_open_pdf(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- fpdf:
str Name of PDF file to open/write/send
- local:
bool Force an action to be done locally, without SSH transfer
- pull:
bool Pull remote file to local dir before opening
- remote-dir:
str Base path to use on remote host
- wait:
bool Wait until application closed before returning control
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_post_file(pat: str | None = None, pats: str | None = None, *, h: bool | None = None, solver: str | None = None, v: bool | None = None) Tuple[int, list]¶
Run
cfdx-post-filecommandSend one or more files to RemoteHost
- Call:
>>> ierr, v = cape_post_file(*a, **kw)
- Inputs:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_qdel(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, cols: str | list | None = None, counters: str | list | None = None, j: bool | None = None, qdel: bool = True) Tuple[int, Any]¶
Run
cfdx-qdelcommandDelete PBS/Slurm job of case(s)
- Call:
>>> ierr, v = cape_qdel(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- add-cols:
str|list Additional columns to show in run matrix status table
- add-counters:
str|list Additional keys to show totals after run mat table
- cols:
str|list Explicit list of status columns
- counters:
str|list Explicit list of keys to show totals for in
py{x} -c- hide-cols:
str|list Standard columns to hide in run matrix status table
- hide-counters:
str|list Standard keys to omit totals after run mat table
- j:
bool List PBS/Slurm job ID in
-coutput- qdel: {
True} |bool Delete a PBS/Slurm job
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_receive_file(*, h: bool | None = None, solver: str | None = None) Tuple[int, list]¶
Run
cfdx-receive-filecommandReceive posted file from remote host
- cape.cfdx.cli.cape_report(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, compile: bool | None = None, force: bool | None = None, report: bool | str | None = None, rm: bool | None = None) Tuple[int, Any]¶
Run
cfdx-reportcommandUpdate automated PDF reports
- Call:
>>> ierr, v = cape_report(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- compile:
bool Create images for report but don’t compile PDF
- force:
bool Update report and ignore subfigure cache
- report:
bool|str Generate the report RP or the first in the list
- rm:
bool Remove report figures instead of updating report
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_rm(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, cols: str | list | None = None, counters: str | list | None = None, j: bool | None = None, rm: bool = True, prompt: bool | None = None) Tuple[int, Any]¶
Run
cfdx-rmcommandDelete entire case folders
- Call:
>>> ierr, v = cape_rm(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- add-cols:
str|list Additional columns to show in run matrix status table
- add-counters:
str|list Additional keys to show totals after run mat table
- cols:
str|list Explicit list of status columns
- counters:
str|list Explicit list of keys to show totals for in
py{x} -c- hide-cols:
str|list Standard columns to hide in run matrix status table
- hide-counters:
str|list Standard keys to omit totals after run mat table
- j:
bool List PBS/Slurm job ID in
-coutput- rm: {
True} |bool Remove indicated cases
- prompt:
bool Don’t ask for confirmation when deleting cases w/o iters
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_run(*, h: bool | None = None, solver: str | None = None) Tuple[int, Any]¶
Run
cfdx-runcommandRun case in current folder
- cape.cfdx.cli.cape_search_large(pat: str | None = None, cutoff: str | None = None, *, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None) Tuple[int, Any]¶
Run
cfdx-search-largecommandFind large cases from all run matrices in repo
- Call:
>>> ierr, v = cape_search_large(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- pat:
str Consider file names matching pattern PAT
- cutoff:
str Min file size or count for ‘large’
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_set_config(opt: str, *, h: bool | None = None, solver: str | None = None) Tuple[int, list]¶
Run
cfdx-get-configcommandShow value of user CAPE configuration
- cape.cfdx.cli.cape_skeleton(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, skeleton: bool | None = None) Tuple[int, Any]¶
Run
cfdx-skeletoncommandClean up case folder; leave only key files
- Call:
>>> ierr, v = cape_skeleton(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- skeleton:
bool Delete most files from indicaded PASSED cases
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_start(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, auto: bool | None = None, n: int | None = None, j: bool | None = None, q: bool | None = None, qsub: bool | None = None, u: str | None = None, start: bool = True) Tuple[int, Any]¶
Run
cfdx-startcommandSetup, start, and/or submit cases
- Call:
>>> ierr, v = cape_start(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- auto:
bool Ignore RunControl > NJob if set
- n:
int Submit at most N cases
- j:
bool List PBS/Slurm job ID in
-coutput- q:
bool Submit to PBS/Slurm queue QUEUE, overrides value in JSON file
- qsub:
bool Don’t submit PBS/Slurm jobs even if otherwise specified
- u:
str Pretend to be user UID
- start: {
True} |bool Set up but do not start (or submit) cases
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_triangulate_cutplane(nsurf: int = None, *, h: bool | None = None, solver: str | None = None, batchsize: int | None = None, clean: bool = False, nmax: int | None = None, nproc: int | None = None, adaptive: bool | None = None, constant: bool | None = None, fixed: bool | None = None, raw: bool | None = None) Tuple[int, Any]¶
Run
cfdx-collect-cutplanecommandCollect cut-plane data in current case folder
- Call:
>>> ierr, v = cape_triangulate_cutplane(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- nsurf:
int Index of surface to process
- batchsize:
int Number of snapshots to collect into each batch files
- clean: {
False} |bool Remove files not necessary for running and not archived
- nmax:
int Maximum number of snapshots to process
- nproc:
int Number of parallel processes to use
- adaptive:
bool Save the adapted-mesh version of flow data (more data)
- constant:
bool Assume a fixed (not adaptive) mesh for data collection
- fixed:
bool Interpolate flow data to common grid
- raw:
bool Collect raw flow data w/o triangulating or interpolating
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_unarchive(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, unarchive: bool | None = None) Tuple[int, Any]¶
Run
cfdx-unarchivecommandExpand files from archive
- Call:
>>> ierr, v = cape_unarchive(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- unarchive:
bool Unarchive one or more cases
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.cape_unmark(*, h: bool | None = None, solver: str | None = None, I: str | None = None, cons: str | None = None, f: str | None = None, filter: str | None = None, glob: str | None = None, marked: bool | None = None, me: bool | None = None, re: str | None = None, status: str | None = None, unmarked: bool | None = None, user: str | None = None, x: str | None = None, unmark: bool | None = None) Tuple[int, Any]¶
Run
cfdx-unmarkcommandRemove PASS/ERROR markings for selected cases
- Call:
>>> ierr, v = cape_unmark(*a, **kw)
- Inputs:
- h:
bool Print this help message and exit
- solver:
str Name of CAPE module to use (or determine automatically)
- I:
str Specific case indices, e.g.
-I 4:8,12- cons:
str Constraints on run matrix keys, e.g.
"mach>1.0"- f:
str Use the JSON (or YAML) file JSON
- filter:
str Limit to cases containing the string TXT
- glob:
str Limit to cases whose name matches the filename pattern PAT
- marked:
bool Show only cases marked either PASS or ERROR
- me:
bool Limit to cases owned by current user (equiv.
--user $USER)- re:
str Limit to cases containing regular expression REGEX
- status:
str Find cases with a specific status
- unmarked:
bool Show cases with no PASS/ERROR markings
- user:
str Restrict to cases with this username
- x:
str Execute Python script PYSCRIPT after reading JSON
- unmark:
bool Remove PASS/ERROR marking for case(s)
- h:
- Outputs:
- ierr:
int Return code
- v: any
Output from API function
- ierr:
- cape.cfdx.cli.main(argv: list | None = None) int¶
Main interface to
cape-cfdxThis is basically an interface to
cape.cfdx.cntl.Cntl.cli().- Call:
>>> main()
- Versions:
2021-03-04
@ddalle: v1.0
- cape.cfdx.cli.main_template(parser_cls: CfdxFrontDesk, argv: list | None = None) int¶
- cape.cfdx.cli.read_cntl(cls: ArgReader, *a, **kw)¶
Read a CAPE run matrix control instance of appropriate class
- Call:
>>> cntl, parsed_kw = read_cntl(fname=None, solver=None, **kw)
- Inputs:
- Outputs:
- cntl:
cape.cfdx.cntl.Cntl CAPE run matrix control instance (solver-specific)
- cntl:
- Versions:
2024-12-19
@ddalle: v1.02025-01-24
@ddalle: v2.0; use module name instead of cls
- cape.cfdx.cli.read_runner(**kw) tuple¶
Read a CAPE case runner instance to interact with CFD in $PWD
- Call:
>>> runner, kw = read_runner(**kw)
- Inputs:
- solver: {
None} |str Solver module (e.g.
"pyfun"), or auto-determine
- solver: {
- Outputs:
- runner:
cape.cfdx.casecntl.CaseRunner Case runner instance to control case in current folder
- kw:
dict Preprocessed keyword arguments
- runner:
- Versions:
2024-12-30
@ddalle: v1.02025-01-24
@ddalle: v2.0; use module name instead of cls