32#include "../../../Common/include/containers/CVertexMap.hpp"
68 return Boundary_Displacement(iPoint,iDim);
77 for (
unsigned long iDim = 0; iDim <
nDim; iDim++) Boundary_Displacement(iPoint,iDim) = val_BoundDisp[iDim];
87 Boundary_Displacement(iPoint,iDim) = val_BoundDisp;
96 return Boundary_Velocity(iPoint,iDim);
105 for (
unsigned long iDim = 0; iDim <
nDim; iDim++) Boundary_Velocity(iPoint,iDim) = val_BoundVel[iDim];
115 Boundary_Velocity(iPoint,iDim) = val_BoundVel;
128 for (
unsigned long iVar = 0; iVar <
nVar; iVar++) {
143 inline void Set_isVertex(
unsigned long iPoint,
bool isVertex)
override {
Declaration and inlines of the class to define the variables of the mesh movement.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Definition CMeshBoundVariable.hpp:34
void AllocateBoundaryVariables(CConfig *config)
Allocate member variables for points marked as vertex (via "Set_isVertex").
Definition CMeshBoundVariable.cpp:36
void SetBound_Disp(unsigned long iPoint, const su2double *val_BoundDisp) override
Set the boundary displacements.
Definition CMeshBoundVariable.hpp:75
su2double GetBound_Vel(unsigned long iPoint, unsigned long iDim) const override
Get the value of the displacement imposed at the boundary.
Definition CMeshBoundVariable.hpp:94
void SetBound_Vel(unsigned long iPoint, unsigned long iDim, su2double val_BoundVel) override
Set the boundary velocity.
Definition CMeshBoundVariable.hpp:113
~CMeshBoundVariable() override=default
Destructor of the class.
void SetBound_Disp(unsigned long iPoint, unsigned long iDim, su2double val_BoundDisp) override
Set the boundary displacement.
Definition CMeshBoundVariable.hpp:85
void SetBound_Vel(unsigned long iPoint, const su2double *val_BoundVel) override
Set the boundary displacements.
Definition CMeshBoundVariable.hpp:103
const CVertexMap< unsigned > & GetVertexMap() const
Get the vertex map used by this class.
Definition CMeshBoundVariable.hpp:150
void Set_isVertex(unsigned long iPoint, bool isVertex) override
Set whether a node is on the boundary.
Definition CMeshBoundVariable.hpp:143
su2double GetBound_Disp(unsigned long iPoint, unsigned long iDim) const override
Get the value of the displacement imposed at the boundary.
Definition CMeshBoundVariable.hpp:66
bool Get_isVertex(unsigned long iPoint) const override
Get whether a node is on the boundary.
Definition CMeshBoundVariable.hpp:136
void Register_BoundDisp() override
Register the boundary displacements of the mesh.
Definition CMeshBoundVariable.cpp:50
void GetAdjoint_BoundDisp(unsigned long iPoint, su2double *adj_disp) const override
Recover the value of the adjoint of the boundary displacements.
Definition CMeshBoundVariable.hpp:126
Definition CMeshVariable.hpp:33
unsigned long nVar
Number of variables of the problem.
Definition CVariable.hpp:108
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
passivedouble GetDerivative(const su2double &data)
Get the derivative value of the datatype (needs to be implemented for each new type).
Definition datatype_structure.hpp:117