The cape.pyfun
module¶
The cape.pyfun
module contains the top-level interface for FUN3D
setup, execution, and post-processing. It loads some of the most
important methods from the various submodules so that they are easier
to access. Most tasks using the pyFun API can be accessed by loading
this module and reading one instance of the
cape.pyfun.cntl.Cntl
class.
import cape.pyfun
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.pyfun cntl = cape.pyfun.Cntl()
Most of the pyFun submodules essentially contain a single class
definition, which is derived from a similarly named cape
module.
For example, cape.pyfun.dataBook.DBComp
is subclassed to
cape.cfdx.dataBook.DBComp
, but several functions are edited
because their functionality needs customization for FUN3D. For
example, reading iterative force & moment histories require a
customized method for each solver.
The following classes are imported in this module, so that code like
cape.pyfun.Cntl
will work (although cape.pyfun.cntl.Cntl
will
also work).
cape.pyfun.runmatrix.RunMatrix
Modules included within this one are outlined below.
- FUN3D and Cape files
cape.pyfun.runmatrix
- Supporting modules
cape.pyfun.cmd
cape.pyfun.bin
The following lists the pyFun submodules, which contain the main functionality and define the classes that are the workhorses of pyFun.
cape.pyfun.cntl
: FUN3D control module- FUN3D executive class:
cape.pyfun.cntl.Cntl
cape.pyfun.options
: FUN3D and pyFun settingscape.pyfun.options
: FUN3D options interface modulecape.pyfun.options.archiveopts
cape.pyfun.options.configopts
: FUn3D surface config optscape.pyfun.options.fun3dnml
: FUN3D namelist optionscape.pyfun.options.runctlopts
: FUN3D run control optionscape.pyfun.options.util
: Utilities for pyFun options modulecape.pyfun.options.meshopts
cape.pyfun.options.databookopts
cape.pyfun.case
: FUN3D case control modulecape.pyfun.namelist
cape.pyfun.mapbc
: FUN3D boundary condition modulecape.pyfun.faux
: FAUXGeom interface modulecape.pyfun.rubberData
: FUN3D filerubber.data
cape.pyfun.cmd
: Create commands for FUN3D executablescape.pyfun.bin
: FUN3D binary interface modulecape.pyfun.dataBook
: pyFun data book module- Global pyFun data book:
pyFun.dataBook.DataBook
- Individual data books
- Data book classes for individual cases
- Other
cape.pyfun.dataBook
methods cape.pyfun.lineLoad
: Sectional loads module- Line load databook:
pyFun.lineLoad.DBLineLoad
- Case line load:
pyFun.lineLoad.CaseLL
- Line Load seam class:
pyFun.lineLoad.CaseSeam
- Unbound methods
cape.pyfun.pointSensor
: FUN3D point sensors modulecape.pyfun.plt
: Interface to FUN3D Tecplot PLT filescape.pyfun.report
: Automated report interfacecape.pyfun.manage
: Manage pyFun case folderscape.pyfun.tricli
: Special FUN3D triangulation interfacescape.pyfun.util
: Utilities for pyFun