32#include "../../../Common/include/containers/CVertexMap.hpp"
73 return Bound_Disp_Direct[iPoint];
82 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
83 Bound_Disp_Direct(iPoint,iDim) = val_BoundDisp[iDim];
92 for (
unsigned long iDim = 0; iDim <
nDim; iDim++)
93 Bound_Disp_Sens(iPoint,iDim) = val_sens[iDim];
103 return Bound_Disp_Sens(iPoint,iDim);
116 inline void Set_isVertex(
unsigned long iPoint,
bool isVertex)
override {
125 return Bound_Disp_Sens(iPoint,iDim);
Declaration and inlines of the parent class for defining problem variables, function definitions in f...
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Main class for defining the variables on the mesh deformation boundaries for adjoint applications.
Definition CDiscAdjMeshBoundVariable.hpp:38
su2double Get_BGSSolution(unsigned long iPoint, unsigned long iDim) const override
Get the value of the BGS solution.
Definition CDiscAdjMeshBoundVariable.hpp:123
void SetBoundDisp_Direct(unsigned long iPoint, const su2double *val_BoundDisp) override
Set the solution for the boundary displacements.
Definition CDiscAdjMeshBoundVariable.hpp:80
void Set_BGSSolution_k() override
Set the value of the solution in the previous BGS subiteration.
Definition CDiscAdjMeshBoundVariable.cpp:67
su2double GetBoundDisp_Sens(unsigned long iPoint, unsigned long iDim) const override
Get the value of the sensitivity with respect to the undeformed coordinates.
Definition CDiscAdjMeshBoundVariable.hpp:101
~CDiscAdjMeshBoundVariable() override=default
Destructor of the class.
void Set_BGSSolution_k(unsigned long iPoint, unsigned long iDim, su2double val) override
Get the value of the solution in the previous BGS subiteration.
Definition CDiscAdjMeshBoundVariable.hpp:151
void SetBoundDisp_Sens(unsigned long iPoint, const su2double *val_sens) override
Set the value of the sensitivity with respect to the undeformed coordinates.
Definition CDiscAdjMeshBoundVariable.hpp:90
void AllocateBoundaryVariables(CConfig *config)
Allocate member variables for points marked as vertex (via "Set_isVertex").
Definition CDiscAdjMeshBoundVariable.cpp:44
void Restore_BGSSolution_k() override
Restore the previous BGS subiteration to solution.
Definition CDiscAdjMeshBoundVariable.cpp:71
su2double Get_BGSSolution_k(unsigned long iPoint, unsigned long iDim) const override
Get the value of the solution in the previous BGS subiteration.
Definition CDiscAdjMeshBoundVariable.hpp:142
void Set_isVertex(unsigned long iPoint, bool isVertex) override
Set whether a node is on the boundary.
Definition CDiscAdjMeshBoundVariable.hpp:116
const su2double * GetBoundDisp_Direct(unsigned long iPoint) const override
Get the value of the displacement imposed at the boundary.
Definition CDiscAdjMeshBoundVariable.hpp:71
bool Get_isVertex(unsigned long iPoint) const override
Get whether a node is on the boundary.
Definition CDiscAdjMeshBoundVariable.hpp:109
Main class for defining the variables.
Definition CVariable.hpp:50
MatrixType Solution_BGS_k
Old solution container for BGS iterations.
Definition CVariable.hpp:95
unsigned long nDim
Number of dimension of the problem.
Definition CVariable.hpp:107
A lookup type map, maps indices in a large range to indices in a smaller one.
Definition CVertexMap.hpp:53
bool GetIsVertex(unsigned long iPoint) const
Get wheter a point is marked as vertex.
Definition CVertexMap.hpp:97
bool SetIsVertex(unsigned long iPoint, bool isVertex)
Set the vertex status of a point.
Definition CVertexMap.hpp:85
bool GetVertexIndex(unsigned long &iVertex) const
Convert a point index to vertex index.
Definition CVertexMap.hpp:121
passivedouble su2double
Definition code_config.hpp:181