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

Fluid-structure interface (forces or tractions). More...

#include <CFlowTractionInterface.hpp>

Inheritance diagram for CFlowTractionInterface:
[legend]

Public Member Functions

 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.
 

Protected Member Functions

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

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
 

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
 
- 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).

Constructor & Destructor Documentation

◆ CFlowTractionInterface()

CFlowTractionInterface::CFlowTractionInterface ( unsigned short  val_nVar,
unsigned short  val_nConst,
const CConfig *  config,
bool  integrate_tractions_ 
)

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]val_nConst- Number of constants.
[in]config- Definition of the particular problem.
[in]integrate_tractions_- Whether to integrate the fluid tractions (to transfer forces when using conservative interpolation).

Member Function Documentation

◆ ComputeVertexAreas()

void CFlowTractionInterface::ComputeVertexAreas ( const CConfig *  config,
CGeometry *  geometry,
CSolver *  solution 
)
protected

Computes vertex areas (FEA side) for when tractions need to be integrated.

Parameters
[in]config- Definition of the structural (target) problem.
[in]geometry- FEA geometry.
[in]solution- FEA solver.

◆ GetDonor_Variable()

void CFlowTractionInterface::GetDonor_Variable ( CSolver *  flow_solution,
CGeometry *  flow_geometry,
const CConfig *  flow_config,
unsigned long  Marker_Flow,
unsigned long  Vertex_Flow,
unsigned long  Point_Flow 
)
overridevirtual

Retrieve the variable that will be sent from donor mesh to target mesh.

Parameters
[in]donor_solution- Solution from the donor mesh.
[in]donor_geometry- Geometry of the donor mesh.
[in]donor_config- Definition of the problem at the donor mesh.
[in]Marker_Donor- Index of the donor marker.
[in]Vertex_Donor- Index of the donor vertex.

Implements CInterface.

◆ GetPhysical_Constants()

void CFlowTractionInterface::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.

◆ Preprocess()

void CFlowTractionInterface::Preprocess ( const CConfig *  flow_config,
const CConfig *  struct_config,
CGeometry *  geometry,
CSolver *  solution 
)
protected

Sets the dimensional factor for pressure and the consistent_interpolation flag.

Parameters
[in]flow_config- Definition of the fluid (donor) problem.
[in]struct_config- Definition of the structural (target) problem.
[in]geometry- FEA geometry.
[in]solution- FEA solver.

◆ SetTarget_Variable()

void CFlowTractionInterface::SetTarget_Variable ( CSolver *  fea_solution,
CGeometry *  fea_geometry,
const CConfig *  fea_config,
unsigned long  Marker_Struct,
unsigned long  Vertex_Struct,
unsigned long  Point_Struct 
)
overridevirtual

Set the variable that has been received from the target mesh into the target mesh.

Parameters
[in]target_solution- Solution from the target mesh.
[in]target_geometry- Geometry of the target mesh.
[in]target_config- Definition of the problem at the target mesh.
[in]Marker_Target- Index of the target marker.
[in]Vertex_Target- Index of the target vertex.
[in]Point_Target- Index of the target point.

Implements CInterface.

Member Data Documentation

◆ conservative

const bool CFlowTractionInterface::conservative
protected

◆ vertexArea

std::unordered_map<unsigned long, su2double> CFlowTractionInterface::vertexArea
protected

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