|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicScalarFunction
function.WaveDragAxisymmetric.AreaRule
public static class WaveDragAxisymmetric.AreaRule
Function for computing the wave-drag coefficient C_D_w of an axisymmetric body. The input to the problem comprises the radii of the body at a predetermined set of x-locations, and the output is the wave drag of that configuration.
| Field Summary |
|---|
| Fields inherited from class function.BasicScalarFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
WaveDragAxisymmetric.AreaRule()
|
|
| Method Summary | |
|---|---|
Hypercube |
getBounds()
Returns a Hypercube specifying the domain of this
Computable. |
WaveDragAxisymmetric |
getParent()
Returns the parent WaveDragAxisymmetric container. |
void |
init()
Initialization method. |
static void |
main(java.lang.String[] args)
Tests the nominal (quadratic) and Sears-Haack bodies on the area-rule analysis. |
double |
quickCompute(double[] x)
Compute method without dimension checking. |
void |
quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein. |
void |
setBounds(Hypercube bounds)
Sets the bounds for this ScalarFunction. |
void |
setParent(WaveDragAxisymmetric parent)
Sets the parent. |
protected void |
vectorize(cern.colt.matrix.DoubleMatrix2D mat,
int rowCount,
double[] rVec)
Vectorizes a matrix for sending to Fortran. |
| Methods inherited from class function.BasicScalarFunction |
|---|
checkDimensions, compute, compute, compute, compute, compute, compute, getInputDimension, getOutputDimension, isWithinBounds, makeBounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WaveDragAxisymmetric.AreaRule()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Mach number, length, and max radius.public Hypercube getBounds()
ComputableHypercube specifying the domain of this
Computable.
getBounds in interface ComputablegetBounds in class BasicScalarFunctionScalarFunction.public WaveDragAxisymmetric getParent()
WaveDragAxisymmetric container.
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 quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
BasicScalarFunctionDoubleMatrix2D and exploiting optimized operations therein.
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionmat - given matrix of inputs.outputs - vector to store the result.public void setBounds(Hypercube bounds)
VariableBoundsScalarFunction.
setBounds in interface VariableBoundsbounds - the given bounds.public void setParent(WaveDragAxisymmetric parent)
parent - the given parent.
protected void vectorize(cern.colt.matrix.DoubleMatrix2D mat,
int rowCount,
double[] rVec)
mat - The given matrix.rowCount - the number of rows.rVec - an array to hold the vectorized result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||