ExaDG
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dealspectrum::Interpolator Class Reference

#include <interpolation.h>

Public Member Functions

 Interpolator (MPI_Comm const &comm, Setup &s)
 
template<typename MAPPING >
void init (MAPPING &MAP)
 
void init (int start, int end)
 
std::vector< dealii::Point< 1 > > get_equidistant_inner (unsigned int const n_points)
 
void fill_shape_values (dealii::AlignedVector< double > &shape_values)
 
void interpolate ()
 
void interpolate (double const *&src)
 
void interpolate_simple ()
 
void interpolate_simple (double *&src)
 
void deserialize (char const *filename)
 
void deserialize (char const *filename, double *&src)
 
void serialize (char const *filename)
 
void serialize (char const *filename, double const *&src)
 
template<typename VEC >
void io (int type, char const *filename, VEC &src)
 

Public Attributes

MPI_Comm const comm
 
Setups
 
bool initialized
 
double * src = NULL
 
double * dst = NULL
 
dealii::AlignedVector< double > shape_values
 
int cells
 
int DIM
 
int start
 
int end
 
unsigned int points_source
 
int dofs_source
 
unsigned int points_target
 
int dofs_target
 

Detailed Description

Class which loops over all cells and performs interpolation of every velocity component (without using Matrix-Free).

Constructor & Destructor Documentation

◆ Interpolator()

dealspectrum::Interpolator::Interpolator ( MPI_Comm const & comm,
Setup & s )
inline

Constructor

Parameters
sDEAL.SPECTRUM setup

Member Function Documentation

◆ deserialize() [1/2]

void dealspectrum::Interpolator::deserialize ( char const * filename)
inline

Read local source vector from file.

Parameters
filenamefilename

◆ deserialize() [2/2]

void dealspectrum::Interpolator::deserialize ( char const * filename,
double *& src )
inline

Read explicitly given source vector from file.

Parameters
filenamefilename
srcsource vector

◆ fill_shape_values()

void dealspectrum::Interpolator::fill_shape_values ( dealii::AlignedVector< double > & shape_values)
inline

Fill shape values

@params shape_values data structure to be filled

◆ get_equidistant_inner()

std::vector< dealii::Point< 1 > > dealspectrum::Interpolator::get_equidistant_inner ( unsigned int const n_points)
inline

Create n equidistant points on range [0,1] such that outer points positioned inside of range.

@params n_points nr of points

◆ interpolate() [1/2]

void dealspectrum::Interpolator::interpolate ( )
inline

Perform interpolation and permute dofs such that u, v, and w for each point are grouped together. Use local source vector.

◆ interpolate() [2/2]

void dealspectrum::Interpolator::interpolate ( double const *& src)
inline

Perform interpolation and permute dofs such that u, v, and w for each point are grouped together. Source vector is explicitly given by user.

@params src source vector (vector to be interpolated)

◆ interpolate_simple() [1/2]

void dealspectrum::Interpolator::interpolate_simple ( )
inline

Only for testing: Do not perform interpolation and only permute dofs such that u, v, and w for each point are grouped together. Use local source vector.

◆ interpolate_simple() [2/2]

void dealspectrum::Interpolator::interpolate_simple ( double *& src)
inline

Only for testing: Do not perform interpolation and only permute dofs such that u, v, and w for each point are grouped together. Source vector is explicitly given by user.

@params src source vector (vector to be interpolated)

◆ io()

template<typename VEC >
void dealspectrum::Interpolator::io ( int type,
char const * filename,
VEC & src )
inline

Read/write explicitly given source vector to file.

Parameters
type0: read; 1: write
filenamefilename
srcsource vector

◆ serialize() [1/2]

void dealspectrum::Interpolator::serialize ( char const * filename)
inline

Write local source vector to file.

Parameters
filenamefilename

◆ serialize() [2/2]

void dealspectrum::Interpolator::serialize ( char const * filename,
double const *& src )
inline

Write explicitly given source vector to file.

Parameters
filenamefilename
srcsource vector

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