The cape
module¶
The cape
module contains the top-level interface setup of various
solvers. It loads the most important methods from the various submodules
so that they are easier to access. Most tasks using the Cape API can be
accessed by loading this module.
import cape
For example the following will read in a global settings instance assuming that the present working directory contains the correct files. (If not, various defaults will be used, but it is unlikely that the resulting setup will be what you intended.)
import cape cntl = cape.Cntl()
Most of the pyCart submodules essentially contain a single class
definition, and many of these classes are accessible directly from the
cape
module. The list of classes loaded directly in cape
.
A categorized list of modules available to the API are listed below.
- Primary supporting modules
cape.cfdx.bin
cape.cfdx.cmd
cape.io
Notices
Copyright © 2022 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.
Disclaimers
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED “AS IS” WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT “AS IS.”
Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT’S USE OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT’S USE OF THE SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW. RECIPIENT’S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
cape.cfdx
: Templates for CFD control toolscape.cfdx
: Executive for Running CFD Solverscape.cfdx.case
: Case Control Modulecape.cfdx.cmd
: Creating system commandscape.cfdx.bin
: CAPE executable operationcape.cfdx.dataBook
: CFD Data book nodule- Global data book container class
- Individual data books
- Data book classes for individual cases
- Other
cape.cfdx.dataBook
methods cape.cfdx.lineLoad
: Sectional loads databookcape.cfdx.pointSensor
: Point sensor databook- Point sensor group data book
- Individual point sensor data books
cape.cfdx.queue
: PBS queue interface modulecape.cfdx.report
: Automated CFD report interfacecape.cfdx.volcomp
: Cell volume computation toolscape.cfdx.options
: Options packagecape.cfdx.cli_doc
: Template help messages for CAPE executables
cape.filecntl
: Interfaces for text control filescape.filecntl
: Control interfaces to text-based file formatscape.filecntl.filecntl
: File control base modulecape.filecntl.namelist
: Fortran namelists modulecape.filecntl.namelist2
: Fortran namelists with repeat sectionscape.filecntl.tecplot
: Interface to Tecplot scriptscape.filecntl.tex
: Interface to LaTeX files
argread
: Parse command-line arguments and optionscape.atm
Atmosphere Modelscapeio
: Binary file input/output toolscape.cgns
: CGNS File Interfacecape.cntl
: Base module for CFD operations and processingcape.config
: Surface configuration modulecape.convert
: Unit and angle conversion utilitiescape.geom
: Generic geometry utilitiescape.fileutils
: Pure-Python file information utilitiescape.manage
: Manage CFD case folderscape.msh
: FLUENT mesh moduleoptdict
: Advanceddict
-based options interfaceopterror
: Errors forOptionsDict
toolsoptdict.optitem
: Tools to access items from option listscape.plot3d
: Python interface to Plot3D filescape.plt
: Python interface to Tecplot PLT filescape.runmatrix
: Run matrix interfacecape.step
: Python interface to STEP Filescape.tar
: Semiautomatic folder archivingcape.text
: Docstring markdown modulecape.tri
: Surface triangulation module- Base triangulation module
- Plain surface triangulation
- Annotated surface triangulation with solution (
triq
files) cape.util
: Cape utilitiescape.xmlfile
: Extended interface to XML files- Compiled Cape functions