public class AeroReference
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
AeroReference(double area,
javax.measure.unit.Unit<javax.measure.quantity.Area> areaUnits,
double length,
double span,
double Xmrc,
double Ymrc,
double Zmrc,
javax.measure.unit.Unit<javax.measure.quantity.Length> lengthUnits)
Creates an AeroReference object with the given reference quantities and units.
|
Modifier and Type | Method and Description |
---|---|
void |
changeAreaUnits(javax.measure.unit.Unit<javax.measure.quantity.Area> newUnit)
Change the current area units used by this reference object.
|
void |
changeLengthUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> newUnit)
Change the current length units used by this reference object.
|
java.lang.Object |
clone()
Make a copy of this AeroReference object.
|
boolean |
equals(java.lang.Object obj)
Returns true if the input AeroReference object has the same numerical values (same
reference area, same span, etc) as this one.
|
javax.measure.unit.Unit<javax.measure.quantity.Area> |
getAreaUnits()
Return the area units currently being used by this aero reference object.
|
javax.measure.unit.Unit<javax.measure.quantity.Length> |
getLengthUnits()
Return the length units currently being used by this aero reference object.
|
double |
getMomentRefX()
Return the X coordinate of the moment reference center location in the current
length units used by this AeroReference object.
|
double |
getMomentRefXRU()
Return the X coordinate of the moment reference center location.
|
double |
getMomentRefY()
Return the Y coordinate of the moment reference center location in the current
length units used by this AeroReference object.
|
double |
getMomentRefYRU()
Return the Y coordinate of the moment reference center location.
|
double |
getMomentRefZ()
Return the Z coordinate of the moment reference center location in the current
length units used by this AeroReference object.
|
double |
getMomentRefZRU()
Return the Z coordinate of the moment reference center location.
|
double |
getRefArea()
Return the reference area in the current area units used by this AeroReference
object.
|
double |
getRefAreaRU()
Return the reference area in the reference units (sq.
|
double |
getRefLength()
Return the reference length in the current length units used by this AeroReference
object.
|
double |
getRefLengthRU()
Return the reference length in the reference units (meters).
|
double |
getRefSpan()
Return the reference span in the current length units used by this AeroReference
object.
|
double |
getRefSpanRU()
Return the reference span in reference length units (meters).
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Method that returns a string representations of the reference quantities contained
in this object.
|
public AeroReference(double area, javax.measure.unit.Unit<javax.measure.quantity.Area> areaUnits, double length, double span, double Xmrc, double Ymrc, double Zmrc, javax.measure.unit.Unit<javax.measure.quantity.Length> lengthUnits)
area
- Reference area. Normally the projected wing planform area.areaUnits
- Units used by the reference area parameter. If null
is passed, standard SI area units are used (m^2).length
- Reference chord length. Normally the wing planform mean aerodynamic
chord (MAC) length.span
- Reference span length. Normally the tip-to-tip distance on the wing
planform.Xmrc
- Moment reference center location X coordinate.Ymrc
- Moment reference center location Y coordinate.Zmrc
- Moment reference center location Z coordinate.lengthUnits
- Units used by all the length and position parameters.
If null
is passed, standard SI units are used (m).public javax.measure.unit.Unit<javax.measure.quantity.Area> getAreaUnits()
public void changeAreaUnits(javax.measure.unit.Unit<javax.measure.quantity.Area> newUnit)
newUnit
- The new area units to convert reference area to.public javax.measure.unit.Unit<javax.measure.quantity.Length> getLengthUnits()
public void changeLengthUnits(javax.measure.unit.Unit<javax.measure.quantity.Length> newUnit)
newUnit
- The new length units to convert reference lengths and moment
reference position to.public double getMomentRefX()
public double getMomentRefXRU()
public double getMomentRefY()
public double getMomentRefYRU()
public double getMomentRefZ()
public double getMomentRefZRU()
public double getRefArea()
public double getRefAreaRU()
public double getRefLength()
public double getRefLengthRU()
public double getRefSpan()
public double getRefSpanRU()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The AeroReference object we are comparing this one to.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object