Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Wing Class Reference

#include <wing.h>

List of all members.

Public Methods

 Wing ()
 Constructor. More...

 ~Wing ()
 Destructor. More...

void Initialize ()
 Initialization routine (resets variables). More...

Wing & operator= (const Wing &)
 Assignment operator overloading for copying. More...

void readTrajectory (double t, double *u, double *v, double *w)
 Read trajectory info for time "t" and return velocity (u,v,w). More...

void Setup (char *inpfile, char *name, char *type, double x0, double y0, double z0, double wingspan, double wingarea, double wingweight, double temperature, int nwakemax)
 Setup the aircraft at location (x0,y0,z0) with supplied parameters. More...

void Allocate (int nwakemax)
 Allocate space for vortex-elements (max elements: nwakemax). More...

void DeAllocate (int nwakemax)
 Free space allocated for vortex-elements. More...

int packWing (unsigned char **dataptr, int *totsize)
 Pack wing for efficient communication from one processor to another. More...

int unpackWing (unsigned char *data, int totsize)
 Unpack pack after communication completed. More...

double getGwing (double temperature)
 Vortex strength (gamma) for current element at wing-tip. More...

double Speed ()
 Current speed of the aircraft. More...

double Height ()
 Current height of the aircraft above the ground. More...


Public Attributes

double gwing
 vortex-strength (gamma) at wing-tip. More...

double ewing
 size of vortex core (meters). More...

double xwing_i [2][3]
 Initial location of wing-tips (meters). More...

double vwing_i [2][3]
 Initial velocity of wing-tips (i.e., aircraft) (m/s). More...

char Name [30]
 Identification label for aircraft. More...

char AircraftType [30]
 Type of aircraft (e.g., Boeing 777, Airbus 320, etc.). More...

char trajectoryname [100]
 Name of file containing trajectory information. More...

double * ewake
 core size (meters) of array of tip vortices. More...

FILE * trajectory
 File-pointer for trajector file "trajectoryname". More...

double xwing [2][3]
 Current location of wing-tips (meters). More...

double vwing [2][3]
 Current velocity of wing-tips (i.e., aircraft) (m/s). More...

double * gwake
 Vortex strength (gamma) of each segment of tip vortices. More...

double * twake
 Age of each segment of tip vortices (seconds). More...

double(* xwake )[2][3]
 Coordinates of points along tip vortices (meters). More...

double(* vwake )[2][3]
 Velocity of points along tip vortices (m/s). More...

double timeElapsed
 Time elapsed since vortex-elements for aircraft being tracked (sec). More...

int iter
 Number of iterations. More...

double span
 Wing-span (meters). More...

double weight
 Weight of aircraft (kg). More...

double area
 Area of wing (meters^2). More...

int OutOfRange
 Out-of-range flag. More...

int ToBeDeleted
 Deletion flag. More...

int nvort
 Current number of vortex elements being tracked (<= nwakemax). More...

int ID
 ID for the aircraft. More...

double DistFromAirport
 Distance from the center of the airport (Kilometers). More...

Trajectory traj
 Trajectory associated with the aircraft. More...


Friends

ostream & operator<< (ostream &Out, Wing &V)


Constructor & Destructor Documentation

Wing::Wing  
 

Constructor.

Wing::~Wing  
 

Destructor.


Member Function Documentation

void Wing::Allocate int    nwakemax
 

Allocate space for vortex-elements (max elements: nwakemax).

void Wing::DeAllocate int    nwakemax
 

Free space allocated for vortex-elements.

double Wing::getGwing double    temperature
 

Vortex strength (gamma) for current element at wing-tip.

double Wing::Height   [inline]
 

Current height of the aircraft above the ground.

void Wing::Initialize  
 

Initialization routine (resets variables).

Wing & Wing::operator= const Wing &    W
 

Assignment operator overloading for copying.

int Wing::packWing unsigned char **    dataptr,
int *    totsize
 

Pack wing for efficient communication from one processor to another.

void Wing::readTrajectory double    t,
double *    u,
double *    v,
double *    w
 

Read trajectory info for time "t" and return velocity (u,v,w).

void Wing::Setup char *    inpfile,
char *    name,
char *    type,
double    x0,
double    y0,
double    z0,
double    wingspan,
double    wingarea,
double    wingweight,
double    temperature,
int    nwakemax
 

Setup the aircraft at location (x0,y0,z0) with supplied parameters.

double Wing::Speed   [inline]
 

Current speed of the aircraft.

int Wing::unpackWing unsigned char *    data,
int    totsize
 

Unpack pack after communication completed.


Friends And Related Function Documentation

ostream& operator<< ostream &    Out,
Wing &    W
[friend]
 


Member Data Documentation

char Wing::AircraftType[30]
 

Type of aircraft (e.g., Boeing 777, Airbus 320, etc.).

double Wing::area
 

Area of wing (meters^2).

double Wing::DistFromAirport
 

Distance from the center of the airport (Kilometers).

double* Wing::ewake
 

core size (meters) of array of tip vortices.

double Wing::ewing
 

size of vortex core (meters).

double* Wing::gwake
 

Vortex strength (gamma) of each segment of tip vortices.

double Wing::gwing
 

vortex-strength (gamma) at wing-tip.

int Wing::ID
 

ID for the aircraft.

int Wing::iter
 

Number of iterations.

char Wing::Name[30]
 

Identification label for aircraft.

int Wing::nvort
 

Current number of vortex elements being tracked (<= nwakemax).

int Wing::OutOfRange
 

Out-of-range flag.

double Wing::span
 

Wing-span (meters).

double Wing::timeElapsed
 

Time elapsed since vortex-elements for aircraft being tracked (sec).

int Wing::ToBeDeleted
 

Deletion flag.

Trajectory Wing::traj
 

Trajectory associated with the aircraft.

FILE* Wing::trajectory
 

File-pointer for trajector file "trajectoryname".

char Wing::trajectoryname[100]
 

Name of file containing trajectory information.

double* Wing::twake
 

Age of each segment of tip vortices (seconds).

double(* Wing::vwake)[2][3]
 

Velocity of points along tip vortices (m/s).

double Wing::vwing[2][3]
 

Current velocity of wing-tips (i.e., aircraft) (m/s).

double Wing::vwing_i[2][3]
 

Initial velocity of wing-tips (i.e., aircraft) (m/s).

double Wing::weight
 

Weight of aircraft (kg).

double(* Wing::xwake)[2][3]
 

Coordinates of points along tip vortices (meters).

double Wing::xwing[2][3]
 

Current location of wing-tips (meters).

double Wing::xwing_i[2][3]
 

Initial location of wing-tips (meters).


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:53 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001