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

Vortex Class Reference

#include <wakevortex.h>

List of all members.

Public Methods

 Vortex (int n=0)
 Constructor (with space for n aircraft being allocated). More...

 ~Vortex ()
 Destructor. More...

void MarkAllDeleted ()
 Mark all aircraft in the vector for deletion. More...

void CleanUp ()
 Free all memory (called by destructor). More...

int NextWing (int i)
 Index of the next aircraft in the vector which is i not marked for deletion (but may be out-of-range). More...

int NextInRange (int i)
 Index of the next aircraft in the vector within airport-range which is not marked for deletion. More...

int Begin (void)
 Index of the first active aircraft in the vector. More...

int NextToBeDeleted ()
 Index of the next aircraft in the vector which is marked for deletion. More...

Vortex & operator= (const Vortex &)
 Assignment overloading to copy a vortex structure. More...

int AddWing (bool allocate_flag=true)
 Add new aircraft to the vector and allocate memory for it only if "allocate_flag" is true. More...

int AddWingWithoutAllocation ()
 Add new aircraft to the vector without allocating memory. More...

void ReAlloc (int n)
 Allocate memory for "n" aircraft from the current number of aircraft. More...

void Allocate (int i)
 Allocate memory for the "i"th aircraft in the vector. More...

void Compress ()
 Compress vector by removing all aircraft that are marked deleted. More...

void deleteWing (int i)
 Free memory for "i"th aircraft in the vector and mark it for deletion. More...

void undeleteWing (int i)
 Undo the effect of the "deleteWing(i)". More...

void stopTrackingWing (int i)
 Stop tracking aircraft "i" (mark it out-of-range). More...

int CheckForOutOfRangeAircraft (double airport_center[3], int option)
 Check for out-of-range aircraft. More...

void ReadInputFile (char *inpfile, int nwake_max)
 Read intial inputs for the simulation from "inpfile". More...

double ComputeWake ()
 Read intial inputs for the simulation from "inpfile" Compute the wake-vortex for all aircraft for the next iteration. More...

int ComputeWake (int wingID)
 Compute the wake-vortex for the specified aircraft for the next iteration. More...

void WriteTecplotFile (int iter)
 Write TECPLOT output for the specified iteration. More...

int AddNewWing (char *trajfile, char *name, char *type, double x0, double y0, double z0, double span, double area, double weight)
 Add a new aircraft at location (x0,y0,z0) with trajectory information from file "trajfile" and specified wing-span, area and weight. More...

int AddRandomWing (char *trajfile, double x0, double y0, double z0)
 Add a randomly selection aircraft from database at location (x0,y0,z0). More...

int Copy (Vortex *dest)
 Copy data from the current vortex structure to "dest". More...


Public Attributes

int nwings
 Total number of aircraft (wings) in the structure. More...

int ntotal
 Total number of aircraft (wings) in the structure including wings that are not being tracked. More...

int nToBeDeleted
 Number of aircraft marked for deletion. More...

int nOutOfRange
 Number of aircraft that contain useful vortex data but are not actively being tracked. More...

int nwakemax
 Maximum number of vortex-elements to be tracked per aircraft. More...

double temperature
 Current atmospheric temperature (in Celsius). More...

double dt
 Current time-step for simulation (in seconds). More...

double u0
 Current atmospheric wind velocity in x-direction (in m/s). More...

double v0
 Current atmospheric wind velocity in y-direction (in m/s). More...

double w0
 Current atmospheric wind velocity in z-direction (in m/s). More...

double delta
 Height of atmospheric boundary layer above the ground (in metres). More...

double upmag
 Atmospheric fluctuation levels (%). More...

double gtime
 Time required for vortex-strength gamma to decay by 50% (in seconds). More...

double glimit
 Vortex strength threshold below which it is considered harmless. More...

double max_tracking_distance
 Maximum tracking distance for aircraft from the center of the airport (in Kilometres). More...

int inducedvelocity_flag
 Flag specifying where induced velocity calculation is to be performed. More...

int iter
 Current number of iterations since the simulation started. More...

int kn
 Number of neighboring vortex elements to be used for induced velocity calculation over every vortex element. More...

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

double curtime
 Current time of the simulation since the start (in seconds). More...

vector< Wingwing
 Vector containing data for individual aircraft (wing). More...


Friends

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


Constructor & Destructor Documentation

Vortex::Vortex int    n = 0
 

Constructor (with space for n aircraft being allocated).

Vortex::~Vortex  
 

Destructor.


Member Function Documentation

int Vortex::AddNewWing char *    trajfile,
char *    name,
char *    type,
double    x0,
double    y0,
double    z0,
double    span,
double    area,
double    weight
 

