public final class CSTClassFunction extends java.lang.Object implements java.lang.Cloneable, javolution.xml.XMLSerializable, javolution.lang.ValueType
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
static CSTClassFunction |
BLUNTNOSED_AIRFOIL
A class function for a blunt-nosed airfoil (subsonic airfoil).
|
static CSTClassFunction |
CONE_WEDGE
A class function for a cone or wedge shape.
|
static CSTClassFunction |
ELLIPTICAL
A class function for an elliptical shape/airfoil.
|
static CSTClassFunction |
RECTANGULAR
A class function for a rectangular shape.
|
static CSTClassFunction |
SEARS_HAACK
A class function for a Sears-Haack minimum wave-drag body profile.
|
static CSTClassFunction |
SHARPNOSED_AIRFOIL
A class function for a sharp-nosed airfoil (supersonic airfoil).
|
Modifier and Type | Method and Description |
---|---|
CSTClassFunction |
copy()
Returns a copy of this CSTClassFunction instance
allocated by the calling thread
(possibly on the stack). |
boolean |
equals(java.lang.Object obj)
Compares this CSTClassFunction against the specified object for strict equality
(same values).
|
double[] |
getDerivatives(double s,
int grade)
Calculate all the derivatives from
0 to grade with
respect to parametric distance on the class function for the given parametric
distance along the class function, d^{grade}p(s)/d^{grade}s . |
double |
getN1()
Return the first exponent of the class function, N1.
|
double |
getN2()
Return the second exponent of the class function, N2.
|
double |
getValue(double s)
Return the value of this class function at the specified parametric location.
|
int |
hashCode()
Returns the hash code for this object.
|
static CSTClassFunction |
newInstance(double N1,
double N2)
Construct a new CST Class Function using the specified exponents.
|
public static final CSTClassFunction BLUNTNOSED_AIRFOIL
public static final CSTClassFunction SHARPNOSED_AIRFOIL
public static final CSTClassFunction ELLIPTICAL
public static final CSTClassFunction SEARS_HAACK
public static final CSTClassFunction CONE_WEDGE
public static final CSTClassFunction RECTANGULAR
public static CSTClassFunction newInstance(double N1, double N2)
N1
- The 1st exponent of the class function (leading edge exponent).N2
- The 2nd exponent of the class function (trailing edge exponent).public double getN1()
public double getN2()
public double getValue(double s)
s
- The parametric distance to calculate this class functions value for (0 to
1 inclusive).public double[] getDerivatives(double s, int grade)
0
to grade
with
respect to parametric distance on the class function for the given parametric
distance along the class function, d^{grade}p(s)/d^{grade}s
.
Example:
1st derivative (grade = 1), this returns [p(s), dp(s)/ds]
;
2nd derivative (grade = 2), this returns [p(s), dp(s)/ds, d^2p(s)/d^2s]
; etc.
s
- Parametric distance to calculate derivatives for (0.0 to 1.0
inclusive).grade
- The maximum grade to calculate the derivatives for (0 = value only,
1=value + 1st derivative, 2=value + 1st derivative + 2nd derivative, etc)java.lang.IllegalArgumentException
- if the grade is < 0.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with.true
if this object is identical to that object;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public CSTClassFunction copy()
allocated
by the calling thread
(possibly on the stack).copy
in interface javolution.lang.ValueType