convertUNICADO2CPACS
convertUNICADO2CPACSOutput Class Reference

Class for creation and management of program output. More...

#include <convertUNICADO2CPACSOutput.h>

Inheritance diagram for convertUNICADO2CPACSOutput:
Inheritance graph
Collaboration diagram for convertUNICADO2CPACSOutput:
Collaboration graph

Public Member Functions

 convertUNICADO2CPACSOutput (const convertUNICADO2CPACS &myConverter, const convertUNICADO2CPACSSettings &mySettings)
 Constructor of class convertUNICADO2CPACSOutput. More...
 
virtual ~convertUNICADO2CPACSOutput ()
 Destructor of class convertUNICADO2CPACSOutput. More...
 
void initialize () override
 Function sets settings and xml paths for writing the output. More...
 

Private Member Functions

std::stringstream generateHtmlReportBody () override
 Method for generating the HTML report. More...
 
std::stringstream generateTexReportBody () override
 Method for generating the tex-report. More...
 
void generatePlotData () override
 Generate plot data. More...
 
void generatePlotScripts () override
 Generate plot script. More...
 
void writeXmlOutput () override
 Method for generating the xml-output and writing this to the Aircraft-Exchange-File. More...
 
void writeCpacsHeader ()
 Function writes cpacs header. More...
 
void writeVehicles ()
 Function writes vehicle. More...
 
void writeCpacsAircraft ()
 Function writes cpacs aircraft. More...
 
void writeGeneral ()
 Function writes general vehicle information. More...
 
void writeMassesAndLoadings ()
 Function writes masses and loadings. More...
 
void writeMassBreakdown ()
 Function writes mass breakdown. More...
 
void writeProfiles ()
 Function writes profile geometry of fuselage and wings to <cpacs/vehicles/profiles/...> More...
 
void writeFuselage ()
 Functions writes fuselage data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>) More...
 
void writeFuselageProfiles ()
 Function writes fuselage geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>) More...
 
void writeWing ()
 Functions writes wing data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>) More...
 
void writeWingProfiles ()
 Function writes wing geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>) More...
 
void writeWingFuelTank (cpacsAcft::cpacsWing *cpacsWingPt)
 Function writes wing fuel tank into CPACS-XML. More...
 
void writeStabiliser ()
 Function writes stabiliser geometry into CPACS-XML by calling function writeLiftingSurface. More...
 
void writeLiftingSurface (cpacsAcft::cpacsWing *cpacsWingPt)
 Function writes lifting surface geometry into CPACS-XML. More...
 
void writeFin ()
 Function writes fin geometry into CPACS-XML. More...
 
void writePropulsionGeometry ()
 Function writes pylon and engine geometry into CPACS-XML. More...
 
void writeNacelles ()
 Function writes nacelle geometry into CPACS-XML. More...
 
void writeLandingGear ()
 Functions writes landing gear geometry into CPACS-XML. More...
 
void writeWheelGeometry (cpacsAcft::cpacsGear::wheel *thisWheelPt, const std::string &parentUID)
 Functions writes wheel geometry into CPACS-XML. More...
 
void writeLandingGearStrut (const std::string &GearPath, cpacsAcft::cpacsGear *thisGearPt)
 Functions writes gear strut geometry into CPACS-XML. More...
 
void writeWheelStrutGeometry (cpacsAcft::cpacsGear::mainStrut *thisGearStrutPt, const std::string &parentUID)
 Functions writes wheel geometry into CPACS-XML. More...
 
void writeAnalysis ()
 writes <cpacs/vehicle/aircraft/model/analysis> More...
 
void writeAccommodation ()
 writes accomodation data into CPACS-XML More...
 
void writeSystems ()
 writes system data into CPACS-XML More...
 
void writeAerodynamics ()
 writes aerodynamics data into CPACS-XML More...
 
void writeStabilityAndControlCharacteristics ()
 writes stability and control characteristics into CPACS-XML More...
 
void writePerformance ()
 writes performance data into CPACS-XML More...
 
void writeMission (cpacsAcft::cpacsMission *thisCpacsMissionPt)
 writes mission into CPACS-XML More...
 
void writeMonetaryValues ()
 writes monetary values into CPACS-XML More...
 
void writeEcologicalValues ()
 writes ecological values into CPACS-XML More...
 
void writeRequirements ()
 writes requirements into CPACS-XML More...
 
void writeDesignSpecs ()
 writes design specification into CPACS-XML More...
 
