|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicScalarFunction
function.WaveDragAxisymmetric.Panair
public static class WaveDragAxisymmetric.Panair
Runs PANAIR to compute the wave drag of these axisymmetric bodies.
| Field Summary | |
|---|---|
protected java.lang.String |
filenamePrefix
|
protected static int |
INSTANCE_COUNT
|
protected static PanairRunnerShevell |
panairRunner
|
| Fields inherited from class function.BasicScalarFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
WaveDragAxisymmetric.Panair()
|
|
| Method Summary | |
|---|---|
Hypercube |
getBounds()
Returns a Hypercube specifying the domain of this
Computable. |
WaveDragAxisymmetric |
getParent()
Returns the parent container. |
void |
init()
Initialization method. |
static void |
main(java.lang.String[] args)
Tests the Sears-Haack and quadratic bodies. |
double |
quickCompute(double[] x)
Compute method without dimension checking. |
static double |
readPanairOutput(java.lang.String filename)
Processes PANAIR output in output file of the given file name. |
protected java.lang.String |
renameInputFile(java.lang.Integer index)
Renames the input file. |
void |
setBounds(Hypercube bounds)
Sets the bounds for this ScalarFunction. |
void |
setParent(WaveDragAxisymmetric parent)
Sets the parent. |
protected int |
writePanairInput(double[] r,
int n,
double[] x,
double L,
double M)
Write PANAIR input file by calling C and then Fortran |
| Methods inherited from class function.BasicScalarFunction |
|---|
checkDimensions, compute, compute, compute, compute, compute, compute, getInputDimension, getOutputDimension, isWithinBounds, makeBounds, quickCompute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int INSTANCE_COUNT
protected static PanairRunnerShevell panairRunner
protected java.lang.String filenamePrefix
| Constructor Detail |
|---|
public WaveDragAxisymmetric.Panair()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Mach number, body length, and nominal radius.public static double readPanairOutput(java.lang.String filename)
filename - the given file name.
public Hypercube getBounds()
ComputableHypercube specifying the domain of this
Computable.
getBounds in interface ComputablegetBounds in class BasicScalarFunctionScalarFunction.public WaveDragAxisymmetric getParent()
public void init()
BasicScalarFunction
init in interface ScalarFunctioninit in class BasicScalarFunctionpublic double quickCompute(double[] x)
BasicScalarFunction
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionx - the given input.
public void setBounds(Hypercube bounds)
VariableBoundsScalarFunction.
setBounds in interface VariableBoundsbounds - the given bounds.public void setParent(WaveDragAxisymmetric parent)
parent - the given parent.protected java.lang.String renameInputFile(java.lang.Integer index)
index - the numeric suffix to add.
protected int writePanairInput(double[] r,
int n,
double[] x,
double L,
double M)
r - radiin - number of radii specifiedx - x-locations (note: first and last points not included in r)L - body lengthM - Mach number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||