Documentation 6b54b78464
Loading...
Searching...
No Matches
CSinglezoneDriver.hpp
Go to the documentation of this file.
1/*!
2 * \file CSinglezoneDriver.hpp
3 * \brief Headers of the main subroutines for driving single or multi-zone problems.
4 * The subroutines and functions are in the <i>driver_structure.cpp</i> file.
5 * \author T. Economon, H. Kline, R. Sanchez
6 * \version 8.5.0 "Harrier"
7 *
8 * SU2 Project Website: https://su2code.github.io
9 *
10 * The SU2 Project is maintained by the SU2 Foundation
11 * (http://su2foundation.org)
12 *
13 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
14 *
15 * SU2 is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * SU2 is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29#pragma once
30#include "CDriver.hpp"
31
32/*!
33 * \class CSinglezoneDriver
34 * \ingroup Drivers
35 * \brief Class for driving single-zone solvers.
36 * \author R. Sanchez
37 * \version 8.5.0 "Harrier"
38 */
39class CSinglezoneDriver : public CDriver {
40protected:
41
42 unsigned long TimeIter;
43
44 /*!
45 * \brief Returns whether all specified windowed-time-averaged ouputs have been converged
46 * \return Boolean indicating whether the problem is converged.
47 */
48 virtual bool GetTimeConvergence() const;
49
50public:
51
52 /*!
53 * \brief Constructor of the class.
54 * \param[in] confFile - Configuration file name.
55 * \param[in] val_nZone - Total number of zones.
56 * \param[in] MPICommunicator - MPI communicator for SU2.
57 */
58 CSinglezoneDriver(char* confFile,
59 unsigned short val_nZone,
60 SU2_Comm MPICommunicator);
61
62 /*!
63 * \brief Destructor of the class.
64 */
65 ~CSinglezoneDriver(void) override;
66
67 /*!
68 * \brief [Overload] Launch the computation for single-zone problems.
69 */
70 void StartSolver() override;
71
72 /*!
73 * \brief Preprocess the single-zone iteration
74 */
75 void Preprocess(unsigned long TimeIter) override;
76
77 /*!
78 * \brief Run the iteration for ZONE_0.
79 */
80 void Run() override;
81
82 /*!
83 * \brief Postprocess the iteration for ZONE_0.
84 */
85 virtual void Postprocess();
86
87 /*!
88 * \brief Update the dual-time solution within multiple zones.
89 */
90 void Update() override;
91
92 /*!
93 * \brief Output the solution in solution file.
94 */
95 void Output(unsigned long TimeIter) override;
96
97 /*!
98 * \brief Perform a dynamic mesh deformation, included grid velocity computation and the update of the multigrid structure.
99 */
100 void DynamicMeshUpdate(unsigned long TimeIter) override;
101
102 /*!
103 * \brief Perform a mesh deformation as initial condition.
104 */
105 void SetInitialMesh() override;
106
107 /*!
108 * \brief Monitor
109 * \param ExtIter
110 */
111 bool Monitor(unsigned long TimeIter) override;
112
113};
Headers of the main subroutines for driving single or multi-zone problems. The subroutines and functi...
Parent class for driving an iteration of a single or multi-zone problem.
Definition CDriver.hpp:51
Class for driving single-zone solvers.
Definition CSinglezoneDriver.hpp:39
void Update() override
Update the dual-time solution within multiple zones.
Definition CSinglezoneDriver.cpp:184
void Preprocess(unsigned long TimeIter) override
Preprocess the single-zone iteration.
Definition CSinglezoneDriver.cpp:106
void DynamicMeshUpdate(unsigned long TimeIter) override
Perform a dynamic mesh deformation, included grid velocity computation and the update of the multigri...
Definition CSinglezoneDriver.cpp:230
bool Monitor(unsigned long TimeIter) override
Monitor.
Definition CSinglezoneDriver.cpp:256
virtual bool GetTimeConvergence() const
Returns whether all specified windowed-time-averaged ouputs have been converged.
Definition CSinglezoneDriver.cpp:322
void Output(unsigned long TimeIter) override
Output the solution in solution file.
Definition CSinglezoneDriver.cpp:193
virtual void Postprocess()
Postprocess the iteration for ZONE_0.
Definition CSinglezoneDriver.cpp:170
unsigned long TimeIter
Definition CSinglezoneDriver.hpp:42
void StartSolver() override
[Overload] Launch the computation for single-zone problems.
Definition CSinglezoneDriver.cpp:46
~CSinglezoneDriver(void) override
Destructor of the class.
void Run() override
Run the iteration for ZONE_0.
Definition CSinglezoneDriver.cpp:158
void SetInitialMesh() override
Perform a mesh deformation as initial condition.
Definition python_wrapper_structure.cpp:118
int SU2_Comm
Definition mpi_structure.hpp:619