31#include "../../../Common/include/containers/CVertexMap.hpp"
82 for (
unsigned long iVar = 0; iVar <
nVar; iVar++)
Residual_Ext_Surf(iPoint,iVar) += val_surfForce[iVar];
117 for (
unsigned long iVar = 0; iVar <
nVar; iVar++)
FlowTraction(iPoint,iVar) = val_flowTraction[iVar];
126 for (
unsigned long iVar = 0; iVar <
nVar; iVar++)
FlowTraction(iPoint,iVar) += val_flowTraction[iVar];
176 inline void Set_isVertex(
unsigned long iPoint,
bool isVertex)
override {
Class for defining the variables of the FEM structural problem.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class that adds storage of boundary variables (tractions) to CFEAVariable.
Definition CFEABoundVariable.hpp:42
su2double ExtractFlowTractionSensitivity(unsigned long iPoint, unsigned long iDim) const override
Extract the flow traction derivatives.
Definition CFEABoundVariable.hpp:160
void RegisterFlowTraction(bool reset) override
Register the flow tractions as input variable.
Definition CFEABoundVariable.cpp:70
void Set_FlowTraction(unsigned long iPoint, const su2double *val_flowTraction) override
Set the flow traction at a node on the structural side.
Definition CFEABoundVariable.hpp:114
bool fsi_analysis
If flow tractions are available.
Definition CFEABoundVariable.hpp:53
CVertexMap< unsigned > VertexMap
Object that controls accesses to the variables of this class.
Definition CFEABoundVariable.hpp:51
void Set_FlowTraction_n() override
Set the value of the flow traction at the previous time step.
Definition CFEABoundVariable.cpp:64
void Set_isVertex(unsigned long iPoint, bool isVertex) override
Set whether a node is on the boundary.
Definition CFEABoundVariable.hpp:176
void AllocateBoundaryVariables(CConfig *config)
Allocate member variables for points marked as vertex (via "Set_isVertex").
Definition CFEABoundVariable.cpp:38
void Clear_SurfaceLoad_Res() override
Clear the surface load residual.
Definition CFEABoundVariable.cpp:68
su2double Get_FlowTraction_n(unsigned long iPoint, unsigned long iVar) const override
Retrieve the value of the flow traction from the previous time step.
Definition CFEABoundVariable.hpp:146
MatrixType Residual_Ext_Surf_n
Term of the residual due to external forces at time n.
Definition CFEABoundVariable.hpp:49
su2double Get_FlowTraction(unsigned long iPoint, unsigned long iVar) const override
Get the residual term due to the flow traction.
Definition CFEABoundVariable.hpp:132
void Add_SurfaceLoad_Res(unsigned long iPoint, const su2double *val_surfForce) override
Add surface load to the residual term.
Definition CFEABoundVariable.hpp:80
su2double Get_SurfaceLoad_Res(unsigned long iPoint, unsigned long iVar) const override
Get the residual term due to surface load.
Definition CFEABoundVariable.hpp:88
MatrixType FlowTraction
Traction from the fluid field.
Definition CFEABoundVariable.hpp:45
void Set_SurfaceLoad_Res_n() override
Store the surface load as the load for the previous time step.
Definition CFEABoundVariable.cpp:66
MatrixType Residual_Ext_Surf
Term of the residual due to external forces.
Definition CFEABoundVariable.hpp:48
void Add_FlowTraction(unsigned long iPoint, const su2double *val_flowTraction) override
Add a value to the flow traction at a node on the structural side.
Definition CFEABoundVariable.hpp:123
MatrixType FlowTraction_n
Traction from the fluid field at time n.
Definition CFEABoundVariable.hpp:46
bool Get_isVertex(unsigned long iPoint) const override
Get whether a node is on the boundary.
Definition CFEABoundVariable.hpp:169
su2double Get_SurfaceLoad_Res_n(unsigned long iPoint, unsigned long iVar) const override
Get the surface load from the previous time step.
Definition CFEABoundVariable.hpp:106
~CFEABoundVariable() override=default
Destructor of the class.
Class for defining the variables of the FEM structural problem.
Definition CFEAVariable.hpp:39
unsigned long nVar
Number of variables of the problem.
Definition CVariable.hpp:108
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