35#ifndef CPU_INTERPOLATER_H
36#define CPU_INTERPOLATER_H
41#include "BoundaryConditions.h"
83 int maxX2,
int maxX3,
int x1,
int x2,
int x3,
real &xoff,
real &yoff,
real &zoff);
virtual void interpolateCoarseToFine(D3Q27ICell &icellC, D3Q27ICell &icellF, real xoff, real yoff, real zoff)=0
virtual void interpolateFineToCoarse(D3Q27ICell &icellF, real *icellC)=0
virtual void interpolateFineToCoarse(D3Q27ICell &icellF, real *icellC, real xoff, real yoff, real zoff)=0
virtual void setOmegas(real omegaC, real omegaF)=0
virtual void calcInterpolatedShearStress(real x, real y, real z, real &tauxx, real &tauyy, real &tauzz, real &tauxy, real &tauxz, real &tauyz)
virtual void setOffsets(real xoff, real yoff, real zoff)
virtual void calcInterpolatedCoefficiets(const D3Q27ICell &icell, real omega, real eps_new)
virtual InterpolationProcessorPtr clone()=0
virtual void interpolateCoarseToFine(D3Q27ICell &icellC, D3Q27ICell &icellF)=0
virtual void calcInterpolatedNodeFC(real *f, real omega)
virtual ~Interpolator()=default
virtual void calcInterpolatedVelocity(real x, real y, real z, real &vx1, real &vx2, real &vx3)
std::shared_ptr< T > SPtr
static int iCellHowManySolids(const SPtr< BCArray3D > bcArray, int x1, int x2, int x3)
static void writeICell(SPtr< DistributionArray3D > f, const D3Q27ICell &icell, int x1, int x2, int x3)
static void writeICellInv(SPtr< DistributionArray3D > f, const D3Q27ICell &icell, int x1, int x2, int x3)
std::shared_ptr< Interpolator > InterpolationProcessorPtr
static void writeINode(SPtr< DistributionArray3D > f, const real *const inode, int x1, int x2, int x3)
static void writeINodeInv(SPtr< DistributionArray3D > f, const real *const inode, int x1, int x2, int x3)
static void readICell(SPtr< DistributionArray3D > f, D3Q27ICell &icell, int x1, int x2, int x3)
bool findNeighborICell(const SPtr< BCArray3D > bcArray, SPtr< DistributionArray3D > f, D3Q27ICell &icell, int maxX1, int maxX2, int maxX3, int x1, int x2, int x3, real &xoff, real &yoff, real &zoff)
static bool iCellHasSolid(const SPtr< BCArray3D > bcArray, int x1, int x2, int x3)