pyCAPS
pyCAPS: A Python Extension Module for CAPS
problem6.py
Example use case for the
pyCAPS.capsProblem.createTree()
function.
1
# Use: Check creating a tree on the problem
2
3
# Import pyCAPS module (Linux and OSx = pyCAPS.so file; Windows = pyCAPS.pyd file)
4
import
pyCAPS
5
6
# Instantiate our CAPS problem "myProblem"
7
myProblem =
pyCAPS.capsProblem
()
8
9
# Load a *.csm file "./csmData/cfdMultiBody.csm" into our newly created problem.
10
myGeometry = myProblem.loadCAPS(
"./csmData/cfdMultiBody.csm"
, verbosity =
"debug"
)
11
12
# Create problem tree
13
myProblem.createTree()
14
15
# Close our problems
16
myProblem.closeCAPS()
Generated on Mon May 14 2018 08:13:13 for pyCAPS by
1.8.13