void writeTrajectory (cpacsAcft::cpacsMission *thisCpacsMissionPt)
 writes trajectory into CPACS-XML More...
 
void writeEnginePerformance ()
 writes engine performance data into CPACS-XML More...
 
node * createCpacsXmlPath (const std::string &xMLPath, const bool &duplicateChild=false) const
 Functions creates new xml path in cpacs file. More...
 
void deleteEmptyuID (const std::string &path)
 Function checks if tree has an empty uID at the given Path. If Yes, it is deleted. More...
 
void deleteEmptyTree (const std::string &path)
 Function checks if any uID has been written within the path. If not, it is deleted. More...
 
void deleteEmptyTrees ()
 A hardcoded function to check every tree in cpacs with deleteEmptyTree() More...
 
void writeVec3CpacsXml (const Vec3 &Vector, const std::string &path)
 writes in vector defined location into cpacs xml More...
 
void writeMat3CpacsXml (const Mat3 &Matrix, const std::string &path)
 writes 3x3 matrix into cpacs xml More...
 
template<class T >
void writeCpacsXML (T value, std::string Path, const bool &duplicateIfAlreadyExisting=false) const
 template to check if node in cpacs xml exists More...
 

Private Attributes

const convertUNICADO2CPACSSettingsmySettingsPt
 
cpacsAcftmyCpacsAcftPt
 
unicadoAcftmyUnicadoAcftPt
 
node & acXML
 
double columnWidth
 
double columnSpace
 
std::string cpacsAcftModelXMLPath
 
std::string massBreakdownPath
 
std::string cpacsAcftModelToolSpecificXMLPath
 
std::string massBreakdownToolSpecificPath
 

Detailed Description

Class for creation and management of program output.

Constructor & Destructor Documentation

◆ convertUNICADO2CPACSOutput()

convertUNICADO2CPACSOutput::convertUNICADO2CPACSOutput ( const convertUNICADO2CPACS myConverter,
const convertUNICADO2CPACSSettings mySettings 
)

Constructor of class convertUNICADO2CPACSOutput.

Parameters
myConverterconverter object
mySettingsGlobal settings object

◆ ~convertUNICADO2CPACSOutput()

convertUNICADO2CPACSOutput::~convertUNICADO2CPACSOutput ( )
virtual

Destructor of class convertUNICADO2CPACSOutput.

Member Function Documentation

◆ createCpacsXmlPath()

node * convertUNICADO2CPACSOutput::createCpacsXmlPath ( const std::string &  xMLPath,
const bool &  duplicateChild = false 
) const
private

Functions creates new xml path in cpacs file.

Parameters
xMLPathstring contains name of new path
duplicateChildchecks for duplicate data
Here is the caller graph for this function:

◆ deleteEmptyTree()

void convertUNICADO2CPACSOutput::deleteEmptyTree ( const std::string &  path)
private

Function checks if any uID has been written within the path. If not, it is deleted.

Here is the caller graph for this function:

◆ deleteEmptyTrees()

void convertUNICADO2CPACSOutput::deleteEmptyTrees ( )
private

A hardcoded function to check every tree in cpacs with deleteEmptyTree()

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteEmptyuID()

void convertUNICADO2CPACSOutput::deleteEmptyuID ( const std::string &  path)
private

Function checks if tree has an empty uID at the given Path. If Yes, it is deleted.

Here is the caller graph for this function:

◆ generateHtmlReportBody()

stringstream convertUNICADO2CPACSOutput::generateHtmlReportBody ( )
overrideprivate

Method for generating the HTML report.

◆ generatePlotData()

void convertUNICADO2CPACSOutput::generatePlotData ( )
overrideprivate

Generate plot data.

Returns
void

◆ generatePlotScripts()

void convertUNICADO2CPACSOutput::generatePlotScripts ( )
overrideprivate

Generate plot script.

Returns
void

◆ generateTexReportBody()

stringstream convertUNICADO2CPACSOutput::generateTexReportBody ( )
overrideprivate

Method for generating the tex-report.

◆ initialize()

void convertUNICADO2CPACSOutput::initialize ( )
override

Function sets settings and xml paths for writing the output.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAccommodation()

void convertUNICADO2CPACSOutput::writeAccommodation ( )
private

writes accomodation data into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAerodynamics()

void convertUNICADO2CPACSOutput::writeAerodynamics ( )
private

writes aerodynamics data into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAnalysis()

void convertUNICADO2CPACSOutput::writeAnalysis ( )
private

writes <cpacs/vehicle/aircraft/model/analysis>

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCpacsAircraft()

