38#include "../../../Common/include/toolboxes/printing_toolbox.hpp"
40#include "../../../Common/include/option_structure.hpp"
47 return sqrt(a*a + b*b);
241 template <
class Variables>
310 const std::vector<string>
restartVolumeFields = {
"COORDINATES",
"SOLUTION",
"SENSITIVITY",
"GRID_VELOCITY"};
395 unsigned long TimeIter,
unsigned long OuterIter,
unsigned long InnerIter);
415 std::shared_ptr<CTurbomachineryStagePerformance> TurboStagePerf,
416 su2vector<std::shared_ptr<CTurboOutput>> TurboBladePerfs,
unsigned short val_iZone,
417 unsigned long TimeIter,
unsigned long OuterIter,
unsigned long InnerIter,
unsigned short val_iInst);
429 unsigned long TimeIter,
unsigned long OuterIter);
482 inline void SetIteration(
unsigned long TimeIter,
unsigned long OuterIter,
unsigned long InnerIter){
511 vector<pair<string, passivedouble>> fields;
541 vector<HistoryOutputField> HistoryGroup;
641 unsigned long iter,
bool force_writing =
false);
699 string groupname,
string description,
713 it->second.value = value;
729 string groupname,
const vector<string>& marker_names,
731 if (!marker_names.empty()) {
733 vector<HistoryOutputField> fields;
734 fields.reserve(marker_names.size());
735 for (
const auto& marker : marker_names) {
736 fields.push_back(
HistoryOutputField(field_name+
"("+marker+
")", format, groupname, field_type,
""));
751 it->second[iMarker].value = value;
763 const auto pos = name.find(
'[');
765 if (pos == std::string::npos) {
768 ptr = &(it->second.value);
771 const auto idx = std::stoi(std::string(name.begin()+pos+1, name.end()-1));
774 ptr = &(it->second[idx].value);
795 const string& group_name,
const string& description) {
865 inline bool PrintOutput(
unsigned long iIter,
unsigned long iFreq) {
870 return (iIter % iFreq == 0);
980 unsigned long iElem,
unsigned long index,
unsigned short dof){}
999 unsigned long iPoint,
unsigned short iMarker,
unsigned long iVertex){}
1067 unsigned short val_iZone) {};
Headers of the Turbomachinery Performance class.
A templated matrix/vector-like object.
Definition C2DContainer.hpp:374
Output class for adjoint heat output.
Definition CAdjHeatOutput.hpp:37
static void Error(const std::string &ErrorMsg, const std::string &FunctionName)
Definition mpi_structure.cpp:131
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Definition CFileWriter.hpp:42
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
Output class for heat problems.
Definition CHeatOutput.hpp:38
Class for writing the convergence history and to write solution data to file.
Definition COutput.hpp:68
void SetAvgVolumeOutputValue(const string &name, unsigned long iPoint, su2double value)
Set the value of a volume output field.
Definition COutput.cpp:1866
virtual void LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint, unsigned short iMarker, unsigned long iVertex)
Set the values of the volume output fields for a surface point.
Definition COutput.hpp:998
ScreenOutputFormat
: Flag for delaying stop at max_time with 2nd order time stepping.
Definition COutput.hpp:105
@ INTEGER
Integer format. Example: 34.
@ PERCENT
Format with fixed precision for floating point values with a % signs. Example: 99....
@ SCIENTIFIC
Scientific format for floating point values. Example: 3.4454E02.
@ FIXED
Format with fixed precision for floating point values. Example: 344.54
unsigned short nRequestedScreenFields
Number of requested screen field names in the config file.
Definition COutput.hpp:164
const map< string, HistoryOutputField > & GetHistoryFields() const
Get the map containing all output fields.
Definition COutput.hpp:570
PrintingToolbox::CTablePrinter * fileWritingTable
File writing header.
Definition COutput.hpp:173
vector< su2double > oldFunc
Old value of the coefficient.
Definition COutput.hpp:321
vector< vector< su2double > > cauchySerie
Complete Cauchy serial.
Definition COutput.hpp:317
string historyFilename
The history filename.
Definition COutput.hpp:98
const int size
MPI Size.
Definition COutput.hpp:76
const std::vector< string > restartVolumeFields
Minimum required volume fields for restart file.
Definition COutput.hpp:310
bool SetResultFiles(CGeometry *geometry, CConfig *config, CSolver **solver_container, unsigned long iter, bool force_writing=false)
Loop through all requested output files and write the volume output data.
Definition COutput.cpp:870
virtual void LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver)
Load the history output field values.
Definition COutput.hpp:1013
unsigned short Cauchy_Counter
Number of elements of the Cauchy serial.
Definition COutput.hpp:316
unsigned short nRequestedVolumeFields
Number of requested volume field names in the config file.
Definition COutput.hpp:307
bool GetConvergenceInterrupted() const
Get whether the exit was forced by an interrupt signal (e.g. SIGTERM) instead of the convergence crit...
Definition COutput.hpp:605
void WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE format, string fileName="")
Allocates the appropriate file writer based on the chosen format and writes sorted data to file.
Definition COutput.cpp:379
su2double cauchyFunc
Current value of the convergence indicator at one iteration.
Definition COutput.hpp:315
void SetScreenHeader(const CConfig *config)
Write the screen header.
Definition COutput.cpp:1207
void SetSurfaceFilename(string filename)
Sets the surface output filename.
Definition COutput.hpp:450
virtual bool WriteHistoryFileOutput(const CConfig *config)
Determines if the history file output.
Definition COutput.cpp:2128
vector< string > wndConvFields
Name of the field to be monitored for convergence.
Definition COutput.hpp:335
void RequestCommonHistory(bool dynamic)
Request the history fields common for all solvers.
Definition COutput.cpp:2207
unsigned short nRequestedHistoryFields
Number of requested history field names in the config file.
Definition COutput.hpp:160
void SetHistoryOutputPerSurfaceValue(string name, su2double value, unsigned short iMarker)
Set the value of a history output field for a specific surface marker.
Definition COutput.hpp:748
void SetHistoryOutputValue(string name, su2double value)
Set the value of a history output field.
Definition COutput.hpp:710
void SetHistoryFileOutput(const CConfig *config)
Write the history file output.
Definition COutput.cpp:1175
CParallelDataSorter * volumeDataSorter
Volume data sorter.
Definition COutput.hpp:251
ofstream histFile
Output file stream for the history.
Definition COutput.hpp:99
void PrintVolumeFields()
Print a list of all volume output fields to screen.
Definition COutput.cpp:2528
void PrintHistoryFields() const
Print a list of all history output fields to screen.
Definition COutput.cpp:2413
unsigned long curInnerIter
Current value of the inner iteration index.
Definition COutput.hpp:94
virtual void LoadCustomAndComboObjectiveFunctions(CConfig *config, CGeometry *geometry, CSolver **solver)
Recompute history output field values that can be used as objective functions in the (multiphysics) d...
Definition COutput.hpp:1021
void CheckHistoryOutput(unsigned short nZone)
CheckHistoryOutput.
Definition COutput.cpp:1399
std::string multiZoneHeaderString
Multizone header string.
Definition COutput.hpp:174
virtual void LoadTurboHistoryData(std::shared_ptr< CTurbomachineryStagePerformance > TurboStagePerf, su2vector< std::shared_ptr< CTurboOutput > > TurboPerf, CConfig *config)
Loads the turboperformacne history data.
Definition COutput.hpp:1057
vector< string > volumeFieldNames
Vector containing the volume field names.
Definition COutput.hpp:255
virtual void SetMultizoneHistoryOutputFields(const COutput *const *output, const CConfig *const *config)
Set the available multizone history output fields.
Definition COutput.hpp:1079
su2double GetHistoryFieldValue(const string &name) const
Get the value of particular history output field.
Definition COutput.hpp:493
const unsigned short nDim
Physical Dimension.
Definition COutput.hpp:78
const su2double * GetPtrToHistoryOutput(const string &name) const
Returns a pointer to the value of an history output.
Definition COutput.hpp:761
virtual bool WriteScreenOutput(const CConfig *config)
Determines if the screen header should be written.
Definition COutput.cpp:2087
const bool femOutput
Boolean to store whether we should use the FEM routines.
Definition COutput.hpp:82
std::vector< string > requestedVolumeFields
Requested volume field names in the config file.
Definition COutput.hpp:305
void PrepareHistoryFile(CConfig *config)
Open the history file and write the header.
Definition COutput.cpp:1379
su2double GetVolumeOutputValue(const string &name, unsigned long iPoint)
Set the value of a volume output field.
Definition COutput.cpp:1834
virtual void LoadVolumeDataFEM(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iElem, unsigned long index, unsigned short dof)
Set the values of the volume output fields for a point.
Definition COutput.hpp:979
void PrintConvergenceSummary()
Print a summary of the convergence to screen.
Definition COutput.cpp:924
string volumeFilename
Volume output filename.
Definition COutput.hpp:258
void SetHistoryOutput(CGeometry *geometry, CSolver **solver_container, CConfig *config, unsigned long TimeIter, unsigned long OuterIter, unsigned long InnerIter)
Collects history data from the solvers, monitors the convergence and writes to screen and history fil...
Definition COutput.cpp:192
void SetupCustomHistoryOutput(const string &expression, CustomHistoryOutput &output) const
Setup a custom history output object for a given expression.
Definition COutput.cpp:301
su2double WndCauchy_Func
Current value of the convergence indicator at one iteration.
Definition COutput.hpp:342
std::map< string, su2double > initialResiduals
Structure to store the value initial residuals for relative residual computation.
Definition COutput.hpp:181
unsigned long convergenceStartIter
Iteration the convergence history is counted from.
Definition COutput.hpp:327
vector< su2double > WndNew_Func
Current value of the objective function (the function which is monitored).
Definition COutput.hpp:341
const bool multiZone
Boolean to store whether we are running a multizone problem.
Definition COutput.hpp:80
const bool si_units
Definition COutput.hpp:83
void PreprocessVolumeOutput(CConfig *config)
Preprocess the volume output by setting the requested volume output fields.
Definition COutput.cpp:1625
su2double rhoResNew
Definition COutput.hpp:331
unsigned long curAbsTimeIter
Current value of the time iteration index.
Definition COutput.hpp:92
string GetVolumeFilename()
Returns the current volume filename.
Definition COutput.hpp:456
void SetObjectiveFunctionValues(CGeometry *geometry, CSolver **solver_container, CConfig *config)
Evaluates objective functions in the (multiphysics) discrete adjoint solver.
Definition COutput.cpp:235
const int rank
MPI Rank.
Definition COutput.hpp:75
unsigned short cachePosition
Current value of the cache indices.
Definition COutput.hpp:297
std::vector< string > volumeOutput_List
Vector that contains the keys of the volumeOutput_Map in the order of their insertion.
Definition COutput.hpp:289
void SetScreenOutput(const CConfig *config)
Write the screen output.
Definition COutput.cpp:1214
void SetVolumeOutputValue(const string &name, unsigned long iPoint, su2double value)
Set the value of a volume output field.
Definition COutput.cpp:1794
void SetHistoryFileHeader(const CConfig *config)
Set the history file header.
Definition COutput.cpp:1131
const bool us_units
Definition COutput.hpp:84
virtual bool SetInitResiduals(const CConfig *config)
Check whether the base values for relative residuals should be initialized.
Definition COutput.hpp:987
virtual ~COutput(void)
Destructor of the class.
Definition COutput.cpp:180
const bool gridMovement
Boolean to store whether we have grid movement enabled.
Definition COutput.hpp:81
void SetCustomOutputs(const CConfig *config)
Parses user-defined outputs.
Definition COutput.cpp:2214
void AllocateDataSorters(CConfig *config, CGeometry *geometry)
Allocates the data sorters if necessary.
Definition COutput.cpp:329
bool GetConvergence() const
Get convergence of the problem.
Definition COutput.hpp:599
std::map< string, vector< HistoryOutputField > > historyOutputPerSurface_Map
Associative map to access data stored in the history per surface output fields by a string identifier...
Definition COutput.hpp:153
virtual void LoadMultizoneHistoryData(const COutput *const *output, const CConfig *const *config)
Load the multizone history output field values.
Definition COutput.hpp:1031
string GetRestartFilename()
Returns the current restart filename.
Definition COutput.hpp:474
unsigned long nWndCauchy_Elems
Total number of cauchy elems to monitor.
Definition COutput.hpp:337
map< string, CWindowedAverage > windowedTimeAverages
Structure to store the value of the running averages.
Definition COutput.hpp:178
virtual void WriteAdditionalFiles(CConfig *config, CGeometry *geometry, CSolver **solver_container)
Write any additional files defined for the current solver.
Definition COutput.hpp:1087
void PreprocessMultizoneHistoryOutput(COutput **output, CConfig **config, CConfig *driver_config, bool wrt=true)
Preprocess the history output by setting the history fields and opening the history file.
Definition COutput.cpp:1307
PrintingToolbox::CTablePrinter * multiZoneHeaderTable
Multizone header output structure.
Definition COutput.hpp:171
vector< vector< su2double > > WndCauchy_Serie
Complete Cauchy serial.
Definition COutput.hpp:336
void SetHistoryOutput(CGeometry ****geometry, CSolver *****solver_container, CConfig **config, std::shared_ptr< CTurbomachineryStagePerformance > TurboStagePerf, su2vector< std::shared_ptr< CTurboOutput > > TurboBladePerfs, unsigned short val_iZone, unsigned long TimeIter, unsigned long OuterIter, unsigned long InnerIter, unsigned short val_iInst)
Collects history data from the solvers, monitors the convergence and writes to screen and history fil...
void LoadCommonHistoryData(const CConfig *config)
Load values of the history fields common for all solvers.
Definition COutput.cpp:2379
void CheckFullMG_Startup(const CConfig *config) const
Check that the Full-MG startup has a criterion left to promote the active level on.
Definition COutput.cpp:1354
virtual void SetTurboMultiZonePerformance_Output(std::shared_ptr< CTurbomachineryStagePerformance > TurboStagePerf, su2vector< std::shared_ptr< CTurboOutput > > TurboPerf, CConfig *config)
Sets the multizone turboperformacne screen output.
Definition COutput.hpp:1049
std::vector< string > requestedHistoryFields
Requested history field names in the config file.
Definition COutput.hpp:158
void PostprocessHistoryFields(CConfig *config)
Postprocess_HistoryFields.
Definition COutput.cpp:1958
su2double rhoResOld
Definition COutput.hpp:332
virtual void SetHistoryOutputFields(CConfig *config)
Set the available history output fields.
Definition COutput.hpp:1073
void ResetConvergenceMonitoring(unsigned long Iteration)
Discard the convergence history and count it from the given iteration instead.
Definition COutput.hpp:504
bool GetCauchyCorrectedTimeConvergence(const CConfig *config)
Get convergence time convergence of the specified windowed-time-averaged ouput of the problem....
Definition COutput.cpp:838
vector< string > requiredVolumeFieldNames
Vector containing the minimum required volume field names.
Definition COutput.hpp:256
string historySep
Character which separates values in the history file.
Definition COutput.hpp:89
su2double cauchyValue
Summed value of the convergence indicator.
Definition COutput.hpp:314
virtual void SetAdditionalScreenOutput(const CConfig *config)
Write any additional output defined for the current solver.
Definition COutput.hpp:1093
su2double minLogResidual
Minimum value of the residual to reach.
Definition COutput.hpp:320
unsigned long curOuterIter
Current value of the outer iteration index.
Definition COutput.hpp:93
void AddHistoryOutputPerSurface(string name, string field_name, ScreenOutputFormat format, string groupname, const vector< string > &marker_names, HistoryFieldType field_type=HistoryFieldType::DEFAULT)
Add a new field per surface marker to the history output.
Definition COutput.hpp:728
const vector< string > & GetHistoryOutputList() const
Get the list of all output fields.
Definition COutput.hpp:554
const vector< string > & GetHistoryOutputPerSurfaceList() const
Get the list of all per-surface fields.
Definition COutput.hpp:562
std::vector< CustomOutput > customOutputs
User-defined outputs.
Definition COutput.hpp:247
string restartFilename
Restart output filename.
Definition COutput.hpp:260
bool ConvergenceMonitoring(CConfig *config, unsigned long Iteration)
Monitor the convergence of an output field.
Definition COutput.cpp:955
void SetRestartFilename(string filename)
Sets the restart filename.
Definition COutput.hpp:468
const unsigned short fieldWidth
Width of each column for the screen output (hardcoded for now)
Definition COutput.hpp:88
su2double GetHistoryFieldValuePerSurface(const string &name, unsigned short iMarker) const
Get the value of particular surface history output field.
Definition COutput.hpp:528
virtual void WriteTurboSpanwisePerformance(su2vector< std::shared_ptr< CTurboOutput > > TurboBladePerfs, CGeometry *geometry, CConfig **config, unsigned short val_iZone)
Write the kinematic and thermodynamic variables at each spanwise division.
Definition COutput.hpp:1066
std::vector< short > fieldIndexCacheCompact
Definition COutput.hpp:295
vector< string > convFields
Name of the field to be monitored for convergence.
Definition COutput.hpp:326
void SetIteration(unsigned long TimeIter, unsigned long OuterIter, unsigned long InnerIter)
Set the current iteration indices.
Definition COutput.hpp:482
HistoryFieldType
Enum to identify the screen/history field type.
Definition COutput.hpp:113
@ COEFFICIENT
User defined coefficient field type
@ AUTO_RESIDUAL
An automatically generated residual field type.
@ DEFAULT
Default field type.
@ AUTO_COEFFICIENT
Automatically generated coefficient field type
@ RESIDUAL
A user-defined residual field type.
bool convergence
To indicate if the solver has converged or not.
Definition COutput.hpp:323
std::map< string, VolumeOutputField > volumeOutput_Map
Associative map to access data stored in the volume output fields by a string identifier.
Definition COutput.hpp:287
su2double WndCauchy_Value
Summed value of the convergence indicator.
Definition COutput.hpp:343
su2double cauchyEps
Defines the threshold when to stop the solver.
Definition COutput.hpp:319
std::vector< short > fieldGetIndexCache
Vector to cache the positions of the field in the data array.
Definition COutput.hpp:300
void SetCommonHistoryFields()
Set the history fields common for all solvers.
Definition COutput.cpp:2179
std::vector< string > historyOutput_List
Vector that contains the keys of the historyOutput_Map in the order of their insertion.
Definition COutput.hpp:151
virtual bool WriteScreenHeader(const CConfig *config)
Determines if the screen header should be written.
Definition COutput.cpp:2035
void AddVolumeOutput(const string &name, const string &field_name, const string &group_name, const string &description)
Add a new field to the volume output.
Definition COutput.hpp:794
su2double wndCauchyEps
Defines the threshold when to stop the solver.
Definition COutput.hpp:338
vector< pair< string, passivedouble > > GetResidualConvFields() const
Names and values of the fields convergence is monitored on that are residuals.
Definition COutput.hpp:510
bool convergenceInterrupted
To indicate that the exit was forced by an interrupt signal instead of the convergence criteria.
Definition COutput.hpp:324
unsigned long curTimeIter
Current value of the time iteration index.
Definition COutput.hpp:91
vector< su2double > WndOld_Func
Old value of the objective function (the function which is monitored).
Definition COutput.hpp:340
void SetCustomAndComboObjectives(int idxSol, const CConfig *config, CSolver **solver)
Computes the custom and combo objectives.
Definition COutput.cpp:317
virtual void SetTurboPerformance_Output(su2vector< std::shared_ptr< CTurboOutput > > TurboBladePerfs, CConfig *config, unsigned long TimeIter, unsigned long OuterIter, unsigned long InnerIter)
Sets the turboperformance screen output.
Definition COutput.hpp:1041
OperationType
Type of operation for custom outputs.
Definition COutput.hpp:198
bool MonitorTimeConvergence(CConfig *config, unsigned long Iteration)
Monitor the time convergence of the specified windowed-time-averaged ouput.
Definition COutput.cpp:1060
void PostprocessHistoryData(CConfig *config)
Postprocess_HistoryData.
Definition COutput.cpp:1909
bool noWriting
Boolean indicating whether a screen/history output should be written.
Definition COutput.hpp:90
PrintingToolbox::CTablePrinter * convergenceTable
Convergence output table structure.
Definition COutput.hpp:170
void LoadData(CGeometry *geometry, CConfig *config, CSolver **solver_container)
Load the data from the solvers into the data sorters and sort it for the linear partitioning.
Definition COutput.cpp:362
void LoadDataIntoSorter(CConfig *config, CGeometry *geometry, CSolver **solver)
Load up the values of the requested volume fields into ::Local_Data array.
Definition COutput.cpp:1725
CParallelDataSorter * surfaceDataSorter
Surface data sorter.
Definition COutput.hpp:253
PrintingToolbox::CTablePrinter * historyFileTable
Table structure for writing to history file.
Definition COutput.hpp:172
virtual bool WriteVolumeOutput(CConfig *config, unsigned long Iter, bool force_writing, unsigned short iFile)
Determines if the the volume output should be written.
Definition COutput.cpp:2169
std::vector< const HistoryOutputField * > requestedScreenFieldCache
Definition COutput.hpp:168
virtual void SetVolumeOutputFields(CConfig *config)
Set the available volume output fields.
Definition COutput.hpp:1005
CustomHistoryOutput customObjFunc
User-defined expression for a custom objective.
Definition COutput.hpp:195
bool headerNeeded
Boolean that stores whether a screen header is needed.
Definition COutput.hpp:175
std::vector< const su2double * > requestedHistoryFieldCache
Caches to avoid hashing the output maps to retrieve field values.
Definition COutput.hpp:167
void AddHistoryOutput(string name, string field_name, ScreenOutputFormat format, string groupname, string description, HistoryFieldType field_type=HistoryFieldType::DEFAULT)
Add a new field to the history output.
Definition COutput.hpp:698
std::vector< string > historyOutputPerSurface_List
Vector that contains the keys of the historyOutputPerSurface_Map in the order of their insertion.
Definition COutput.hpp:155
su2double initResidual
Initial value of the residual to evaluate the convergence level.
Definition COutput.hpp:325
virtual void LoadVolumeData(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint)
Set the values of the volume output fields for a point.
Definition COutput.hpp:968
CParallelDataSorter * volumeDataSorterCompact
Volume data sorter for compact files.
Definition COutput.hpp:252
void SetMultizoneHistoryOutput(COutput **output, CConfig **config, CConfig *driver_config, unsigned long TimeIter, unsigned long OuterIter)
Definition COutput.cpp:266
bool TimeConvergence
To indicate, if the windowed time average of the time loop has converged.
Definition COutput.hpp:344
vector< HistoryOutputField > GetHistoryGroup(string groupname)
Get a vector with all output fields in a particular group.
Definition COutput.hpp:540
string GetSurfaceFilename()
Returns the current surface filename.
Definition COutput.hpp:462
std::vector< string > requestedScreenFields
Requested screen field names in the config file.
Definition COutput.hpp:162
std::vector< short > fieldIndexCache
Vectors to cache the positions of the fields in the data array.
Definition COutput.hpp:295
std::map< string, HistoryOutputField > historyOutput_Map
Associative map to access data stored in the history output fields by a string identifier.
Definition COutput.hpp:149
bool buildFieldIndexCache
Whether the field index caches should be build.
Definition COutput.hpp:292
string surfaceFilename
Surface output filename.
Definition COutput.hpp:259
bool maxTimeDelayActive
: Flag indicating that solver is already converged. Needed for writing restart files.
Definition COutput.hpp:102
void OutputScreenAndHistory(CConfig *config)
Write screen and history output.
Definition COutput.cpp:288
void SetConvergence(const bool conv)
Set the value of the convergence flag.
Definition COutput.hpp:611
void ComputeSimpleCustomOutputs(const CConfig *config)
Evaluates function-type custom outputs. Derived classes can use this to compute simple expressions of...
Definition COutput.cpp:2339
unsigned short curGetFieldIndex
Current value of the cache index.
Definition COutput.hpp:302
unsigned long nCauchy_Elems
Total number of cauchy elems to monitor.
Definition COutput.hpp:318
bool PrintOutput(unsigned long iIter, unsigned long iFreq)
Check whether we should print output.
Definition COutput.hpp:865
const map< string, vector< HistoryOutputField > > & GetHistoryPerSurfaceFields() const
Get the map containing all output per-surface fields.
Definition COutput.hpp:578
void PreprocessHistoryOutput(CConfig *config, bool wrt=true)
Preprocess the history output by setting the history fields and opening the history file.
Definition COutput.cpp:1254
bool cauchyTimeConverged
Definition COutput.hpp:101
vector< su2double > newFunc
Current value of the coefficient.
Definition COutput.hpp:322
su2double PrevStopTime
Previous stop time for iteration timing.
Definition COutput.hpp:96
void SetVolumeFilename(string filename)
Sets the volume output filename.
Definition COutput.hpp:444
Definition CParallelDataSorter.hpp:39
Definition CSolver.hpp:71
passivedouble su2double
Definition code_config.hpp:181
FORCEINLINE ARRAY_T sqrt(const ARRAY_T &x)
Definition special_vectorization.hpp:116
#define CURRENT_FUNCTION
Definition mpi_structure.hpp:59
passivedouble GetValue(const su2double &data)
Get the (primitive) value of the datatype (needs to be specialized for active types).
Definition datatype_structure.hpp:113
su2double hypot(const su2double &a, const su2double &b)
Definition COutput.hpp:46
Definition COutput.hpp:44
@ MAX_SOLS
Definition option_structure.hpp:80
OUTPUT_TYPE
Type of solution output file formats.
Definition option_structure.hpp:2340
Struct to hold a parsed user-defined expression.
Definition COutput.hpp:184
bool ready
Definition COutput.hpp:188
std::vector< const su2double * > symbolValues
Definition COutput.hpp:187
mel::ExpressionTree< passivedouble > expression
Definition COutput.hpp:185
su2double Eval() const
Definition COutput.hpp:190
Struct to hold a parsed custom output function.
Definition COutput.hpp:201
std::vector< std::string > markers
Definition COutput.hpp:206
OperationType type
Definition COutput.hpp:204
static constexpr unsigned long MAX_VARS_PER_SOLVER
Definition COutput.hpp:225
std::vector< unsigned short > markerIndices
Definition COutput.hpp:211
static constexpr long PROBE_NOT_SETUP
Definition COutput.hpp:212
static constexpr long PROBE_NOT_OWNED
Definition COutput.hpp:213
su2double Eval(const Variables &vars) const
Definition COutput.hpp:242
bool skip
Definition COutput.hpp:236
std::vector< const su2double * > otherOutputs
Definition COutput.hpp:232
long iPoint
Definition COutput.hpp:214
std::vector< unsigned long > varIndices
Definition COutput.hpp:222
std::vector< std::string > varSymbols
Definition COutput.hpp:210
static constexpr unsigned long NOT_A_VARIABLE
Definition COutput.hpp:228
std::string func
Definition COutput.hpp:205
std::string name
Definition COutput.hpp:203
mel::ExpressionTree< passivedouble > expression
Definition COutput.hpp:209
Structure to store information for a history output field.
Definition COutput.hpp:126
string outputGroup
The group this field belongs to.
Definition COutput.hpp:134
HistoryOutputField(string fieldName_, ScreenOutputFormat screenFormat_, string OutputGroup_, HistoryFieldType fieldType_, string description_)
Constructor to initialize all members.
Definition COutput.hpp:142
HistoryFieldType fieldType
The field type.
Definition COutput.hpp:136
string description
String containing the description of the field.
Definition COutput.hpp:138
string fieldName
The name of the field, i.e. the name that is printed in the screen or file header.
Definition COutput.hpp:128
ScreenOutputFormat screenFormat
The format that is used to print this value to screen.
Definition COutput.hpp:132
HistoryOutputField()
Default constructor.
Definition COutput.hpp:140
su2double value
The value of the field.
Definition COutput.hpp:130
Structure to store information for a volume output field.
Definition COutput.hpp:266
string outputGroup
The group this field belongs to.
Definition COutput.hpp:274
VolumeOutputField(string fieldName_, string volumeOutputGroup_, string description_)
Constructor to initialize all members.
Definition COutput.hpp:280
short offsetCompact
This offset is used for the compact formulation.
Definition COutput.hpp:272
string description
String containing the description of the field.
Definition COutput.hpp:276
VolumeOutputField()=default
Default constructor.
short offset
This value identifies the position of the values of this field at each node in the ::Local_Data array...
Definition COutput.hpp:270
string fieldName
The name of the field, i.e. the name that is printed in the file header.
Definition COutput.hpp:268