![]() |
convertUNICADO2CPACS
|
Class for the control of all reading functions from UNICADO. More...
#include <convertUNICADO2CPACS.h>
Public Member Functions | |
convertUNICADO2CPACS (const convertUNICADO2CPACSSettings &mySettings) | |
Constructor of class convertUNICADO2CPACS. More... | |
virtual | ~convertUNICADO2CPACS () |
Destructor of class convertUNICADO2CPACS. More... | |
void | initialize () |
Function initializes unicado and cpacs aircraft. More... | |
void | run () |
Function converts from UNICADO aircraft to CPACS aircraft. More... | |
Public Attributes | |
unicadoAcft * | myUnicadoAcftPt |
cpacsAcft * | myCpacsAcftPt |
std::vector< cpacsAcft::cpacsMaterial > | theUsedMaterials |
std::vector< double > | range |
Private Member Functions | |
void | createEmptyCpacsFile (const std::string &aFilename) |
Function to create an empty cpacs-file. More... | |
std::string | getMaterial (const std::string &aMaterialName) |
Function searches for a material or creates a new one. More... | |
void | convertMassesAndLoadings () |
Function that converts MassesAndLoading from UNICADO-file into CPACS XML-Structure (MassesAndLoadings) More... | |
void | convertMassBreakdown () |
Function that converts massBreakdown from UNICADO-file into CPACS XML-Structure (MassBreakdown) More... | |
void | convertGeometry () |
Function that converts geometry from UNICADO-file into CPACS XML-Structure. More... | |
void | convertFuselage () |
Function that converts fuselage from UNICADO-file into CPACS XML-Structure. More... | |
void | convertWing () |
Function that converts wing from UNICADO-file into CPACS XML-Structure. More... | |
void | convertStabiliser () |
Function that converts stabiliser from UNICADO-file into CPACS XML-Structure. More... | |
void | convertLiftingSurface (liftingSurface *unicadoLiftingSurfacePt, cpacsAcft::cpacsWing *cpacsWingPt) |
Function that converts a Geometry class Liftingsurface from UNICADO into CPACS XML-Structure. More... | |
void | convertFin () |
Function that converts Fin from UNICADO-file into CPACS XML-Structure. More... | |
void | convertVerticalSurface (verticalsurface *verticalSurfacePt, cpacsAcft::cpacsWing *cpacsFinPt) |
Function that converts a Geometry class VerticalSurface from UNICADO into CPACS XML-Structure. More... | |
void | convertPropulsionGeometry () |
Function that prepares conversion and calls Engines and Pylons conversion functions. More... | |
void | convertEngines (unicadoAcft::unicadoPropulsion *unicadoEnginedPt, cpacsAcft::cpacsEngine *cpacsEnginePt, int index) |
Function that converts Engines from UNICADO-file into CPACS XML-Structure. More... | |
void | convertScaledPerformance (unicadoAcft::unicadoPropulsion *unicadoEnginedPt, cpacsAcft::cpacsEngine *cpacsEnginePt, std::string type) |
Function that converts scaled performance from UNICADO-file into CPACS XML-Structure. More... | |
void | convertPylons (pylon *unicadoPylonPt, cpacsAcft::cpacsPylon *cpacsPylonPt) |
Function that converts Pylons from UNICADO-file into CPACS XML-Structure. More... | |
void | convertNacelles () |
Function that converts Nacelles from UNICADO-file into CPACS XML-Structure. More... | |
void | convertlandingGear () |
Function that converts Landing Gear from UNICADO-file into CPACS XML-Structure. More... | |
void | createWheelGeometry (cpacsAcft::cpacsGear::wheel *thisWheelPt, const std::string &theGearName, const Vec3 &theWheelGroupReferencePt, const double &theWheelTrack) |
function creates the wheel geometry based on the radius and the wheel track More... | |
void | createStrutGeometry (cpacsAcft::cpacsGear::mainStrut *thisStrutPt, const std::string &theGearName, const Vec3 &theStrutGroupReferencePt, const double &strutLength, const double &strutRadius) |
function creates cpacs strut geometry More... | |
double | calculateUnicadoLGRelHeight (double spanPos, double relChordPos, double globalLandingGearZRef) |
Function that calculates relative height of unicado landing gear. More... | |
void | convertFuseDatProfile (std::string profileFilePath, std::string profileName) |
Function that converts a Unicado Fuselage Profile from .dat file into CPACS XML-Structure. More... | |
void | convertWingDatProfile (std::string profileFilePath, std::string profileName, cpacsAcft::cpacsWing *cpacsWingPt, liftingSurface::segment *SegmentPt) |
Function that converts a Unicado Wing Profile from .dat file into CPACS XML-Structure. More... | |
void | convertVerticalWingDatProfile (std::string profileFilePath, std::string profileName, cpacsAcft::cpacsWing *cpacsWingPt, verticalsurface::segment *SegmentPt) |
Function that converts a Unicado Vertical Wing Profile from .dat file into CPACS XML-Structure. More... | |
void | convertNacelleDatProfile (const std::string &profileFilePath, const std::string &profileName, const std::string &profileUID) |
Function that converts a Unicado Nacelle Profile from .dat file into CPACS XML-Structure. More... | |
void | collectVerticalWingDatProfilePoints (std::vector< Vec3 > coords) |
Function collects half of the vertical lifting surface airfoil coordinates and closes the geometry object in the symmetry plane with a plate. More... | |
void | convertAccommodation () |
Function that converts accommodation data from UNICADO-file into CPACS XML-Structure. More... | |
void | convertPropulsion () |
Function that converts propulsion data from UNICADO-file into CPACS XML-Structure. More... | |
void | convertSystems () |
Function that converts systems data from UNICADO-file into CPACS XML-Structure. More... | |
void | convertAerodynamics () |
Function that converts aerodynamics from UNICADO-file into CPACS XML-Structure. More... | |
void | convertStabilityAndControl () |
Function that converts stability & control characteristics from UNICADO-file into CPACS XML-Structure. More... | |
void | convertPerformance () |
Function that converts performance data from UNICADO-file into CPACS XML-Structure. More... | |
void | convertMission (unicadoAcft::unicadoPerformance::missionAnalysis *thisUnicadoMissionPt, cpacsAcft::cpacsMission *thisCpacsMissionPt) |
converts mission file from UNICADO to CPACS More... | |
void | convertMonetaryValues () |
Function that converts monetary values from UNICADO-file into CPACS XML-Structure. More... | |
void | convertRC () |
Function that converts recurring costs from UNICADO-file into CPACS XML-Structure. More... | |
void | convertDOC () |
Function that converts direct operating costs from UNICADO-file into CPACS XML-Structure. More... | |
void | convertEOLCosts () |
Function that converts end of life costs from UNICADO-file into CPACS XML-Structure. More... | |
void | convertEcologicalValues () |
Function that converts ecological values from UNICADO-file into CPACS XML-Structure. More... | |
void | convertRequirements () |
Function that converts requirements from UNICADO-file into CPACS XML-Structure. More... | |
void | convertDesignSpecs () |
Function that converts design specifications from UNICADO-file into CPACS XML-Structure. More... | |
void | convertConfiguration () |
Function that converts configuration data from UNICADO-file into CPACS XML-Structure. More... | |
void | convertDesignSpecsAccommodation () |
Function that converts accommodation design specifications from UNICADO-file into CPACS XML-Structure. More... | |
void | convertDesignSpecsCargo () |
Function that converts cargo design specifications from UNICADO-file into CPACS XML-Structure. More... | |
void | convertDesignSpecPropulsion () |
Function that converts propulsion design specifications from UNICADO-file into CPACS XML-Structure. More... | |
Private Attributes | |
const convertUNICADO2CPACSSettings * | mySettingsPt |
Class for the control of all reading functions from UNICADO.
|
explicit |
Constructor of class convertUNICADO2CPACS.
mySettings | Global settings object |
|
virtual |
Destructor of class convertUNICADO2CPACS.
|
private |
|
private |
Function collects half of the vertical lifting surface airfoil coordinates and closes the geometry object in the symmetry plane with a plate.
coords | vector<Vec3> normalized coordinate points, either from the left or from the right side of the (symmetrical) airfoil |
|
private |
Function that converts accommodation data from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts aerodynamics from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts configuration data from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts propulsion design specifications from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts design specifications from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts accommodation design specifications from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts cargo design specifications from UNICADO-file into CPACS XML-Structure.
|
private |
|
private |
|
private |
Function that converts Engines from UNICADO-file into CPACS XML-Structure.
unicadoEnginedPt | pointer to unicado propulsion unit |
cpacsEnginePt | pointer to cpacs engine |
index | index variable |
<
|
private |
|
private |
Function that converts Fin from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts a Unicado Fuselage Profile from .dat file into CPACS XML-Structure.
profileFilePath | path to .dat file |
profileName | name of profile |
|
private |
Function that converts fuselage from UNICADO-file into CPACS XML-Structure.
<Int to Name and uID the fuselage Segments
|
private |
Function that converts geometry from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts Landing Gear from UNICADO-file into CPACS XML-Structure.
<
|
private |
Function that converts a Geometry class Liftingsurface from UNICADO into CPACS XML-Structure.
unicadoLiftingSurfacePt | pointer to unicado lifting surface |
cpacsWingPt | pointer to cpacs wing |
<
<
<
<
|
private |
Function that converts massBreakdown from UNICADO-file into CPACS XML-Structure (MassBreakdown)
<
|
private |
Function that converts MassesAndLoading from UNICADO-file into CPACS XML-Structure (MassesAndLoadings)
|
private |
converts mission file from UNICADO to CPACS
*thisUnicadoMissionPt | Object of the UNICADO mission data |
*thisCpacsMissionPt | Object of the converted mission data for the CPACS file |
|
private |
Function that converts monetary values from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts a Unicado Nacelle Profile from .dat file into CPACS XML-Structure.
profileFilePath | Path to .dat file |
profileName | name of profile |
profileUID | a profile uID |
|
private |
|
private |
Function that converts performance data from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts propulsion data from UNICADO-file into CPACS XML-Structure.
|
private |
Function that prepares conversion and calls Engines and Pylons conversion functions.
|
private |
Function that converts Pylons from UNICADO-file into CPACS XML-Structure.
unicadoPylonPt | pointer to unicado pylon |
cpacsPylonPt | pointer to cpacs pylon |
<
|
private |
Function that converts recurring costs from UNICADO-file into CPACS XML-Structure.
|
private |
|
private |
Function that converts scaled performance from UNICADO-file into CPACS XML-Structure.
unicadoEnginedPt | pointer to unicado engine |
cpacsEnginePt | pointer to cpacs engine |
|
private |
Function that converts stabiliser from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts stability & control characteristics from UNICADO-file into CPACS XML-Structure.
|
private |
|
private |
Function that converts a Geometry class VerticalSurface from UNICADO into CPACS XML-Structure.
verticalSurfacePt | pointer to vertical surface |
cpacsFinPt | pointer to cpacs fin |
<
<
<
<
<
|
private |
Function that converts a Unicado Vertical Wing Profile from .dat file into CPACS XML-Structure.
profileFilePath | Path to .dat file |
profileName | name of profile |
cpacsWingPt | pointer to cpacs wing |
SegmentPt | pointer to segment of vertical surface |
|
private |
Function that converts wing from UNICADO-file into CPACS XML-Structure.
|
private |
Function that converts a Unicado Wing Profile from .dat file into CPACS XML-Structure.
profileFilePath | path to .dat file |
profileName | name of .dat file |
cpacsWingPt | pointer to cpacs wing |
SegmentPt | pointer to segment of lifting surface |
|
private |
Function to create an empty cpacs-file.
aFilename | name of cpacs-file |
|
private |
function creates cpacs strut geometry
*thisStrutPt | Pointer to the cpacs mainStrut geometry of landing gear |
theGearName | string containing the name of the gear component (MainGear, NoseGear, ...) |
theStrutGroupReferencePt | Vec3 containing the reference point of the strut group |
strutLength | length of the strut [m] |
strutRadius | radius of the strut [m] |
|
private |
function creates the wheel geometry based on the radius and the wheel track
*thisWheelPt | Pointer to the cpacs wheel geometry of landing gear |
theGearName | string containing the name of the gear component (MainGear, NoseGear, ...) |
theWheelTrack | double wheel track of the current gear |
|
private |
Function searches for a material or creates a new one.
aMaterialName | name of material |
void convertUNICADO2CPACS::initialize | ( | ) |
Function initializes unicado and cpacs aircraft.
void convertUNICADO2CPACS::run | ( | ) |
Function converts from UNICADO aircraft to CPACS aircraft.
if block is switched on, the respective block is read from UNICADO acft and converted to CPACS acft
cpacsAcft* convertUNICADO2CPACS::myCpacsAcftPt |
pointer to cpacs Acft
|
private |
Pointer to the settings
unicadoAcft* convertUNICADO2CPACS::myUnicadoAcftPt |
pointer to unicado Acft
std::vector<double> convertUNICADO2CPACS::range |
Maximum range of aircraft [m]
std::vector<cpacsAcft::cpacsMaterial> convertUNICADO2CPACS::theUsedMaterials |
Material used for the Aircraft