void convertUNICADO2CPACSOutput::writeCpacsAircraft ( )
private

Function writes cpacs aircraft.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCpacsHeader()

void convertUNICADO2CPACSOutput::writeCpacsHeader ( )
private

Function writes cpacs header.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCpacsXML()

template<class T >
void convertUNICADO2CPACSOutput::writeCpacsXML ( value,
std::string  Path,
const bool &  duplicateIfAlreadyExisting = false 
) const
private

template to check if node in cpacs xml exists

Parameters
valuevalue for the node
pathpath in cpacs xml
duplicateIfAlreadyExistingcheck if the node already exists
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeDesignSpecs()

void convertUNICADO2CPACSOutput::writeDesignSpecs ( )
private

writes design specification into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeEcologicalValues()

void convertUNICADO2CPACSOutput::writeEcologicalValues ( )
private

writes ecological values into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeEnginePerformance()

void convertUNICADO2CPACSOutput::writeEnginePerformance ( )
private

writes engine performance data into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFin()

void convertUNICADO2CPACSOutput::writeFin ( )
private

Function writes fin geometry into CPACS-XML.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFuselage()

void convertUNICADO2CPACSOutput::writeFuselage ( )
private

Functions writes fuselage data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFuselageProfiles()

void convertUNICADO2CPACSOutput::writeFuselageProfiles ( )
private

Function writes fuselage geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeGeneral()

void convertUNICADO2CPACSOutput::writeGeneral ( )
private

Function writes general vehicle information.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeLandingGear()

void convertUNICADO2CPACSOutput::writeLandingGear ( )
private

Functions writes landing gear geometry into CPACS-XML.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeLandingGearStrut()

void convertUNICADO2CPACSOutput::writeLandingGearStrut ( const std::string &  GearPath,
cpacsAcft::cpacsGear thisGearPt 
)
private

Functions writes gear strut geometry into CPACS-XML.

Parameters
thisGearPtPointer to the cpacs landing gear
GearPathXML-path to cpacs landing gear
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeLiftingSurface()

void convertUNICADO2CPACSOutput::writeLiftingSurface ( cpacsAcft::cpacsWing cpacsWingPt)
private

Function writes lifting surface geometry into CPACS-XML.

Parameters
cpacsWingPtpointer to cpacs wing object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMassBreakdown()

void convertUNICADO2CPACSOutput::writeMassBreakdown ( )
private

Function writes mass breakdown.

<

