Skip to content

Commit 495270d

Browse files
committed
delete all legacy volume and surface output
1 parent 9ce2a98 commit 495270d

3 files changed

Lines changed: 5611 additions & 12932 deletions

File tree

SU2_CFD/include/output/COutputLegacy.hpp

Lines changed: 5 additions & 241 deletions
Original file line numberDiff line numberDiff line change
@@ -56,86 +56,9 @@ using namespace std;
5656
*/
5757
class COutputLegacy {
5858

59-
unsigned long nGlobal_Poin; // Global number of nodes with halos
60-
unsigned long nSurf_Poin; // Global number of nodes of the surface
61-
unsigned long nGlobal_Doma; // Global number of nodes without halos
62-
unsigned long nGlobal_Elem; // Global number of elems without halos
63-
unsigned long nSurf_Elem, // Global number of surface elems without halos
64-
nGlobal_Line,
65-
nGlobal_BoundTria,
66-
nGlobal_BoundQuad,
67-
nGlobal_Tria,
68-
nGlobal_Quad,
69-
nGlobal_Tetr,
70-
nGlobal_Hexa,
71-
nGlobal_Pris,
72-
nGlobal_Pyra;
73-
su2double **Coords; // node i (x, y, z) = (Coords[0][i], Coords[1][i], Coords[2][i])
74-
int *Conn_Line;
75-
int *Conn_BoundTria;
76-
int *Conn_BoundQuad;
77-
int *Conn_Tria; // triangle 1 = Conn_Tria[0], Conn_Tria[1], Conn_Tria[3]
78-
int *Conn_Quad;
79-
int *Conn_Tetr;
80-
int *Conn_Hexa;
81-
int *Conn_Pris;
82-
int *Conn_Pyra;
83-
84-
85-
unsigned long nGlobal_Poin_Par; // Global number of nodes with halos
86-
unsigned long nGlobal_Elem_Par; // Global number of elems without halos
87-
unsigned long nGlobal_Surf_Poin;
88-
unsigned long nSurf_Elem_Par;
89-
unsigned long nSurf_Poin_Par;
90-
unsigned long nParallel_Poin;
91-
unsigned long nParallel_Line,
92-
nParallel_BoundTria,
93-
nParallel_BoundQuad,
94-
nParallel_Tria,
95-
nParallel_Quad,
96-
nParallel_Tetr,
97-
nParallel_Hexa,
98-
nParallel_Pris,
99-
nParallel_Pyra;
100-
int *Conn_BoundLine_Par;
101-
int *Conn_BoundTria_Par;
102-
int *Conn_BoundQuad_Par;
103-
int *Conn_Tria_Par; // triangle 1 = Conn_Tria[0], Conn_Tria[1], Conn_Tria[3]
104-
int *Conn_Quad_Par;
105-
int *Conn_Tetr_Par;
106-
int *Conn_Hexa_Par;
107-
int *Conn_Pris_Par;
108-
int *Conn_Pyra_Par;
109-
110-
unsigned long nGlobalPoint_Sort;
111-
unsigned long nLocalPoint_Sort;
112-
unsigned long nPoint_Restart;
113-
int *Local_Halo_Sort;
114-
115-
unsigned long *beg_node;
116-
unsigned long *end_node;
117-
118-
unsigned long *nPointLinear;
119-
unsigned long *nPointCumulative;
120-
121-
unsigned short nVar_Par;
122-
su2double **Local_Data;
123-
su2double **Local_Data_Copy; // Local data copy for cte. lift mode
124-
su2double **Parallel_Data; // node i (x, y, z) = (Coords[0][i], Coords[1][i], Coords[2][i])
125-
su2double **Parallel_Surf_Data; // node i (x, y, z) = (Coords[0][i], Coords[1][i], Coords[2][i])
126-
vector<string> Variable_Names;
127-
128-
su2double **Data;
129-
unsigned short nVar_Consv, nVar_Total, nVar_Extra, nZones;
130-
bool wrote_surf_file, wrote_CGNS_base, wrote_Tecplot_base, wrote_Paraview_base;
131-
unsigned short wrote_base_file;
132-
su2double RhoRes_New, *RhoRes_Old;
133-
int cgns_base, cgns_zone, cgns_base_results, cgns_zone_results;
134-
13559
su2double Sum_Total_RadialDistortion, Sum_Total_CircumferentialDistortion; // Add all the distortion to compute a run average.
13660
bool turbo;
137-
unsigned short nSpanWiseSections,
138-
nMarkerTurboPerf;
61+
unsigned short nSpanWiseSections, nMarkerTurboPerf;
13962

14063
su2double **TotalStaticEfficiency,
14164
**TotalTotalEfficiency,
@@ -204,18 +127,6 @@ class COutputLegacy {
204127
*/
205128
~COutputLegacy(void);
206129

207-
/*!
208-
* \brief Writes and organizes the all the output files, except the history one, for serial computations.
209-
* \param[in] solver_container - Container vector with all the solutions.
210-
* \param[in] geometry - Geometrical definition of the problem.
211-
* \param[in] config - Definition of the particular problem.
212-
* \param[in] iExtIter - Current external (time) iteration.
213-
* \param[in] val_iZone - Total number of domains in the grid file.
214-
* \param[in] val_nZone - Total number of domains in the grid file.
215-
*/
216-
void SetResult_Files(CSolver *****solver_container, CGeometry ****geometry, CConfig **config,
217-
unsigned long iExtIter, unsigned short val_nZone);
218-
219130
/*!
220131
* \brief Writes equivalent area.
221132
* \param[in] solver - Container vector with all the solutions.
@@ -275,112 +186,6 @@ class COutputLegacy {
275186
*/
276187
void SpecialOutput_Distortion(CSolver *solver, CGeometry *geometry, CConfig *config, bool output) const;
277188

278-
/*!
279-
* \brief Create and write the file with the FSI convergence history.
280-
* \param[in] iIter - Current iteration.
281-
* \param[in] iFreq - Frequency of output printing.
282-
*/
283-
bool PrintOutput(unsigned long iIter, unsigned long iFreq);
284-
285-
/*!
286-
* \brief Create and write the file with the flow coefficient on the surface.
287-
* \param[in] config - Definition of the particular problem.
288-
* \param[in] geometry - Geometrical definition of the problem.
289-
* \param[in] FlowSolution - Flow solution.
290-
* \param[in] iExtIter - Current external (time) iteration.
291-
* \param[in] val_iZone - Current zone number in the grid file.
292-
*/
293-
void SetSurfaceCSV_Flow(CConfig *config, CGeometry *geometry, CSolver *FlowSolver, unsigned long iExtIter, unsigned short val_iZone, unsigned short val_iInst);
294-
295-
/*!
296-
* \brief Create and write the file with the adjoint coefficients on the surface for serial computations.
297-
* \param[in] config - Definition of the particular problem.
298-
* \param[in] geometry - Geometrical definition of the problem.
299-
* \param[in] AdjSolution - Adjoint solution.
300-
* \param[in] FlowSolution - Flow solution.
301-
* \param[in] iExtIter - Current external (time) iteration.
302-
* \param[in] val_iZone - Current zone number in the grid file.
303-
*/
304-
void SetSurfaceCSV_Adjoint(CConfig *config, CGeometry *geometry, CSolver *AdjSolver, CSolver *FlowSolution, unsigned long iExtIter, unsigned short val_iZone, unsigned short val_iInst);
305-
306-
/*!
307-
* \brief Merge the geometry into a data structure used for output file writing.
308-
* \param[in] config - Definition of the particular problem.
309-
* \param[in] geometry - Geometrical definition of the problem.
310-
* \param[in] val_nZone - iZone index.
311-
*/
312-
void MergeConnectivity(CConfig *config, CGeometry *geometry, unsigned short val_iZone);
313-
314-
/*!
315-
* \brief Merge the node coordinates from all processors.
316-
* \param[in] config - Definition of the particular problem.
317-
* \param[in] geometry - Geometrical definition of the problem.
318-
*/
319-
void MergeCoordinates(CConfig *config, CGeometry *geometry);
320-
321-
/*!
322-
* \brief Merge the connectivity for a single element type from all processors.
323-
* \param[in] config - Definition of the particular problem.
324-
* \param[in] geometry - Geometrical definition of the problem.
325-
* \param[in] Elem_Type - VTK index of the element type being merged.
326-
*/
327-
void MergeVolumetricConnectivity(CConfig *config, CGeometry *geometry, unsigned short Elem_Type);
328-
329-
/*!
330-
* \brief Merge the connectivity for a single element type from all processors.
331-
* \param[in] config - Definition of the particular problem.
332-
* \param[in] geometry - Geometrical definition of the problem.
333-
* \param[in] Elem_Type - VTK index of the element type being merged.
334-
*/
335-
void MergeSurfaceConnectivity(CConfig *config, CGeometry *geometry, unsigned short Elem_Type);
336-
337-
/*!
338-
* \brief Merge the solution into a data structure used for output file writing.
339-
* \param[in] config - Definition of the particular problem.
340-
* \param[in] geometry - Geometrical definition of the problem.
341-
* \param[in] solution - Flow, adjoint or linearized solution.
342-
* \param[in] val_nZone - iZone index.
343-
*/
344-
void MergeSolution(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned short val_iZone);
345-
346-
/*!
347-
* \brief Write a native SU2 restart file.
348-
* \param[in] config - Definition of the particular problem.
349-
* \param[in] geometry - Geometrical definition of the problem.
350-
* \param[in] solver - Flow, adjoint or linearized solution.
351-
* \param[in] val_iZone - iZone index.
352-
*/
353-
void SetRestart(CConfig *config, CGeometry *geometry, CSolver **solver, unsigned short val_iZone);
354-
355-
/*!
356-
* \brief Write the nodal coordinates and connectivity to a Tecplot binary mesh file.
357-
* \param[in] config - Definition of the particular problem.
358-
* \param[in] geometry - Geometrical definition of the problem.
359-
* \param[in] val_iZone - iZone index.
360-
*/
361-
string AssembleVariableNames(CGeometry *geometry, CConfig *config, unsigned short nVar_Consv, unsigned short *NVar);
362-
363-
/*!
364-
* \brief Deallocate temporary memory needed for merging and writing coordinates.
365-
* \param[in] config - Definition of the particular problem.
366-
* \param[in] geometry - Geometrical definition of the problem.
367-
*/
368-
void DeallocateCoordinates(CConfig *config, CGeometry *geometry);
369-
370-
/*!
371-
* \brief Deallocate temporary memory needed for merging and writing connectivity.
372-
* \param[in] config - Definition of the particular problem.
373-
* \param[in] geometry - Geometrical definition of the problem.
374-
*/
375-
void DeallocateConnectivity(CConfig *config, CGeometry *geometry, bool surf_sol);
376-
377-
/*!
378-
* \brief Deallocate temporary memory needed for merging and writing solution variables.
379-
* \param[in] config - Definition of the particular problem.
380-
* \param[in] geometry - Geometrical definition of the problem.
381-
*/
382-
void DeallocateSolution(CConfig *config, CGeometry *geometry);
383-
384189
/*!
385190
* \brief Write the header of the history file.
386191
* \param[in] ConvHist_file - Pointer to the convergence history file (which is defined in the main subroutine).
@@ -479,51 +284,10 @@ class COutputLegacy {
479284
void SetSpecial_Output(CSolver *****solver_container, CGeometry ****geometry, CConfig **config,
480285
unsigned long iExtIter, unsigned short val_nZone);
481286

482-
/*!
483-
* \brief Prepare the number of points and offsets for linear partitioning that are needed for output.
484-
* \param[in] config - Definition of the particular problem.
485-
* \param[in] geometry - Geometrical definition of the problem.
486-
*/
487-
void PrepareOffsets(CConfig *config, CGeometry *geometry);
488-
489-
/*!
490-
* \brief Sort the connectivities (volume and surface) into data structures used for output file writing.
491-
* \param[in] config - Definition of the particular problem.
492-
* \param[in] geometry - Geometrical definition of the problem.
493-
* \param[in] val_nZone - iZone index.
494-
*/
495-
void SortConnectivity(CConfig *config, CGeometry *geometry, unsigned short val_iZone);
496-
497-
/*!
498-
* \brief Sort the connectivity for a single volume element type into a linear partitioning across all processors.
499-
* \param[in] config - Definition of the particular problem.
500-
* \param[in] geometry - Geometrical definition of the problem.
501-
* \param[in] Elem_Type - VTK index of the element type being merged.
502-
*/
503-
void SortVolumetricConnectivity(CConfig *config, CGeometry *geometry, unsigned short Elem_Type);
504-
505-
/*!
506-
* \brief Sort the connectivity for a single surface element type into a linear partitioning across all processors.
507-
* \param[in] config - Definition of the particular problem.
508-
* \param[in] geometry - Geometrical definition of the problem.
509-
* \param[in] Elem_Type - VTK index of the element type being merged.
510-
*/
511-
void SortSurfaceConnectivity(CConfig *config, CGeometry *geometry, unsigned short Elem_Type);
512-
513-
/*!
514-
* \brief Sort the output data for each grid node into a linear partitioning across all processors.
515-
* \param[in] config - Definition of the particular problem.
516-
* \param[in] geometry - Geometrical definition of the problem.
517-
*/
518-
void SortOutputData(CConfig *config, CGeometry *geometry);
287+
};
519288

520-
/*!
521-
* \brief Sort the surface output data for each grid node into a linear partitioning across all processors.
522-
* \param[in] config - Definition of the particular problem.
523-
* \param[in] geometry - Geometrical definition of the problem.
524-
*/
525-
void SortOutputData_Surface(CConfig *config, CGeometry *geometry);
289+
inline su2double COutputLegacy::GetEntropyGen(unsigned short iMarkerTP, unsigned short iSpan) { return EntropyGen[iMarkerTP][iSpan]; }
526290

527-
};
291+
inline su2double COutputLegacy::GetFlowAngleOut(unsigned short iMarkerTP, unsigned short iSpan) { return FlowAngleOut[iMarkerTP][iSpan]*180.0/PI_NUMBER; }
528292

529-
#include "output_structure_legacy.inl"
293+
inline su2double COutputLegacy::GetMassFlowIn(unsigned short iMarkerTP, unsigned short iSpan) { return MassFlowIn[iMarkerTP][iSpan]; }

SU2_CFD/include/output/output_structure_legacy.inl

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)