31#include "../variables/CDiscAdjVariable.hpp"
202 unsigned long val_vertex)
const override {
220 bool reset =
false)
override;
242 unsigned short iMesh,
243 unsigned short iRKStep,
244 unsigned short RunTime_EqSystem,
245 bool Output)
override;
259 bool val_update_geo)
override;
Headers of the CSolver class which is inherited by all of the other solvers.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Main class for defining the discrete adjoint solver.
Definition CDiscAdjSolver.hpp:39
void RegisterSolution(CGeometry *geometry, CConfig *config) override
Performs the preprocessing of the adjoint AD-based solver. Registers all necessary variables on the t...
Definition CDiscAdjSolver.cpp:157
su2double Total_Sens_AoA
Total angle of attack sensitivity coefficient for all the boundaries.
Definition CDiscAdjSolver.hpp:53
CSolver * direct_solver
Definition CDiscAdjSolver.hpp:49
void ExtractAdjoint_Solution(CGeometry *geometry, CConfig *config, bool CrossTerm) override
Sets the adjoint values of the input variables of the flow (+turb.) iteration after tape has been eva...
Definition CDiscAdjSolver.cpp:352
su2double GetTotal_Sens_Geo() const override
Provide the total shape sensitivity coefficient.
Definition CDiscAdjSolver.hpp:145
su2double Alpha
Definition CDiscAdjSolver.hpp:60
vector< su2double > Sens_Geo
Total shape sensitivity for each monitored boundary.
Definition CDiscAdjSolver.hpp:51
void SetSensitivity(CGeometry *geometry, CConfig *config, CSolver *) override
Extract and set the geometrical sensitivity.
Definition CDiscAdjSolver.cpp:540
su2double Total_Sens_BPress
Total sensitivity to outlet pressure.
Definition CDiscAdjSolver.hpp:57
su2double GetCSensitivity(unsigned short val_marker, unsigned long val_vertex) const override
Get the shape sensitivity coefficient.
Definition CDiscAdjSolver.hpp:201
su2double Beta
Definition CDiscAdjSolver.hpp:60
static constexpr size_t MAXNVAR
Max number of variables, for static arrays.
Definition CDiscAdjSolver.hpp:42
su2double GetTotal_Sens_Density() const override
Get the total density sensitivity coefficient.
Definition CDiscAdjSolver.hpp:187
su2double Pressure
Definition CDiscAdjSolver.hpp:60
su2double Total_Sens_ModVel
Total sensitivity to inlet velocity (incompressible).
Definition CDiscAdjSolver.hpp:59
void RegisterVariables(CGeometry *geometry, CConfig *config, bool reset=false) override
A virtual member.
Definition CDiscAdjSolver.cpp:180
su2double GetTotal_Sens_AoA() const override
Set the total angle of attack sensitivity coefficient.
Definition CDiscAdjSolver.hpp:159
CVariable * GetBaseClassPointerToNodes() override
Return nodes to allow CSolver::base_nodes to be set.
Definition CDiscAdjSolver.hpp:68
CDiscAdjSolver()=default
Constructor of the class.
su2double TemperatureRad
Definition CDiscAdjSolver.hpp:61
static constexpr size_t MAXNDIM
Max number of space dimensions, used in some static arrays.
Definition CDiscAdjSolver.hpp:41
void SetAdjoint_Output(CGeometry *geometry, CConfig *config) override
Sets the adjoint values of the output of the flow (+turb.) iteration before evaluation of the tape.
Definition CDiscAdjSolver.cpp:506
unsigned short KindDirect_Solver
Definition CDiscAdjSolver.hpp:48
su2double Total_Sens_Temp_Rad
Definition CDiscAdjSolver.hpp:61
su2double GetTotal_Sens_BPress() const override
Get the total Back pressure number sensitivity coefficient.
Definition CDiscAdjSolver.hpp:181
~CDiscAdjSolver() override
Destructor of the class.
Definition CDiscAdjSolver.cpp:116
su2double Total_Sens_Density
Total sensitivity to initial density (incompressible).
Definition CDiscAdjSolver.hpp:58
su2double GetTotal_Sens_Press() const override
Set the total farfield pressure sensitivity coefficient.
Definition CDiscAdjSolver.hpp:166
void SetRecording(CGeometry *geometry, CConfig *config) override
Prepare the solver for a new recording.
Definition CDiscAdjSolver.cpp:118
su2double GetTotal_Sens_Temp() const override
Set the total farfield temperature sensitivity coefficient.
Definition CDiscAdjSolver.hpp:173
unsigned long omp_chunk_size
Chunk size used in light point loops.
Definition CDiscAdjSolver.hpp:46
static constexpr size_t OMP_MAX_SIZE
Max chunk size for light point loops.
Definition CDiscAdjSolver.hpp:44
void ExtractAdjoint_Variables(CGeometry *geometry, CConfig *config) override
A virtual member.
Definition CDiscAdjSolver.cpp:440
void RegisterOutput(CGeometry *geometry, CConfig *config) override
Performs the preprocessing of the adjoint AD-based solver. Registers all necessary variables that are...
Definition CDiscAdjSolver.cpp:342
su2double Total_Sens_Temp
Total farfield sensitivity to temperature.
Definition CDiscAdjSolver.hpp:56
su2double GetTotal_Sens_ModVel() const override
Get the total velocity magnitude sensitivity coefficient.
Definition CDiscAdjSolver.hpp:193
void Preprocessing(CGeometry *geometry, CSolver **solver_container, CConfig *config, unsigned short iMesh, unsigned short iRKStep, unsigned short RunTime_EqSystem, bool Output) override
Update the dual-time derivatives.
Definition CDiscAdjSolver.cpp:644
CDiscAdjVariable * nodes
The highest level in the variable hierarchy this solver can safely use.
Definition CDiscAdjSolver.hpp:63
su2double Mach
Definition CDiscAdjSolver.hpp:60
vector< vector< su2double > > CSensitivity
Shape sensitivity coefficient for each boundary and vertex.
Definition CDiscAdjSolver.hpp:50
bool GetHasHybridParallel() const override
Depends on the direct solver.
Definition CDiscAdjSolver.hpp:264
void SetSurface_Sensitivity(CGeometry *geometry, CConfig *config) override
Set the surface sensitivity.
Definition CDiscAdjSolver.cpp:582
su2double Temperature
Definition CDiscAdjSolver.hpp:60
su2double Total_Sens_Mach
Total mach sensitivity coefficient for all the boundaries.
Definition CDiscAdjSolver.hpp:52
void LoadRestart(CGeometry **geometry, CSolver ***solver, CConfig *config, int val_iter, bool val_update_geo) override
Load a solution from a restart file.
Definition CDiscAdjSolver.cpp:670
su2double GetTotal_Sens_Mach() const override
Set the total Mach number sensitivity coefficient.
Definition CDiscAdjSolver.hpp:152
su2double Total_Sens_Press
Total farfield sensitivity to pressure.
Definition CDiscAdjSolver.hpp:55
su2double Total_Sens_Geo
Total shape sensitivity coefficient for all the boundaries.
Definition CDiscAdjSolver.hpp:54
su2double ModVel
Definition CDiscAdjSolver.hpp:60
su2double BPressure
Definition CDiscAdjSolver.hpp:60
Main class for defining the variables of the adjoint solver.
Definition CDiscAdjVariable.hpp:38
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
Definition CSolver.hpp:71
virtual bool GetHasHybridParallel() const
Whether the methods of the solver called by multi/single-grid iteration can be executed by multiple t...
Definition CSolver.hpp:4336
Main class for defining the variables.
Definition CVariable.hpp:50
passivedouble su2double
Definition code_config.hpp:181