Todo:
[T1222] (https://unicado.ilr.rwth-aachen.de/T1222) (Ohm#1#) : revise hardcode

<

Todo:
[T1223] (https://unicado.ilr.rwth-aachen.de/T1223) (Ohm#1#) : revise hardcode
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMassesAndLoadings()

void convertUNICADO2CPACSOutput::writeMassesAndLoadings ( )
private

Function writes masses and loadings.

Todo:
[T1221] (https://unicado.ilr.rwth-aachen.de/T1221) (ohm#1#): Join writeMassBreakdown and writeMassesAndLoadings
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMat3CpacsXml()

void convertUNICADO2CPACSOutput::writeMat3CpacsXml ( const Mat3 &  Matrix,
const std::string &  path 
)
private

writes 3x3 matrix into cpacs xml

Parameters
Matrix3x3 moment of inertia tensor [kg*m^2]
pathpath in cpacs xml
Returns
void
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMission()

void convertUNICADO2CPACSOutput::writeMission ( cpacsAcft::cpacsMission thisCpacsMissionPt)
private

writes mission into CPACS-XML

Parameters
thisCpacsMissionPtPointer to cpacs mission
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMonetaryValues()

void convertUNICADO2CPACSOutput::writeMonetaryValues ( )
private

writes monetary values into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeNacelles()

void convertUNICADO2CPACSOutput::writeNacelles ( )
private

Function writes nacelle geometry into CPACS-XML.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writePerformance()

void convertUNICADO2CPACSOutput::writePerformance ( )
private

writes performance data into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeProfiles()

void convertUNICADO2CPACSOutput::writeProfiles ( )
private

Function writes profile geometry of fuselage and wings to <cpacs/vehicles/profiles/...>

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writePropulsionGeometry()

void convertUNICADO2CPACSOutput::writePropulsionGeometry ( )
private

Function writes pylon and engine geometry into CPACS-XML.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeRequirements()

void convertUNICADO2CPACSOutput::writeRequirements ( )
private

writes requirements into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeStabiliser()

void convertUNICADO2CPACSOutput::writeStabiliser ( )
private

Function writes stabiliser geometry into CPACS-XML by calling function writeLiftingSurface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeStabilityAndControlCharacteristics()

void convertUNICADO2CPACSOutput::writeStabilityAndControlCharacteristics ( )
private

writes stability and control characteristics into CPACS-XML

Here is the caller graph for this function:

◆ writeSystems()

void convertUNICADO2CPACSOutput::writeSystems ( )
private

writes system data into CPACS-XML

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeTrajectory()

void convertUNICADO2CPACSOutput::writeTrajectory ( cpacsAcft::cpacsMission thisCpacsMissionPt)
private

writes trajectory into CPACS-XML

Parameters
thisCpacsMissionPtPointer to cpacs mission
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeVec3CpacsXml()

void convertUNICADO2CPACSOutput::writeVec3CpacsXml ( const Vec3 &  Vector,
const std::string &  path 
)
private

writes in vector defined location into cpacs xml

Parameters
Vector3 dimensional location in reference to the global point of reference (x,y,z coordinates) [m]
pathpath in cpacs xml
Returns
void
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeVehicles()

void convertUNICADO2CPACSOutput::writeVehicles ( )
private

Function writes vehicle.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeWheelGeometry()

void convertUNICADO2CPACSOutput::writeWheelGeometry ( cpacsAcft::cpacsGear::wheel thisWheelPt,
const std::string &  parentUID 
)
private

Functions writes wheel geometry into CPACS-XML.

Parameters
thisWheelPtPointer to the cpacs wheel geometry
parentUIDuID of parent geometry
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeWheelStrutGeometry()

void convertUNICADO2CPACSOutput::writeWheelStrutGeometry ( cpacsAcft::cpacsGear::mainStrut thisGearStrutPt,
const std::string &  parentUID 
)
private

Functions writes wheel geometry into CPACS-XML.

Parameters
thisGearStrutPtPointer to the cpacs landing gear strut
parentUIDuID of parent geometry
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeWing()

void convertUNICADO2CPACSOutput::writeWing ( )
private

Functions writes wing data (e.g. scaling, rotation & translation of its segments) into CPACS-XML (path: <cpacs/vehicles/aircraft/model/...>)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeWingFuelTank()

void convertUNICADO2CPACSOutput::writeWingFuelTank ( cpacsAcft::cpacsWing cpacsWingPt)
private

Function writes wing fuel tank into CPACS-XML.

Parameters
cpacsWingPtpointer to cpacs wing object

◆ writeWingProfiles()

void convertUNICADO2CPACSOutput::writeWingProfiles ( )
private

Function writes wing geometry (point lists) into CPACS-XML (path: <cpacs/vehicles/profiles/...>)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeXmlOutput()

void convertUNICADO2CPACSOutput::writeXmlOutput ( )
overrideprivate

Method for generating the xml-output and writing this to the Aircraft-Exchange-File.

Returns
void
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ acXML

node& convertUNICADO2CPACSOutput::acXML
private

Node for aircraft xml

◆ columnSpace

double convertUNICADO2CPACSOutput::columnSpace
private

column distance in HTML-Report [px]

◆ columnWidth

double convertUNICADO2CPACSOutput::columnWidth
private

width of figure in HTML-Report [px]

◆ cpacsAcftModelToolSpecificXMLPath

std::string convertUNICADO2CPACSOutput::cpacsAcftModelToolSpecificXMLPath
private

XML Path of tool specific data

◆ cpacsAcftModelXMLPath

std::string convertUNICADO2CPACSOutput::cpacsAcftModelXMLPath
private

XML Path of the AC Model with uID

◆ massBreakdownPath

std::string convertUNICADO2CPACSOutput::massBreakdownPath
private

XML Path of the massBreakdown with uID

◆ massBreakdownToolSpecificPath

std::string convertUNICADO2CPACSOutput::massBreakdownToolSpecificPath
private

XML Path of the tool specific mass breakdown

◆ myCpacsAcftPt

cpacsAcft* convertUNICADO2CPACSOutput::myCpacsAcftPt
private

Pointer to cpacs aircraft

◆ mySettingsPt

const convertUNICADO2CPACSSettings* convertUNICADO2CPACSOutput::mySettingsPt
private

pointer to convertUNICADO2CPACSSettings object

◆ myUnicadoAcftPt

unicadoAcft* convertUNICADO2CPACSOutput::myUnicadoAcftPt
private

Pointer to unicado aircaft


The documentation for this class was generated from the following files: