Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
Classes | Namespaces | Typedefs | Functions
LinearInterpolation.h File Reference
#include <iostream>
#include <vector>
#include <stdexcept>
#include <utility>

Go to the source code of this file.

Classes

struct  sierra::nalu::utils::OutOfBounds
 
struct  sierra::nalu::utils::InterpTraits< T >
 

Namespaces

 sierra
 
 sierra::nalu
 
 sierra::nalu::utils
 

Typedefs

template<typename T >
using sierra::nalu::utils::Array1D = std::vector< T >
 

Functions

template<typename T >
InterpTraits< T >::index_type sierra::nalu::utils::check_bounds (const Array1D< T > &xinp, const T &x)
 Determine whether the given value is within the limits of the interpolation table. More...
 
template<typename T >
InterpTraits< T >::index_type sierra::nalu::utils::find_index (const Array1D< T > &xinp, const T &x)
 Return an index object corresponding to the x-value based on interpolation table. More...
 
template<typename T >
void sierra::nalu::utils::linear_interp (const Array1D< T > &xinp, const Array1D< T > &yinp, const T &xout, T &yout, OutOfBounds::OobAction oob=OutOfBounds::CLAMP)
 Perform a 1-D linear interpolation. More...