Page 385 - TransAT_Tutorial_Manual
P. 385
TransAT Tutorial Manual 9.2. Forced Convection in an Isothermal Pipe
Description of crossflow output.h To use the line output feature the required header is
imported in crossflow output.h with the following line
#include "line_output.h"
The line output class is documented in the Data output along a straight line section in the TransAT
User Manual . For each line over which data is to be generated, a line output object must be
created. In this case, the pointer to the line output object is stored as an attribute of the
crossflow output object. To do so, the following line was added in the private attribute section of
the crossflow output class declaration:
line_output *output
Description of crossflow output.cxx The properties of the line output object are defined
in the crossflow output constructor located in the crossflow output.cxx file. The properties of the
line output object consist of:
• line direction
• reference point
• interpolation method
• variables
In this case, the line is drawn along the y-direction going through x = 1.99m and z = 0.0005m.
The variables stored in the line output object are the u-velocity component, the v-velocity compo-
nent and temperature. The definition of the line output object properties is done in the following
code excerpt setting up the line output in the constructor of the UserGlobal class:
crossflow_output::crossflow_output(){
output = new line_output(LO_YDIR,1.99,0.0005,LO_BILINEAR);
output->add_variable("uvelocity");
output->add_variable("vvelocity");
output->add_variable("temperature");
}
The list of keywords to access variables is available in the List of accessible variables section in
the TransAT User Manual .
The data stored in the line output object is written to a file - crossflow output.dat - at the end of
the simulation by calling the write file method in the User processing end function as follows:
c
Ascomp AG Switzerland 375 Version 5.7