Add a new aircraft at location (x0,y0,z0) with trajectory information from file "trajfile" and specified wing-span, area and weight.

int Vortex::AddRandomWing char *    trajfile,
double    x0,
double    y0,
double    z0
 

Add a randomly selection aircraft from database at location (x0,y0,z0).

int Vortex::AddWing bool    allocate_flag = true
 

Add new aircraft to the vector and allocate memory for it only if "allocate_flag" is true.

int Vortex::AddWingWithoutAllocation  
 

Add new aircraft to the vector without allocating memory.

void Vortex::Allocate int    i
 

Allocate memory for the "i"th aircraft in the vector.

int Vortex::Begin void    [inline]
 

Index of the first active aircraft in the vector.

int Vortex::CheckForOutOfRangeAircraft double    airport_center[3],
int    option
 

Check for out-of-range aircraft.

void Vortex::CleanUp  
 

Free all memory (called by destructor).

void Vortex::Compress  
 

Compress vector by removing all aircraft that are marked deleted.

int Vortex::ComputeWake int    wingID
 

Compute the wake-vortex for the specified aircraft for the next iteration.

double Vortex::ComputeWake  
 

Read intial inputs for the simulation from "inpfile" Compute the wake-vortex for all aircraft for the next iteration.

int Vortex::Copy Vortex *    dest
 

Copy data from the current vortex structure to "dest".

void Vortex::deleteWing int    i
 

Free memory for "i"th aircraft in the vector and mark it for deletion.

void Vortex::MarkAllDeleted  
 

Mark all aircraft in the vector for deletion.

int Vortex::NextInRange int    i [inline]
 

Index of the next aircraft in the vector within airport-range which is not marked for deletion.

int Vortex::NextToBeDeleted   [inline]
 

Index of the next aircraft in the vector which is marked for deletion.

int Vortex::NextWing int    i [inline]
 

Index of the next aircraft in the vector which is i not marked for deletion (but may be out-of-range).

Vortex & Vortex::operator= const Vortex &    V
 

Assignment overloading to copy a vortex structure.

void Vortex::ReadInputFile char *    inpfile,
int    nwake_max
 

Read intial inputs for the simulation from "inpfile".

void Vortex::ReAlloc int    n
 

Allocate memory for "n" aircraft from the current number of aircraft.

void Vortex::stopTrackingWing int    i
 

Stop tracking aircraft "i" (mark it out-of-range).

void Vortex::undeleteWing int    i
 

Undo the effect of the "deleteWing(i)".

void Vortex::WriteTecplotFile int    iter
 

Write TECPLOT output for the specified iteration.


Friends And Related Function Documentation

ostream& operator<< ostream &    Out,
Vortex &    V
[friend]
 


Member Data Documentation

double Vortex::curtime
 

Current time of the simulation since the start (in seconds).

double Vortex::delta
 

Height of atmospheric boundary layer above the ground (in metres).

double Vortex::dt
 

Current time-step for simulation (in seconds).

double Vortex::glimit
 

Vortex strength threshold below which it is considered harmless.

double Vortex::gtime
 

Time required for vortex-strength gamma to decay by 50% (in seconds).

int Vortex::inducedvelocity_flag
 

Flag specifying where induced velocity calculation is to be performed.

int Vortex::iter
 

Current number of iterations since the simulation started.

int Vortex::kn
 

Number of neighboring vortex elements to be used for induced velocity calculation over every vortex element.

double Vortex::max_tracking_distance
 

Maximum tracking distance for aircraft from the center of the airport (in Kilometres).

int Vortex::nOutOfRange
 

Number of aircraft that contain useful vortex data but are not actively being tracked.

int Vortex::nToBeDeleted
 

Number of aircraft marked for deletion.

int Vortex::ntotal
 

Total number of aircraft (wings) in the structure including wings that are not being tracked.

int Vortex::nvort
 

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

int Vortex::nwakemax
 

Maximum number of vortex-elements to be tracked per aircraft.

int Vortex::nwings
 

Total number of aircraft (wings) in the structure.

double Vortex::temperature
 

Current atmospheric temperature (in Celsius).

double Vortex::u0
 

Current atmospheric wind velocity in x-direction (in m/s).

double Vortex::upmag
 

Atmospheric fluctuation levels (%).

double Vortex::v0
 

Current atmospheric wind velocity in y-direction (in m/s).

double Vortex::w0
 

Current atmospheric wind velocity in z-direction (in m/s).

vector<Wing> Vortex::wing
 

Vector containing data for individual aircraft (wing).


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