MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
sbpcartesianinterpolation.h File Reference

Go to the source code of this file.

Namespaces

namespace  maia
 Namespace for auxiliary functions/classes.
 
namespace  maia::dg
 
namespace  maia::dg::interpolation
 Holds helper functions for the interpolation.
 

Functions

void maia::dg::interpolation::calcSBPNodes (const MInt noNodes, MFloat *nodes)
 Generates an equidistant node distribution. More...
 
void maia::dg::interpolation::calcSBPWeights (const MInt noNodes, MFloatVector sbpP, MFloat *wInt)
 Calulates the diagonal weight matrix (H) entries. More...
 
MBool maia::dg::interpolation::checkSBPProp (const MFloatMatrix &Q)
 Helper function for checking the SBP property of a given operator. More...
 
void maia::dg::interpolation::readCSV (std::string path, std::vector< std::vector< MFloat > > &data)
 Reads .csv-file on rank 0 and broadcasts it to all ranks. More...
 
void maia::dg::interpolation::readDDRP (MFloat *nodesVector, MFloat *wIntVector, MFloat *dhatMatrix)
 Reads DDRP operator and nodal distribution from file. More...
 
void maia::dg::interpolation::calcDhatSBP (const MInt noNodes, MFloatVector sbpA, MFloatVector sbpQ, const MFloat *wInt, MFloat *dhatMatrix)
 Calculates SBP operator from coefficients. More...
 
void maia::dg::interpolation::readSbpOperator (MInt noNodes1D, MString opName, MFloatVector &sbpA, MFloatVector &sbpP, MFloatVector &sbpQ)
 Reads all coefficient files to contruct SBP operator. More...
 
MBool maia::dg::interpolation::getSBPOperator (const MInt noNodes1D, const MString opName, MFloatVector &sbpA, MFloatVector &sbpP, MFloatVector &sbpQ)
 Gets SBP Coefficients from corresponding header if existent. More...
 
void maia::dg::interpolation::findNodeIndicesAtPoint (const MFloat point, const MFloat *nodes, const MInt noNodes, MInt &idx1, MInt &idx2)
 Finds the neighboring indices to point in one dimension. More...
 
void maia::dg::interpolation::calcLinearInterpolationBase (const MFloat x, const MInt noNodes, const MFloat *nodes, MFloat *const polynomials)
 Calculates linear interpolation base for point (1D). More...
 
template<class T , class U , class V >
void maia::dg::interpolation::calcLinearInterpolationMatrix (const MInt noNodesIn, const T nodesIn, const MInt noNodesOut, const U nodesOut, V vandermonde)
 Calculates the linear interpolation matrix (Vandermonde) to interpolate from one set of nodes to another. More...
 
void maia::dg::interpolation::calcBilinearInterpolation (MFloat *point, const MFloat *nodes, const MInt noNodes, const MInt noVars, const MFloat *u, MFloat *const out)
 Calculates bilinear interpolation at given point (2D) More...
 
void maia::dg::interpolation::calcTrilinearInterpolation (MFloat *point, const MFloat *nodes, const MInt noNodes, const MInt noVars, const MFloat *u, MFloat *const out)
 Calculates trilinear interpolation at given point (3D) More...