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

Fluid-fluid interface. More...

#include <CSlidingInterface.hpp>

Inheritance diagram for CSlidingInterface:
[legend]

Public Member Functions

 CSlidingInterface (unsigned short val_nVar, unsigned short val_nConst)
 
void GetDonor_Variable (CSolver *donor_solution, CGeometry *donor_geometry, const CConfig *donor_config, unsigned long Marker_Donor, unsigned long Vertex_Donor, unsigned long Point_Donor) override
 Retrieve the variable that will be sent from donor mesh to target mesh.
 
void GetDonor_Velocity_RotatingFrame (const CConfig *donor_config, CGeometry *donor_geometry, const CConfig *target_config, CGeometry *target_geometry) override
 Rotate the velocity if rotating frame is applied.
 
void InitializeTarget_Variable (CSolver *target_solution, unsigned long Marker_Target, unsigned long Vertex_Target, unsigned short nDonorPoints) override
 A virtual member, initializes the target variable for sliding mesh.
 
void RecoverTarget_Variable (const su2double *bcastVariable, su2double donorCoeff) override
 Recovers the target variable from the buffer of su2doubles that was broadcasted.
 
void SetTarget_Variable (CSolver *target_solution, CGeometry *target_geometry, const CConfig *target_config, unsigned long Marker_Target, unsigned long Vertex_Target, unsigned long Point_Target) 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 CInterface
virtual void GetPhysical_Constants (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, const CConfig *donor_config, const CConfig *target_config)
 A virtual member.
 
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 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-fluid interface.

Constructor & Destructor Documentation

◆ CSlidingInterface()

CSlidingInterface::CSlidingInterface ( unsigned short  val_nVar,
unsigned short  val_nConst 
)

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.

Member Function Documentation

◆ GetDonor_Variable()

void CSlidingInterface::GetDonor_Variable ( CSolver *  donor_solution,
CGeometry *  donor_geometry,
const CConfig *  donor_config,
unsigned long  Marker_Donor,
unsigned long  Vertex_Donor,
unsigned long  Point_Donor 
)
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.
[in]Point_Donor- Index of the donor point.

TODO: Replace with approach compatible with any number of variables (e.g. encapsulate in a "solver info" object).

Implements CInterface.

◆ GetDonor_Velocity_RotatingFrame()

void CSlidingInterface::GetDonor_Velocity_RotatingFrame ( const CConfig *  donor_config,
CGeometry *  donor_geometry,
const CConfig *  target_config,
CGeometry *  target_geometry 
)
overridevirtual

Rotate the velocity if rotating frame is applied.

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

Reimplemented from CInterface.

◆ InitializeTarget_Variable()

void CSlidingInterface::InitializeTarget_Variable ( CSolver *  target_solution,
unsigned long  Marker_Target,
unsigned long  Vertex_Target,
unsigned short  nDonorPoints 
)
overridevirtual

A virtual member, initializes the target variable for sliding mesh.

Parameters
[in]target_solution- Solution from the target mesh.
[in]Marker_Target- Index of the target marker.
[in]Vertex_Target- Index of the target vertex.
[in]nDonorPoints- Number of donor points.

Reimplemented from CInterface.

◆ RecoverTarget_Variable()

void CSlidingInterface::RecoverTarget_Variable ( const su2double *  bcastVariable,
su2double  donorCoeff 
)
inlineoverridevirtual

Recovers the target variable from the buffer of su2doubles that was broadcasted.

Parameters
[in]bcastVariable- Broadcast variable.
[in]donorCoeff- value of the donor coefficient.

Reimplemented from CInterface.

◆ SetTarget_Variable()

void CSlidingInterface::SetTarget_Variable ( CSolver *  target_solution,
CGeometry *  target_geometry,
const CConfig *  target_config,
unsigned long  Marker_Target,
unsigned long  Vertex_Target,
unsigned long  Point_Target 
)
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.


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