cape.pyover.plot3d: Interface to OVERFLOW Plot3D files¶
This module provides a generic Plot3D file interface for reading
OVERFLOW grid system and solution files using the classes
pyOver.plot3d.X and pyOver.plot3d.Q.
These classes contain customizations of the generic Plot3D grid interface
cape.plot3d.X for OVERFLOW. In addition to reading the
custommized header from OVERFLOW q files, it also contains special
calculators such as Q.get_Cp() that calculate derived quantities
from the native OVERFLOW output state variables.
- See also:
- class cape.pyover.plot3d.Q(fname, endian=None)¶
General OVERFLOW
qfile interface- Call:
>>> q = pyOver.plot3d.Q(fname, endian=None)
- Inputs:
- fname:
str Name of file to read
- endian: {
None} | “big” | “little” Manually-specified byte order
- fname:
- Outputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- q:
- Versions:
2016-02-26
@ddalle: First version
- GetGridDims()¶
Read the dimensions for each grid
- Call:
>>> q.GetGridDims()
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- q:
- Data members:
- q.JD:
numpy.ndarray(intsize=*q.nGrid*) J dimensions of each grid
- q.KD:
numpy.ndarray(intsize=*q.nGrid*) K dimensions of each grid
- q.LD:
numpy.ndarray(intsize=*q.nGrid*) L dimensions of each grid
- q.NQ:
int Number of conserved variables plus one for gamma
- q.NQC:
int Number of species concentrations,
0if not using
- q.JD:
- Versions:
2016-02-26
@ddalle: First version
- GetNGrid()¶
Read the number of grids and determine multiple grid status
- Call:
>>> nGrid = q.GetNGrid()
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- q:
- Outputs:
- nGrid:
int Number of grids
- nGrid:
- Versions:
2016-02-26
@ddalle: First version
- InitHeaders()¶
Initialize reference quantities for each grid
- Call:
>>> q.InitHeaders()
- Inputs:
- q:
pyOver.plot3d.Q Generic OVERFLOW module
- q:
- Versions:
2016-02-26
@ddalle: First version
- Read()¶
Read an OVERFLOW generic Q file
- ReadQData(IG=None)¶
Read the data
- ReadQHeader(IG=None)¶
Read header info assuming the file marker is in the correct place
- Call:
>>> q.ReadQHeader(IG=None)
- Inputs:
- q:
pyOver.plot3d.Q Generic OVERFLOW module
- IG:
int Grid number to read, defaults to
len(q.Q)+1
- q:
- Versions:
2016-02-26
@ddalle: First version
- get_Cp(IG, **kw)¶
Get pressure coefficients from a grid
- Call:
>>> Cp = q.get_Cp(IG, **kw)
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- IG:
int Grid number (one-based index)
- q:
- Keyword arguments:
- J:
int|list[int] Single grid index, j direction
- JS:
int Start index, j direction
- JE:
int End index, j direction
- K:
int|list[int] Single grid index, k direction
- KS:
int Start index, k direction
- KE:
int End index, k direction
- L:
int|list[int] Single grid index, l direction
- LS:
int Start index, l direction
- LE:
int End index, l direction
- J:
- Outputs:
- See also:
expand_grid_indices()- Versions:
2016-02-26
@ddalle: First version
- get_M(IG, **kw)¶
Get Mach numbers from a grid
- Call:
>>> M = q.get_M(IG, **kw)
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- IG:
int Grid number (one-based index)
- q:
- Keyword arguments:
- J:
int|list[int] Single grid index, j direction
- JS:
int Start index, j direction
- JE:
int End index, j direction
- K:
int|list[int] Single grid index, k direction
- KS:
int Start index, k direction
- KE:
int End index, k direction
- L:
int|list[int] Single grid index, l direction
- LS:
int Start index, l direction
- LE:
int End index, l direction
- J:
- Outputs:
- See also:
expand_grid_indices()- Versions:
2016-03-07
@ddalle: First version
- get_T(IG, **kw)¶
Get dimensional point temperatures from a grid in degrees Rankine
- Call:
>>> p = q.get_p(IG, **kw)
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- IG:
int Grid number (one-based index)
- q:
- Keyword arguments:
- J:
int|list[int] Single grid index, j direction
- JS:
int Start index, j direction
- JE:
int End index, j direction
- K:
int|list[int] Single grid index, k direction
- KS:
int Start index, k direction
- KE:
int End index, k direction
- L:
int|list[int] Single grid index, l direction
- LS:
int Start index, l direction
- LE:
int End index, l direction
- J:
- Outputs:
- See also:
expand_grid_indices()- Versions:
2016-03-07
@ddalle: First version
- get_p(IG, **kw)¶
Get dimensional point pressures from a grid in lb/ft^2
- Call:
>>> p = q.get_p(IG, **kw)
- Inputs:
- q:
pyOver.plot3d.Q General OVERFLOW q-file interface
- IG:
int Grid number (one-based index)
- q:
- Keyword arguments:
- J:
int|list[int] Single grid index, j direction
- JS:
int Start index, j direction
- JE:
int End index, j direction
- K:
int|list[int] Single grid index, k direction
- KS:
int Start index, k direction
- KE:
int End index, k direction
- L:
int|list[int] Single grid index, l direction
- LS:
int Start index, l direction
- LE:
int End index, l direction
- J:
- Outputs:
- See also:
expand_grid_indices()- Versions:
2016-03-07
@ddalle: First version
- class cape.pyover.plot3d.X(fname, endian=None)¶
General OVERFLOW
xfile interface- Call:
>>> x = pyOver.plot3d.X(fname, endian=None)
- Inputs:
- fname:
str Name of file to read
- endian: {
None} | “big” | “little” Manually-specified byte order
- fname:
- Outputs:
- x:
pyOver.plot3d.X General OVERFLOW x-file interface
- x:
- Versions:
2016-08-31
@ddalle: First version