SU2
Public Member Functions | Protected Attributes | List of all members
CTransfer Class Reference

Main class for defining the physical transfer of information. More...

#include <transfer_structure.hpp>

Inheritance diagram for CTransfer:
CTransfer_ConservativeVars CTransfer_FlowTraction CTransfer_SlidingInterface CTransfer_StructuralDisplacements CTransfer_StructuralDisplacements_Original

Public Member Functions

 CTransfer (void)
 Constructor of the class.
 
 CTransfer (unsigned short val_nVar, unsigned short val_nConst, CConfig *config)
 
virtual ~CTransfer (void)
 Destructor of the class.
 
void Scatter_InterfaceData (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, CConfig *donor_config, CConfig *target_config)
 Interpolate data and scatter it into different processors, for matching meshes. More...
 
void Broadcast_InterfaceData_Matching (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, CConfig *donor_config, CConfig *target_config)
 Interpolate data and broadcast it into all processors, for matching meshes. More...
 
void Broadcast_InterfaceData_Interpolate (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, CConfig *donor_config, CConfig *target_config)
 Interpolate data and broadcast it into all processors, for nonmatching meshes. More...
 
void Allgather_InterfaceData (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, CConfig *donor_config, CConfig *target_config)
 Interpolate data, operate over it and broadcast it into all processors, for nonmatching meshes. More...
 
virtual void GetPhysical_Constants (CSolver *donor_solution, CSolver *target_solution, CGeometry *donor_geometry, CGeometry *target_geometry, CConfig *donor_config, CConfig *target_config)
 A virtual member.
 
virtual void GetDonor_Variable (CSolver *donor_solution, CGeometry *donor_geometry, CConfig *donor_config, unsigned long Marker_Donor, unsigned long Vertex_Donor, unsigned long Point_Donor)
 A virtual member. More...
 
virtual void SetTarget_Variable (CSolver *target_solution, CGeometry *target_geometry, CConfig *target_config, unsigned long Marker_Target, unsigned long Vertex_Target, unsigned long Point_Target)
 A virtual member. More...
 

Protected Attributes

su2double * Physical_Constants
 
su2double * Donor_Variable
 
su2double * Target_Variable
 
unsigned short nVar
 

Detailed Description

Main class for defining the physical transfer of information.

Author
R. Sanchez
Version
4.0.1 "Cardinal"

Constructor & Destructor Documentation

§ CTransfer()

CTransfer::CTransfer ( unsigned short  val_nVar,
unsigned short  val_nConst,
CConfig config 
)

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 physical constants that need to be taken into account.
[in]config- Definition of the particular problem.

Member Function Documentation

§ Allgather_InterfaceData()

void CTransfer::Allgather_InterfaceData ( CSolver donor_solution,
CSolver target_solution,
CGeometry donor_geometry,
CGeometry target_geometry,
CConfig donor_config,
CConfig target_config 
)

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

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.

§ Broadcast_InterfaceData_Interpolate()

void CTransfer::Broadcast_InterfaceData_Interpolate ( CSolver donor_solution,
CSolver target_solution,
CGeometry donor_geometry,
CGeometry target_geometry,
CConfig donor_config,
CConfig target_config 
)

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

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.

§ Broadcast_InterfaceData_Matching()

void CTransfer::Broadcast_InterfaceData_Matching ( CSolver donor_solution,
CSolver target_solution,
CGeometry donor_geometry,
CGeometry target_geometry,
CConfig donor_config,
CConfig target_config 
)

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

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.

§ GetDonor_Variable()

void CTransfer::GetDonor_Variable ( CSolver donor_solution,
CGeometry donor_geometry,
CConfig donor_config,
unsigned long  Marker_Donor,
unsigned long  Vertex_Donor,
unsigned long  Point_Donor 
)
inlinevirtual

A virtual member.

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.

Reimplemented in CTransfer_SlidingInterface, CTransfer_ConservativeVars, CTransfer_StructuralDisplacements_Original, CTransfer_StructuralDisplacements, and CTransfer_FlowTraction.

§ Scatter_InterfaceData()

void CTransfer::Scatter_InterfaceData ( CSolver donor_solution,
CSolver target_solution,
CGeometry donor_geometry,
CGeometry target_geometry,
CConfig donor_config,
CConfig target_config 
)

Interpolate data and scatter it into different processors, for matching meshes.

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.

§ SetTarget_Variable()

void CTransfer::SetTarget_Variable ( CSolver target_solution,
CGeometry target_geometry,
CConfig target_config,
unsigned long  Marker_Target,
unsigned long  Vertex_Target,
unsigned long  Point_Target 
)
inlinevirtual

A virtual member.

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.

Reimplemented in CTransfer_SlidingInterface, CTransfer_ConservativeVars, CTransfer_StructuralDisplacements_Original, CTransfer_StructuralDisplacements, and CTransfer_FlowTraction.


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