Documentation 6b54b78464
Loading...
Searching...
No Matches
CDiscAdjFlowTractionInterface Class Reference

Fluid-structure interface (forces or tractions) for discrete adjoint problems. More...

#include <CDiscAdjFlowTractionInterface.hpp>

Inheritance diagram for CDiscAdjFlowTractionInterface:
[legend]

Public Member Functions

 CDiscAdjFlowTractionInterface (unsigned short val_nVar, unsigned short val_nConst, const CConfig *config, bool conservative_)
 
void GetPhysical_Constants (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, const CConfig *donor_config, const CConfig *target_config) override
 Retrieve some constants needed for the calculations.
 
- Public Member Functions inherited from CFlowTractionInterface
 CFlowTractionInterface (unsigned short val_nVar, unsigned short val_nConst, const CConfig *config, bool integrate_tractions_)
 
void GetPhysical_Constants (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, const CConfig *donor_config, const CConfig *target_config) override
 Retrieve some constants needed for the calculations.
 
void GetDonor_Variable (CSolver *flow_solution, CGeometry *flow_geometry, const CConfig *flow_config, unsigned long Marker_Flow, unsigned long Vertex_Flow, unsigned long Point_Flow) override
 Retrieve the variable that will be sent from donor mesh to target mesh.
 
void SetTarget_Variable (CSolver *fea_solution, CGeometry *fea_geometry, const CConfig *fea_config, unsigned long Marker_Struct, unsigned long Vertex_Struct, unsigned long Point_Struct) override
 Set the variable that has been received from the target mesh into the target mesh.
 
- Public Member Functions inherited from CInterface
 CInterface ()
 Constructor of the class.
 
 CInterface (unsigned short val_nVar, unsigned short val_nConst)
 
virtual ~CInterface ()
 Destructor of the class.
 
void BroadcastData (const CInterpolator &interpolator, CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, const CConfig *donor_config, const CConfig *target_config)
 Interpolate data and broadcast it into all processors, for nonmatching meshes.
 
virtual void SetSpanWiseLevels (const CConfig *donor_config, const CConfig *target_config)
 A virtual member.
 
virtual void BroadcastData_MixingPlane (const CInterpolator &interpolator, CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, const CConfig *donor_config, const CConfig *target_config)
 Interpolate data and broadcast it into all processors, for nonmatching meshes.
 
virtual void SetContactResistance (su2double val_contact_resistance)
 Set the contact resistance value for the solid-to-solid heat transfer interface.
 
void SetInterfaceType (unsigned short interface_type)
 Set the type of an interface.
 
unsigned short GetInterfaceType (void) const
 Get the type of an interface.
 

Additional Inherited Members

- Public Attributes inherited from CInterface
ENUM_TRANSFER NextInterfaceType = ENUM_TRANSFER::NO_TRANSFER
 These can be used to chain interfaces between the same zones but for other variables, without having to mix physics in the interface classes. Currently this is used for FSI+CHT.
 
CInterface * NextInterface = nullptr
 
- Protected Member Functions inherited from CFlowTractionInterface
void Preprocess (const CConfig *flow_config, const CConfig *struct_config, CGeometry *geometry, CSolver *solution)
 Sets the dimensional factor for pressure and the consistent_interpolation flag.
 
void ComputeVertexAreas (const CConfig *config, CGeometry *geometry, CSolver *solution)
 Computes vertex areas (FEA side) for when tractions need to be integrated.
 
- Protected Member Functions inherited from CInterface
virtual void GetDonor_Velocity_RotatingFrame (const CConfig *donor_config, CGeometry *donor_geometry, const CConfig *target_config, CGeometry *target_geometry)
 A virtual member.
 
virtual void InitializeTarget_Variable (CSolver *target_solution, unsigned long Marker_Target, unsigned long Vertex_Target, unsigned short nDonorPoints)
 Initializes the target variable.
 
virtual void RecoverTarget_Variable (const su2double *bcastVariable, su2double donorCoeff)
 Recovers the target variable from the buffer of su2doubles that was broadcast.
 
virtual void RecoverTarget_SpanEndwall (const su2activevector &bcastVariable, unsigned long idx)
 Recovers the target variable at the endwall from the buffer of su2doubles that was broadcast for mixing plane interfaces.
 
virtual void RecoverTarget_Span (const su2activevector &bcastVariable, unsigned long idx, su2double donorCoeff)
 Recovers the target variable at the span from the buffer of su2doubles that was broadcast for mixing plane interfaces.
 
virtual void SetAverageTurboGeoValues (CGeometry *donor_geometry, CGeometry *target_geometry, unsigned short donorZone)
 A virtual member.
 
- Protected Attributes inherited from CFlowTractionInterface
const bool conservative
 
std::unordered_map< unsigned long, su2double > vertexArea
 
- Protected Attributes inherited from CInterface
const int rank
 MPI Rank.
 
const int size
 MPI Size.
 
su2double * Physical_Constants = nullptr
 
su2double * Donor_Variable = nullptr
 
su2double * Target_Variable = nullptr
 
bool valAggregated = false
 
unsigned short InterfaceType
 The type of interface.
 
su2double * SpanValueCoeffTarget = nullptr
 
unsigned short * SpanLevelDonor = nullptr
 
unsigned short nSpanMaxAllZones = 0
 
unsigned short nVar = 0
 
- Static Protected Attributes inherited from CInterface
static constexpr size_t MAXNDIM = 3
 Max number of space dimensions, used in some static arrays.
 

Detailed Description

Fluid-structure interface (forces or tractions) for discrete adjoint problems.

Note
This is a small specialization of CFlowTractionInterface that ommits load ramping.

Constructor & Destructor Documentation

◆ CDiscAdjFlowTractionInterface()

CDiscAdjFlowTractionInterface::CDiscAdjFlowTractionInterface ( unsigned short  val_nVar,
unsigned short  val_nConst,
const CConfig *  config,
bool  conservative_ 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]val_nVar- Number of variables that need to be transferred.
[in]config- Definition of the particular problem.

Member Function Documentation

◆ GetPhysical_Constants()

void CDiscAdjFlowTractionInterface::GetPhysical_Constants ( CSolver *  donor_solution,
CSolver *  target_solution,
CGeometry *  donor_geometry,
CGeometry *  target_geometry,
const CConfig *  donor_config,
const CConfig *  target_config 
)
overridevirtual

Retrieve some constants needed for the calculations.

Parameters
[in]donor_solution- Solution from the donor mesh.
[in]target_solution- Solution from the target mesh.
[in]donor_geometry- Geometry of the donor mesh.
[in]target_geometry- Geometry of the target mesh.
[in]donor_config- Definition of the problem at the donor mesh.
[in]target_config- Definition of the problem at the target mesh.

Reimplemented from CInterface.


The documentation for this class was generated from the following files: