Documentation a537f1bdf2
Loading...
Searching...
No Matches
C1DInterpolation.hpp File Reference

Classes for 1D interpolation. More...

#include <cassert>
#include <vector>
#include <algorithm>
#include "../option_structure.hpp"

Go to the source code of this file.

Classes

class  C1DInterpolation
 Base class for 1D interpolation. More...
 
class  CAkimaInterpolation
 Akima 1D interpolation. More...
 
class  CCubicSpline
 Cubic spline interpolation. More...
 
class  CLinearInterpolation
 Linear interpolation. More...
 

Functions

std::vector< su2double > CorrectedInletValues (const std::vector< su2double > &Inlet_Interpolated, su2double Theta, unsigned short nDim, const su2double *Coord, unsigned short nVar_Turb, INLET_INTERP_TYPE Interpolation_Type)
 Corrects for interpolation type.
 
void PrintInletInterpolatedData (const std::vector< su2double > &Inlet_Data_Interpolated, const std::string &Marker, unsigned long nVertex, unsigned short nDim, unsigned short nColumns)
 Prints the Inlet Interpolated Data.
 

Detailed Description

Classes for 1D interpolation.

Author
Aman Baig, P. Gomes
Version
8.5.0 "Harrier"

SU2 Project Website: https://su2code.github.io

The SU2 Project is maintained by the SU2 Foundation (http://su2foundation.org)

Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)

SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.

Function Documentation

◆ CorrectedInletValues()

std::vector< su2double > CorrectedInletValues ( const std::vector< su2double > &  Inlet_Interpolated,
su2double  Theta,
unsigned short  nDim,
const su2double *  Coord,
unsigned short  nVar_Turb,
INLET_INTERP_TYPE  Interpolation_Type 
)

Corrects for interpolation type.

Parameters
[in]Inlet_Interpolated- the interpolated data after spline evaluation.
[in]Theta- the angle of the vertex (in xy plane).
[in]nDim- the dimensions of the case.
[in]Coord- the coordinates of the vertex.
[in]nVar_Turb- the number of turbulence variables as defined by turbulence model
[in]ENUM_INLET_INTERPOLATIONTYPE- enum of the interpolation type to be done
Returns
the corrected Inlet Interpolated Data.

◆ PrintInletInterpolatedData()

void PrintInletInterpolatedData ( const std::vector< su2double > &  Inlet_Data_Interpolated,
const std::string &  Marker,
unsigned long  nVertex,
unsigned short  nDim,
unsigned short  nColumns 
)

Prints the Inlet Interpolated Data.

Parameters
[in]Inlet_Interpolated_Interpolated- the final std::vector for the interpolated data
[in]Marker- name of the inlet marker
[in]nVertex- total number of vertexes.
[in]nDim- the dimensions of the problem.
[in]nColumns- the number of columns in the final interpolated data