Documentation 6b54b78464
Loading...
Searching...
No Matches
CMixingPlane Class Referencefinal

Mixing plane interpolation. More...

#include <CMixingPlane.hpp>

Inheritance diagram for CMixingPlane:
[legend]

Public Member Functions

 CMixingPlane (CGeometry ****geometry_container, const CConfig *const *config, unsigned int iZone, unsigned int jZone)
 
void SetTransferCoeff (CGeometry ****geometry, const CConfig *const *config) override
 Set up transfer matrix defining relation between two meshes.
 
CSpanDonorInfo MapMatchingSpan (unsigned short iSpanTarget)
 
CSpanDonorInfo MapNearestSpan (const su2double iSpanTargetValue, const su2double *spanValuesDonor, unsigned long nSpanDonor)
 
CSpanDonorInfo MapLinearInterpolationSpan (const su2double iSpanTargetValue, const su2double *spanValuesDonor, unsigned long nSpanDonor, int rank)
 
void PrintClampingWarning (int rank, bool atHub)
 
void WriteInterpolationDetails (const string &filename, const CConfig *const *config) override
 Write interpolation details to file.
 
- Public Member Functions inherited from CInterpolator
 CInterpolator (CGeometry ****geometry_container, const CConfig *const *config, unsigned int iZone, unsigned int jZone)
 Constructor of the class.
 
 CInterpolator (void)=delete
 No default construction allowed to force zones and geometry to always be set.
 
virtual ~CInterpolator (void)=default
 Destructor of the class, nothing is deleted, derived classes need to manage the MPI buffers.
 
virtual void PrintStatistics (void) const
 Print information about the interpolation.
 

Additional Inherited Members

- Static Public Member Functions inherited from CInterpolator
static bool CheckInterfaceBoundary (int val_markDonor, int val_markTarget)
 Check whether an interface should be processed or not, i.e. if it is part of the zones.
 
static bool CheckZonesInterface (const CConfig *donor, const CConfig *target)
 Check whether two zones have a common interface.
 
- Public Attributes inherited from CInterpolator
vector< vector< CDonorInfo > > targetVertices
 
vector< vector< CSpanDonorInfo > > targetSpans
 
- Protected Member Functions inherited from CInterpolator
void ReconstructBoundary (unsigned long val_zone, int val_marker)
 Reconstruct the boundary connectivity from parallel partitioning and broadcasts it to all threads.
 
void Determine_ArraySize (int markDonor, int markTarget, unsigned long nVertexDonor, unsigned short nDim)
 Determine array sizes used to collect and send coordinate and global point information.
 
void Collect_VertexInfo (int markDonor, int markTarget, unsigned long nVertexDonor, unsigned short nDim)
 Collect and communicate vertex info: coord, global point.
 
unsigned long Collect_ElementInfo (int markDonor, unsigned short nDim, bool compress, vector< unsigned long > &allNumElem, vector< unsigned short > &numNodes, su2matrix< long > &idxNodes) const
 Collect all donor elements in an interface pair.
 
- Protected Attributes inherited from CInterpolator
const int rank
 MPI Rank.
 
const int size
 MPI Size.
 
const unsigned donorZone
 Index of donor zone.
 
const unsigned targetZone
 Index of target zone.
 
unsigned long MaxLocalVertex_Donor
 Maximum vertices per processor.
 
unsigned long Buffer_Send_nVertex_Donor [1]
 Buffer to send number of vertices on the local processor.
 
unsigned long * Buffer_Receive_nVertex_Donor
 Buffer to store the number of vertices per processor on the Donor domain.
 
su2vector< unsigned long > Buffer_Send_GlobalPoint
 Buffer to send global point indices.
 
su2vector< unsigned long > Buffer_Receive_GlobalPoint
 Buffer to receive global point indices.
 
su2activematrix Buffer_Send_Coord
 Buffer to send coordinate values.
 
su2activematrix Buffer_Receive_Coord
 Buffer to receive coordinate values.
 
su2vector< unsigned long > Buffer_Receive_nLinkedNodes
 Buffer to receive the number of surface-connected edges, for each vertex.
 
su2vector< unsigned long > Buffer_Receive_StartLinkedNodes
 Buffer to receive the index of the Receive_LinkedNodes buffer where corresponding list of linked nodes begins.
 
su2vector< unsigned long > Buffer_Receive_LinkedNodes
 Buffer to receive the list of surface-connected nodes, for each vertex.
 
su2vector< unsigned long > Buffer_Receive_Proc
 Buffer to receive the rank that owns the vertex.
 
unsigned long nGlobalVertex_Target
 Global number of vertex of the target boundary.
 
unsigned long nLocalVertex_Target
 Number of vertex of the target boundary owned by the thread.
 
unsigned long nGlobalVertex_Donor
 Global number of vertex of the donor boundary.
 
unsigned long nLocalVertex_Donor
 Number of vertex of the donor boundary owned by the thread.
 
unsigned long nGlobalVertex
 Dummy variable to temporarily store the global number of vertex of a boundary.
 
unsigned long nLocalLinkedNodes
 Dummy variable to temporarily store the number of vertex of a boundary.
 
CGeometry ****const Geometry
 
CGeometry *const donor_geometry
 Vector which stores n zones of geometry.
 
CGeometry *const target_geometry
 Donor geometry.
 

Detailed Description

Mixing plane interpolation.

Note
This contains several interpolation methods used in the mixing plane interpolation and enables the mixing state class structure for proper recording in AD mode

Constructor & Destructor Documentation

◆ CMixingPlane()

CMixingPlane::CMixingPlane ( CGeometry ****  geometry_container,
const CConfig *const *  config,
unsigned int  iZone,
unsigned int  jZone 
)

Member Function Documentation

◆ MapLinearInterpolationSpan()

CSpanDonorInfo CMixingPlane::MapLinearInterpolationSpan ( const su2double  iSpanTargetValue,
const su2double *  spanValuesDonor,
unsigned long  nSpanDonor,
int  rank 
)
inline

◆ MapMatchingSpan()

CSpanDonorInfo CMixingPlane::MapMatchingSpan ( unsigned short  iSpanTarget)
inline

◆ MapNearestSpan()

CSpanDonorInfo CMixingPlane::MapNearestSpan ( const su2double  iSpanTargetValue,
const su2double *  spanValuesDonor,
unsigned long  nSpanDonor 
)
inline

◆ PrintClampingWarning()

void CMixingPlane::PrintClampingWarning ( int  rank,
bool  atHub 
)
inline

◆ SetTransferCoeff()

void CMixingPlane::SetTransferCoeff ( CGeometry ****  geometry,
const CConfig *const *  config 
)
overridevirtual

Set up transfer matrix defining relation between two meshes.

Note
Main method that derived classes must implement.
Parameters
[in]config- Definition of the particular problem.

Implements CInterpolator.

◆ WriteInterpolationDetails()

void CMixingPlane::WriteInterpolationDetails ( const string &  filename,
const CConfig *const *  config 
)
overridevirtual

Write interpolation details to file.

Parameters
[in]filename- Name of output file.
[in]config- Configuration for all zones.

Reimplemented from CInterpolator.


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