cape.pyfun.lineLoad: Sectional loads module¶
This module contains functions for reading and processing sectional
loads. It is a version of cape.cfdx.lineLoad that is closely
tied to cape.pyfun.dataBook.
It provides the primary class DBLineLoad, which
is a subclass of cape.cfdx.dataBook.DBBase. This class is an
interface to all line load data for a specific surface component.
For reading the sectional load for a single solution on one component
(which includes multiple coefficients), there is another class
CaseLL.
Finally, reading seam curves from individual cases utilizes the class
CaseSeam.
Line load databook: pyFun.lineLoad.DBLineLoad¶
- class cape.pyfun.lineLoad.DBLineLoad(comp, cntl, conf=None, RootDir=None, **kw)¶
Line load (sectional load) data book for one group
- Call:
>>> DBL = DBLineLoad(cntl, comp, conf=None, RootDir=None)- Inputs:
- x:
cape.runmatrix.RunMatrixRunMatrix/run matrix interface
- opts:
cape.options.OptionsOptions interface
- comp:
strName of line load component
- conf: {
"None"} |cape.config.ConfigSurface configuration interface
- RootDir: {
"None"} |strRoot directory for the configuration
- Outputs:
- DBL:
pyCart.lineLoad.DBLineLoadInstance of line load data book
- DBL.nCut:
intNumber of x-cuts to make, based on options in cart3d
- DBL.RefL:
floatReference length
- DBL.MRP:
numpy.ndarrayshape=(3,)Moment reference center
- DBL.x:
numpy.ndarrayshape=(nCut,)Locations of x-cuts
- DBL.CA:
numpy.ndarrayshape=(nCut,)Axial force sectional load, d(CA)/d(x/RefL))
- Versions:
2015-09-16
@ddalle: First version
Case line load: pyFun.lineLoad.CaseLL¶
- class cape.pyfun.lineLoad.CaseLL(comp, proj='LineLoad', sec='dlds', **kw)¶
Individual class line load class
- Call:
>>> LL = CaseLL(cart3d, i, comp)- Inputs:
- cart3d:
cape.pycart.cntl.CntlMaster pyCart interface
- i:
intCase index
- comp:
strName of line load group
- Outputs:
- LL:
pyCart.lineLoad.CaseLLInstance of individual case line load interface
- LL.nCut:
intNumber of x-cuts to make, based on options in cart3d
- LL.nIter:
intLast iteration in line load file
- LL.nStats:
intNumber of iterations in line load file
- LL.RefL:
floatReference length
- LL.MRP:
numpy.ndarrayshape=(3,)Moment reference center
- LL.x:
numpy.ndarrayshape=(nCut,)Locations of x-cuts
- LL.CA:
numpy.ndarrayshape=(nCut,)Axial force sectional load, d(CA)/d(x/RefL))
- Versions:
2015-09-16
@ddalle: First version2016-06-07
@ddalle: Subclassed
Line Load seam class: pyFun.lineLoad.CaseSeam¶
- class cape.pyfun.lineLoad.CaseSeam(fname, comp='entire', proj='LineLoad')¶
Seam curve interface
- Call:
>>> S = CaseSeam(fname, comp='entire', proj='LineLoad')- Inputs:
- Outputs:
- S
CaseSeamSeam curve interface
- S.ax:
"x"|"y"|"z"Name of coordinate being held constant
- S.x:
float| {list(np.ndarray)}x-coordinate or list of seam x-coordinate vectors
- S.y:
float| {list(np.ndarray)}y-coordinate or list of seam y-coordinate vectors
- S.z: {
float} |list(np.ndarray)z-coordinate or list of seam z-coordinate vectors
- Versions:
2016-06-09
@ddalle: First version
Unbound methods¶
- cape.pyfun.lineLoad.GetPltFile()¶
Get most recent boundary
pltfile and its associated iterations