114 unsigned short val_nZone,
131 void Run(
void)
override;
Headers of the main subroutines for driving single or multi-zone problems. The subroutines and functi...
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
unsigned short GetKind_ObjFunc(unsigned short val_obj=0) const
Get the kind of objective function. There are several options: Drag coefficient, Lift coefficient,...
Definition CConfig.hpp:5606
unsigned short GetnObj(void) const
Get the total number of objectives in kind_objective list.
Definition CConfig.hpp:3327
Class for driving single-zone adjoint solvers.
Definition CDiscAdjSinglezoneDriver.hpp:39
RECORDING RecordingState
The kind of recording the tape currently holds.
Definition CDiscAdjSinglezoneDriver.hpp:43
CConfig * config
Definition of the particular problem.
Definition CDiscAdjSinglezoneDriver.hpp:50
unsigned long nAdjoint_Iter
The number of adjoint iterations that are run on the fixed-point solver.
Definition CDiscAdjSinglezoneDriver.hpp:42
CIteration * direct_iteration
A pointer to the direct iteration.
Definition CDiscAdjSinglezoneDriver.hpp:48
void Preprocess(unsigned long TimeIter) override
Preprocess the single-zone iteration.
Definition CDiscAdjSinglezoneDriver.cpp:132
CNumerics *** numerics
Container vector with all the numerics.
Definition CDiscAdjSinglezoneDriver.hpp:56
CSolver ** solver
Container vector with all the solutions.
Definition CDiscAdjSinglezoneDriver.hpp:54
bool GetTimeConvergence() const override
gets Convergence on physical time scale, (deactivated in adjoint case)
Definition CDiscAdjSinglezoneDriver.hpp:102
~CDiscAdjSinglezoneDriver(void) override
Destructor of the class.
Definition CDiscAdjSinglezoneDriver.cpp:124
CIteration * iteration
Container vector with all the iteration methods.
Definition CDiscAdjSinglezoneDriver.hpp:51
int MainSolver
Index of the main adjoint solver.
Definition CDiscAdjSinglezoneDriver.hpp:46
CIntegration ** integration
Container vector with all the integration methods.
Definition CDiscAdjSinglezoneDriver.hpp:52
void Postprocess(void) override
Postprocess the adjoint iteration for ZONE_0.
Definition CDiscAdjSinglezoneDriver.cpp:229
su2double ObjFunc
The value of the objective function.
Definition CDiscAdjSinglezoneDriver.hpp:47
void SetAdjObjFunction(void)
Initialize the adjoint value of the objective function.
Definition CDiscAdjSinglezoneDriver.cpp:333
void Run(void) override
Run a single iteration of the discrete adjoint solver with a single zone.
Definition CDiscAdjSinglezoneDriver.cpp:157
bool TrivialFunction() const
Returns true if the objective function does not depend on the main variables. In which case,...
Definition CDiscAdjSinglezoneDriver.hpp:62
RECORDING SecondaryVariables
The kind of recording linked to the secondary variables of the problem.
Definition CDiscAdjSinglezoneDriver.hpp:45
RECORDING MainVariables
The kind of recording linked to the main variables of the problem.
Definition CDiscAdjSinglezoneDriver.hpp:44
void DirectRun(RECORDING kind_recording)
Run one iteration of the solver.
Definition CDiscAdjSinglezoneDriver.cpp:399
void SetRecording(RECORDING kind_recording)
Record one iteration of a flow iteration in within multiple zones.
Definition CDiscAdjSinglezoneDriver.cpp:259
CGeometry * geometry
Geometrical definition of the problem.
Definition CDiscAdjSinglezoneDriver.hpp:53
void SecondaryRecording(void)
Record the secondary computational path.
Definition CDiscAdjSinglezoneDriver.cpp:447
COutput * direct_output
Definition CDiscAdjSinglezoneDriver.hpp:55
void SetObjFunction(void)
Set the objective function.
Definition CDiscAdjSinglezoneDriver.cpp:356
void MainRecording(void)
Record the main computational path.
Definition CDiscAdjSinglezoneDriver.cpp:424
CConfig ** config_container
Definition of the particular problem.
Definition CDriverBase.hpp:68
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
Main class for doing the space integration, time integration, and monitoring of a system of Partial D...
Definition CIntegration.hpp:47
Parent class for defining a single iteration of a physics problem.
Definition CIteration.hpp:50
Class for defining the numerical methods.
Definition CNumerics.hpp:48
Class for writing the convergence history and to write solution data to file.
Definition COutput.hpp:68
Class for driving single-zone solvers.
Definition CSinglezoneDriver.hpp:39
unsigned long TimeIter
Definition CSinglezoneDriver.hpp:42
Definition CSolver.hpp:71
passivedouble su2double
Definition code_config.hpp:181
int SU2_Comm
Definition mpi_structure.hpp:619
@ VOLUME_FRACTION
Volume average physical density, for material-based topology optimization applications.
Definition option_structure.hpp:2261
const unsigned int ZONE_0
Definition of the first grid domain.
Definition option_structure.hpp:90
RECORDING
Definition option_structure.hpp:2820