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

Mixing plane interface for turbomachinery. More...

#include <CMixingPlaneInterface.hpp>

Inheritance diagram for CMixingPlaneInterface:
[legend]

Public Member Functions

 CMixingPlaneInterface (unsigned short val_nVar, unsigned short val_nConst)
 
void SetSpanWiseLevels (const CConfig *donor_config, const CConfig *target_config) override
 Initialize quantities for spanwise sections for interpolation.
 
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) override
 Interpolate data and broadcast it into all processors, for nonmatching meshes.
 
void GetDonor_Variable (CSolver *donor_solution, CGeometry *donor_geometry, const CConfig *donor_config, unsigned long Marker_Donor, unsigned long val_Span, unsigned long Point_Donor) override
 Retrieve the variable that will be sent from donor mesh to target mesh.
 
void SetTarget_Variable (CSolver *target_solution, CGeometry *target_geometry, const CConfig *target_config, unsigned long Marker_Target, unsigned long val_Span, unsigned long Point_Target) override
 Set the variable that has been received from the target mesh into the target mesh.
 
void RecoverTarget_SpanEndwall (const su2activevector &bcastVariable, unsigned long iSpan) override
 Recovers the target variable at the endwall from the buffer of su2doubles that was broadcast for mixing plane interfaces.
 
void RecoverTarget_Span (const su2activevector &bcastVariable, unsigned long iSpan, su2double donorCoeff) override
 Recovers the target variable at the span from the buffer of su2doubles that was broadcast for mixing plane interfaces.
 
- 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 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.
 

Public Attributes

unsigned short nMixingVars
 
- 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
 

Additional Inherited Members

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

Mixing plane interface for turbomachinery.

Constructor & Destructor Documentation

◆ CMixingPlaneInterface()

CMixingPlaneInterface::CMixingPlaneInterface ( 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

◆ BroadcastData_MixingPlane()

void CMixingPlaneInterface::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 
)
overridevirtual

Interpolate data and broadcast it into all processors, for nonmatching meshes.

Parameters
[in]interpolator- Object defining the interpolation.
[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.

◆ GetDonor_Variable()

void CMixingPlaneInterface::GetDonor_Variable ( CSolver *  donor_solution,
CGeometry *  donor_geometry,
const CConfig *  donor_config,
unsigned long  Marker_Donor,
unsigned long  val_Span,
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.

Implements CInterface.

◆ RecoverTarget_Span()

void CMixingPlaneInterface::RecoverTarget_Span ( const su2activevector &  bcastVariable,
unsigned long  idx,
su2double  donorCoeff 
)
inlineoverridevirtual

Recovers the target variable at the span from the buffer of su2doubles that was broadcast for mixing plane interfaces.

Parameters
[in]bcastVariable- Broadcast variable.
[in]idx- Index of the target point.
[in]donorCoeff- value of the donor coefficient.

Reimplemented from CInterface.

◆ RecoverTarget_SpanEndwall()

void CMixingPlaneInterface::RecoverTarget_SpanEndwall ( const su2activevector &  bcastVariable,
unsigned long  idx 
)
inlineoverridevirtual

Recovers the target variable at the endwall from the buffer of su2doubles that was broadcast for mixing plane interfaces.

Parameters
[in]bcastVariable- Broadcast variable.
[in]idx- Index of the target point.

Reimplemented from CInterface.

◆ SetSpanWiseLevels()

void CMixingPlaneInterface::SetSpanWiseLevels ( const CConfig *  donor_config,
const CConfig *  target_config 
)
overridevirtual

Initialize quantities for spanwise sections for interpolation.

Parameters
[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.

◆ SetTarget_Variable()

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

Member Data Documentation

◆ nMixingVars

unsigned short CMixingPlaneInterface::nMixingVars

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