46 namespace LocalRegions
65 StdExpansion (Ba.GetNumModes()*Bb.GetNumModes()*Bc.GetNumModes(),3,Ba,Bb,Bc),
66 StdExpansion3D(Ba.GetNumModes()*Bb.GetNumModes()*Bc.GetNumModes(),Ba,Bb,Bc),
67 StdRegions::StdHexExp(Ba,Bb,Bc),
71 boost::bind(&
HexExp::CreateMatrix, this, _1),
72 std::string(
"HexExpMatrix")),
73 m_staticCondMatrixManager(
74 boost::bind(&
HexExp::CreateStaticCondMatrix, this, _1),
75 std::string(
"HexExpStaticCondMatrix"))
86 StdRegions::StdHexExp(T),
89 m_matrixManager(T.m_matrixManager),
90 m_staticCondMatrixManager(T.m_staticCondMatrixManager)
119 int nquad0 =
m_base[0]->GetNumPoints();
120 int nquad1 =
m_base[1]->GetNumPoints();
121 int nquad2 =
m_base[2]->GetNumPoints();
140 returnVal = StdHexExp::v_Integral(tmp);
165 int nquad0 =
m_base[0]->GetNumPoints();
166 int nquad1 =
m_base[1]->GetNumPoints();
167 int nquad2 =
m_base[2]->GetNumPoints();
168 int ntot = nquad0 * nquad1 * nquad2;
176 StdHexExp::v_PhysDeriv(inarray, Diff0, Diff1, Diff2);
180 if(out_d0.num_elements())
182 Vmath::Vmul (ntot,&df[0][0],1,&Diff0[0],1, &out_d0[0], 1);
183 Vmath::Vvtvp(ntot,&df[1][0],1,&Diff1[0],1, &out_d0[0], 1,
185 Vmath::Vvtvp(ntot,&df[2][0],1,&Diff2[0],1, &out_d0[0], 1,
189 if(out_d1.num_elements())
191 Vmath::Vmul (ntot,&df[3][0],1,&Diff0[0],1, &out_d1[0], 1);
192 Vmath::Vvtvp(ntot,&df[4][0],1,&Diff1[0],1, &out_d1[0], 1,
194 Vmath::Vvtvp(ntot,&df[5][0],1,&Diff2[0],1, &out_d1[0], 1,
198 if(out_d2.num_elements())
200 Vmath::Vmul (ntot,&df[6][0],1,&Diff0[0],1, &out_d2[0], 1);
201 Vmath::Vvtvp(ntot,&df[7][0],1,&Diff1[0],1, &out_d2[0], 1,
203 Vmath::Vvtvp(ntot,&df[8][0],1,&Diff2[0],1, &out_d2[0], 1,
209 if(out_d0.num_elements())
211 Vmath::Smul (ntot,df[0][0],&Diff0[0],1, &out_d0[0], 1);
212 Blas::Daxpy (ntot,df[1][0],&Diff1[0],1, &out_d0[0], 1);
213 Blas::Daxpy (ntot,df[2][0],&Diff2[0],1, &out_d0[0], 1);
216 if(out_d1.num_elements())
218 Vmath::Smul (ntot,df[3][0],&Diff0[0],1, &out_d1[0], 1);
219 Blas::Daxpy (ntot,df[4][0],&Diff1[0],1, &out_d1[0], 1);
220 Blas::Daxpy (ntot,df[5][0],&Diff2[0],1, &out_d1[0], 1);
223 if(out_d2.num_elements())
225 Vmath::Smul (ntot,df[6][0],&Diff0[0],1, &out_d2[0], 1);
226 Blas::Daxpy (ntot,df[7][0],&Diff1[0],1, &out_d2[0], 1);
227 Blas::Daxpy (ntot,df[8][0],&Diff2[0],1, &out_d2[0], 1);
269 ASSERTL1(
false,
"input dir is out of range");
292 if(
m_base[0]->Collocation() &&
m_base[1]->Collocation()
293 &&
m_base[2]->Collocation())
368 bool multiplybyweights)
370 int nquad0 =
m_base[0]->GetNumPoints();
371 int nquad1 =
m_base[1]->GetNumPoints();
372 int nquad2 =
m_base[2]->GetNumPoints();
373 int order0 =
m_base[0]->GetNumModes();
374 int order1 =
m_base[1]->GetNumModes();
377 order0*order1*nquad2);
379 if(multiplybyweights)
395 inarray,outarray,wsp,
435 ASSERTL1((dir==0)||(dir==1)||(dir==2),
"Invalid direction.");
437 const int nq0 =
m_base[0]->GetNumPoints();
438 const int nq1 =
m_base[1]->GetNumPoints();
439 const int nq2 =
m_base[2]->GetNumPoints();
440 const int nq = nq0*nq1*nq2;
441 const int nm0 =
m_base[0]->GetNumModes();
442 const int nm1 =
m_base[1]->GetNumModes();
459 Vmath::Vmul(nq,&df[3*dir][0], 1,tmp1.get(),1,tmp2.get(),1);
460 Vmath::Vmul(nq,&df[3*dir+1][0],1,tmp1.get(),1,tmp3.get(),1);
461 Vmath::Vmul(nq,&df[3*dir+2][0],1,tmp1.get(),1,tmp4.get(),1);
465 Vmath::Smul(nq, df[3*dir][0], tmp1.get(),1,tmp2.get(), 1);
466 Vmath::Smul(nq, df[3*dir+1][0],tmp1.get(),1,tmp3.get(), 1);
467 Vmath::Smul(nq, df[3*dir+2][0],tmp1.get(),1,tmp4.get(), 1);
519 ASSERTL1(
false,
"input dir is out of range");
527 Blas::Dgemv(
'N',
m_ncoeffs,nq,iprodmat->Scale(),(iprodmat->GetOwnedMatrix())->GetPtr().get(),
528 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
547 return StdHexExp::v_PhysEvaluate(Lcoord,physvals);
557 m_geom->GetLocCoords(coord,Lcoord);
558 return StdHexExp::v_PhysEvaluate(Lcoord, physvals);
566 m_base[2]->GetBasisKey());
573 2,
m_base[0]->GetPointsKey());
575 2,
m_base[1]->GetPointsKey());
577 2,
m_base[2]->GetPointsKey());
596 ASSERTL1(Lcoords[0] >= -1.0 && Lcoords[0] <= 1.0 &&
597 Lcoords[1] >= -1.0 && Lcoords[1] <= 1.0 &&
598 Lcoords[2] >= -1.0 && Lcoords[2] <= 1.0,
599 "Local coordinates are not in region [-1,1]");
603 for(i = 0; i <
m_geom->GetCoordim(); ++i)
605 coords[i] =
m_geom->GetCoord(i,Lcoords);
630 const std::vector<unsigned int > &nummodes,
631 const int mode_offset,
633 std::vector<LibUtilities::BasisType> &fromType)
635 int data_order0 = nummodes[mode_offset];
636 int fillorder0 = min(
m_base[0]->GetNumModes(),data_order0);
637 int data_order1 = nummodes[mode_offset+1];
638 int order1 =
m_base[1]->GetNumModes();
639 int fillorder1 = min(order1,data_order1);
640 int data_order2 = nummodes[mode_offset+2];
641 int order2 =
m_base[2]->GetNumModes();
642 int fillorder2 = min(order2,data_order2);
654 fromType[0], data_order0,
m_base[0]->GetPointsKey()),
656 fromType[1], data_order1,
m_base[1]->GetPointsKey()),
658 fromType[2], data_order2,
m_base[2]->GetPointsKey()));
661 m_base[2]->GetBasisKey());
669 Vmath::Vcopy(tmpOut.num_elements(), &tmpOut[0], 1, coeffs, 1);
684 "Extraction routine not set up for this basis");
687 "Extraction routine not set up for this basis");
690 for(j = 0; j < fillorder0; ++j)
692 for(i = 0; i < fillorder1; ++i)
701 for(i = fillorder1; i < data_order1; ++i)
706 for(i = fillorder1; i < order1; ++i)
734 ASSERTL0(
false,
"basis is either not set up or not "
752 int nquad0 =
m_base[0]->GetNumPoints();
753 int nquad1 =
m_base[1]->GetNumPoints();
754 int nquad2 =
m_base[2]->GetNumPoints();
766 if(outarray.num_elements()!=nq0*nq1)
771 for (
int i = 0; i < nquad0*nquad1; ++i)
781 if(outarray.num_elements()!=nq0*nq1)
787 for (
int k = 0; k < nquad2; k++)
789 for(
int i = 0; i < nquad0; ++i)
791 outarray[k*nquad0 + i] = nquad0*nquad1*k + i;
800 if(outarray.num_elements()!=nq0*nq1)
805 for (
int i = 0; i < nquad1*nquad2; i++)
807 outarray[i] = nquad0-1 + i*nquad0;
815 if(outarray.num_elements()!=nq0*nq1)
820 for (
int k = 0; k < nquad2; k++)
822 for (
int i = 0; i < nquad0; i++)
824 outarray[k*nquad0 + i] = (nquad0*(nquad1-1))+(k*nquad0*nquad1) + i;
833 if(outarray.num_elements()!=nq0*nq1)
838 for (
int i = 0; i < nquad1*nquad2; i++)
840 outarray[i] = i*nquad0;
847 if(outarray.num_elements()!=nq0*nq1)
852 for (
int i = 0; i < nquad0*nquad1; i++)
854 outarray[i] = nquad0*nquad1*(nquad2-1) + i;
859 ASSERTL0(
false,
"face value (> 5) is out of range");
885 for (i = 0; i < vCoordDim; ++i)
897 for(i = 0; i < vCoordDim; ++i)
899 normal[i][0] = -df[3*i+2][0];
903 for(i = 0; i < vCoordDim; ++i)
905 normal[i][0] = -df[3*i+1][0];
909 for(i = 0; i < vCoordDim; ++i)
911 normal[i][0] = df[3*i][0];
915 for(i = 0; i < vCoordDim; ++i)
917 normal[i][0] = df[3*i+1][0];
921 for(i = 0; i < vCoordDim; ++i)
923 normal[i][0] = -df[3*i][0];
927 for(i = 0; i < vCoordDim; ++i)
929 normal[i][0] = df[3*i+2][0];
933 ASSERTL0(
false,
"face is out of range (edge < 5)");
938 for(i =0 ; i < vCoordDim; ++i)
940 fac += normal[i][0]*normal[i][0];
943 for (i = 0; i < vCoordDim; ++i)
953 int nqe0 =
m_base[0]->GetNumPoints();
954 int nqe1 =
m_base[1]->GetNumPoints();
955 int nqe2 =
m_base[2]->GetNumPoints();
956 int nqe01 = nqe0*nqe1;
957 int nqe02 = nqe0*nqe2;
958 int nqe12 = nqe1*nqe2;
961 if (face == 0 || face == 5)
965 else if (face == 1 || face == 3)
986 for(j = 0; j < nqe; ++j)
988 normals[j] = -df[2][j]*jac[j];
989 normals[nqe+j] = -df[5][j]*jac[j];
990 normals[2*nqe+j] = -df[8][j]*jac[j];
994 points0 = ptsKeys[0];
995 points1 = ptsKeys[1];
998 for (j = 0; j < nqe0; ++j)
1000 for(k = 0; k < nqe2; ++k)
1002 int idx = j + nqe01*k;
1003 normals[j+k*nqe0] = -df[1][idx]*jac[idx];
1004 normals[nqe+j+k*nqe0] = -df[4][idx]*jac[idx];
1005 normals[2*nqe+j+k*nqe0] = -df[7][idx]*jac[idx];
1006 faceJac[j+k*nqe0] = jac[idx];
1009 points0 = ptsKeys[0];
1010 points1 = ptsKeys[2];
1013 for (j = 0; j < nqe1; ++j)
1015 for(k = 0; k < nqe2; ++k)
1017 int idx = nqe0-1+nqe0*j+nqe01*k;
1018 normals[j+k*nqe1] = df[0][idx]*jac[idx];
1019 normals[nqe+j+k*nqe1] = df[3][idx]*jac[idx];
1020 normals[2*nqe+j+k*nqe1] = df[6][idx]*jac[idx];
1021 faceJac[j+k*nqe1] = jac[idx];
1024 points0 = ptsKeys[1];
1025 points1 = ptsKeys[2];
1028 for (j = 0; j < nqe0; ++j)
1030 for(k = 0; k < nqe2; ++k)
1032 int idx = nqe0*(nqe1-1)+j+nqe01*k;
1033 normals[j+k*nqe0] = df[1][idx]*jac[idx];
1034 normals[nqe+j+k*nqe0] = df[4][idx]*jac[idx];
1035 normals[2*nqe+j+k*nqe0] = df[7][idx]*jac[idx];
1036 faceJac[j+k*nqe0] = jac[idx];
1039 points0 = ptsKeys[0];
1040 points1 = ptsKeys[2];
1043 for (j = 0; j < nqe1; ++j)
1045 for(k = 0; k < nqe2; ++k)
1047 int idx = j*nqe0+nqe01*k;
1048 normals[j+k*nqe1] = -df[0][idx]*jac[idx];
1049 normals[nqe+j+k*nqe1] = -df[3][idx]*jac[idx];
1050 normals[2*nqe+j+k*nqe1] = -df[6][idx]*jac[idx];
1051 faceJac[j+k*nqe1] = jac[idx];
1054 points0 = ptsKeys[1];
1055 points1 = ptsKeys[2];
1058 for (j = 0; j < nqe01; ++j)
1060 int idx = j+nqe01*(nqe2-1);
1061 normals[j] = df[2][idx]*jac[idx];
1062 normals[nqe+j] = df[5][idx]*jac[idx];
1063 normals[2*nqe+j] = df[8][idx]*jac[idx];
1064 faceJac[j] = jac[idx];
1066 points0 = ptsKeys[0];
1067 points1 = ptsKeys[1];
1070 ASSERTL0(
false,
"face is out of range (face < 5)");
1090 Vmath::Vmul(nq_face,work,1,normal[i],1,normal[i],1);
1097 Vmath::Vvtvp(nq_face,normal[i],1, normal[i],1,work,1,work,1);
1105 Vmath::Vmul(nq_face,normal[i],1,work,1,normal[i],1);
1118 StdExpansion::MassMatrixOp_MatFree(inarray,outarray,mkey);
1136 StdExpansion::LaplacianMatrixOp_MatFree(k1,k2,inarray,outarray,
1146 StdExpansion::WeakDerivMatrixOp_MatFree(i,inarray,outarray,mkey);
1154 StdExpansion::WeakDirectionalDerivMatrixOp_MatFree(inarray,
1163 StdExpansion::MassLevelCurvatureMatrixOp_MatFree(inarray,
1209 if(inarray.get() == outarray.get())
1214 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1215 m_ncoeffs, tmp.get(), 1, 0.0, outarray.get(), 1);
1219 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1220 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
1240 int n_coeffs = inarray.num_elements();
1241 int nmodes0 =
m_base[0]->GetNumModes();
1242 int nmodes1 =
m_base[1]->GetNumModes();
1243 int nmodes2 =
m_base[2]->GetNumModes();
1244 int numMax = nmodes0;
1274 b0, b1, b2, coeff_tmp2,
1275 bortho0, bortho1, bortho2, coeff);
1279 int cnt = 0, cnt2 = 0;
1281 for (
int u = 0; u < numMin+1; ++u)
1283 for (
int i = 0; i < numMin; ++i)
1286 tmp = coeff+cnt+cnt2,1,
1287 tmp2 = coeff_tmp1+cnt,1);
1293 tmp3 = coeff_tmp1,1,
1294 tmp4 = coeff_tmp2+cnt2,1);
1296 cnt2 = u*nmodes0*nmodes1;
1300 bortho0, bortho1, bortho2, coeff_tmp2,
1301 b0, b1, b2, outarray);
1327 StdHexExp::v_SVVLaplacianFilter( array, mkey);
1353 returnval = StdHexExp::v_GenMatrix(mkey);
1370 return tmp->GetStdMatrix(mkey);
1380 "Geometric information is not set up");
1473 int rows = deriv0.GetRows();
1474 int cols = deriv1.GetColumns();
1479 (*WeakDeriv) = df[3*dir ][0]*deriv0
1480 + df[3*dir+1][0]*deriv1
1481 + df[3*dir+2][0]*deriv2;
1527 int rows = lap00.GetRows();
1528 int cols = lap00.GetColumns();
1533 (*lap) = gmat[0][0]*lap00
1538 + gmat[7][0]*(lap12 +
Transpose(lap12));
1555 int rows = LapMat.GetRows();
1556 int cols = LapMat.GetColumns();
1561 (*helm) = LapMat + lambda*MassMat;
1707 unsigned int nint = (
unsigned int)(
m_ncoeffs - nbdry);
1708 unsigned int exp_size[] = {nbdry,nint};
1709 unsigned int nblks = 2;
1720 goto UseLocRegionsMatrix;
1727 goto UseLocRegionsMatrix;
1732 factor = mat->Scale();
1733 goto UseStdRegionsMatrix;
1736 UseStdRegionsMatrix:
1750 UseLocRegionsMatrix:
1766 for(i = 0; i < nbdry; ++i)
1768 for(j = 0; j < nbdry; ++j)
1770 (*A)(i,j) = mat(bmap[i],bmap[j]);
1773 for(j = 0; j < nint; ++j)
1775 (*B)(i,j) = mat(bmap[i],imap[j]);
1779 for(i = 0; i < nint; ++i)
1781 for(j = 0; j < nbdry; ++j)
1783 (*C)(i,j) = mat(imap[i],bmap[j]);
1786 for(j = 0; j < nint; ++j)
1788 (*D)(i,j) = mat(imap[i],imap[j]);
1797 (*A) = (*A) - (*B)*(*C);
1842 int nquad0 =
m_base[0]->GetNumPoints();
1843 int nquad1 =
m_base[1]->GetNumPoints();
1844 int nquad2 =
m_base[2]->GetNumPoints();
1845 int nqtot = nquad0*nquad1*nquad2;
1847 ASSERTL1(wsp.num_elements() >= 6*nqtot,
1848 "Insufficient workspace size.");
1871 StdExpansion3D::PhysTensorDeriv(inarray,wsp0,wsp1,wsp2);
1877 Vmath::Vvtvvtp(nqtot,&metric00[0],1,&wsp0[0],1,&metric01[0],1,&wsp1[0],1,&wsp3[0],1);
1878 Vmath::Vvtvp (nqtot,&metric02[0],1,&wsp2[0],1,&wsp3[0],1,&wsp3[0],1);
1879 Vmath::Vvtvvtp(nqtot,&metric01[0],1,&wsp0[0],1,&metric11[0],1,&wsp1[0],1,&wsp4[0],1);
1880 Vmath::Vvtvp (nqtot,&metric12[0],1,&wsp2[0],1,&wsp4[0],1,&wsp4[0],1);
1881 Vmath::Vvtvvtp(nqtot,&metric02[0],1,&wsp0[0],1,&metric12[0],1,&wsp1[0],1,&wsp5[0],1);
1882 Vmath::Vvtvp (nqtot,&metric22[0],1,&wsp2[0],1,&wsp5[0],1,&wsp5[0],1);
1903 const unsigned int dim = 3;
1909 for (
unsigned int i = 0; i < dim; ++i)
1911 for (
unsigned int j = i; j < dim; ++j)
void ComputeLaplacianMetric()
const LibUtilities::PointsKeyVector GetPointsKeys() const
LibUtilities::ShapeType DetShapeType() const
This function returns the shape of the expansion domain.
NekDouble GetConstFactor(const ConstFactorType &factor) const
DNekMatSharedPtr GenMatrix(const StdMatrixKey &mkey)
#define ASSERTL0(condition, msg)
const ConstFactorMap & GetConstFactors() const
const VarCoeffMap & GetVarCoeffs() const
virtual void v_HelmholtzMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
std::vector< PointsKey > PointsKeyVector
DNekMatSharedPtr BuildTransformationMatrix(const DNekScalMatSharedPtr &r_bnd, const StdRegions::MatrixType matrixType)
MatrixType GetMatrixType() const
static Array< OneD, NekDouble > NullNekDouble1DArray
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
virtual void v_LaplacianMatrixOp_MatFree(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void Vsqrt(int n, const T *x, const int incx, T *y, const int incy)
sqrt y = sqrt(x)
void MultiplyByQuadratureMetric(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual LibUtilities::ShapeType v_DetShapeType() const
Return the region shape using the enum-list of ShapeType.
void v_ComputeFaceNormal(const int face)
void IProductWRTDerivBase_MatOp(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_ComputeLaplacianMetric()
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
virtual void v_IProductWRTBase_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool multiplybyweights=true)
Calculate the inner product of inarray with respect to the given basis B = base0 * base1 * base2...
virtual DNekScalMatSharedPtr v_GetLocMatrix(const MatrixKey &mkey)
void IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
this function calculates the inner product of a given function f with the different modes of the expa...
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
virtual NekDouble v_Integral(const Array< OneD, const NekDouble > &inarray)
Integrate the physical point list inarray over region.
SpatialDomains::Geometry3DSharedPtr GetGeom3D() const
void v_DropLocStaticCondMatrix(const MatrixKey &mkey)
void Vvtvp(int n, const T *w, const int incw, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
vvtvp (vector times vector plus vector): z = w*x + y
Principle Modified Functions .
virtual void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Calculate the inner product of inarray with respect to the elements basis.
SpatialDomains::GeomFactorsSharedPtr m_metricinfo
void Sdiv(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha/y.
virtual void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
DNekMatSharedPtr BuildVertexMatrix(const DNekScalMatSharedPtr &r_bnd)
LibUtilities::ShapeType GetShapeType() const
void IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Calculates the inner product .
boost::shared_ptr< StdHexExp > StdHexExpSharedPtr
void Vdiv(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x/y.
SpatialDomains::GeometrySharedPtr m_geom
virtual void v_WeakDerivMatrixOp(const int i, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
boost::shared_ptr< HexGeom > HexGeomSharedPtr
virtual NekDouble v_PhysEvaluate(const Array< OneD, const NekDouble > &coords, const Array< OneD, const NekDouble > &physvals)
This function evaluates the expansion at a single (arbitrary) point of the domain.
DNekScalBlkMatSharedPtr GetLocStaticCondMatrix(const LocalRegions::MatrixKey &mkey)
boost::shared_ptr< DNekMat > DNekMatSharedPtr
LibUtilities::NekManager< MatrixKey, DNekScalBlkMat, MatrixKey::opLess > m_staticCondMatrixManager
virtual DNekScalBlkMatSharedPtr v_GetLocStaticCondMatrix(const MatrixKey &mkey)
virtual void v_MassMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void PhysDeriv(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &out_d0, Array< OneD, NekDouble > &out_d1=NullNekDouble1DArray, Array< OneD, NekDouble > &out_d2=NullNekDouble1DArray)
DNekMatSharedPtr GetStdMatrix(const StdMatrixKey &mkey)
boost::shared_ptr< DNekScalMat > DNekScalMatSharedPtr
virtual bool v_GetFaceDGForwards(const int i) const
virtual void v_SVVLaplacianFilter(Array< OneD, NekDouble > &array, const StdRegions::StdMatrixKey &mkey)
void v_GeneralMatrixOp_MatOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
bool ConstFactorExists(const ConstFactorType &factor) const
int GetTotPoints() const
This function returns the total number of quadrature points used in the element.
virtual void v_GetFacePhysMap(const int face, Array< OneD, int > &outarray)
virtual void v_PhysDeriv(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &out_d0, Array< OneD, NekDouble > &out_d1, Array< OneD, NekDouble > &out_d2)
Calculate the derivative of the physical points.
void Interp2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
this function interpolates a 2D function evaluated at the quadrature points of the 2D basis...
int NumBndryCoeffs(void) const
virtual void v_ExtractDataToCoeffs(const NekDouble *data, const std::vector< unsigned int > &nummodes, const int mode_offset, NekDouble *coeffs, std::vector< LibUtilities::BasisType > &fromType)
DNekBlkMatSharedPtr GetStdStaticCondMatrix(const StdMatrixKey &mkey)
void IProductWRTBase_SumFacKernel(const Array< OneD, const NekDouble > &base0, const Array< OneD, const NekDouble > &base1, const Array< OneD, const NekDouble > &base2, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, Array< OneD, NekDouble > &wsp, bool doCheckCollDir0, bool doCheckCollDir1, bool doCheckCollDir2)
DNekScalMatSharedPtr CreateMatrix(const MatrixKey &mkey)
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*y.
virtual DNekMatSharedPtr v_GenMatrix(const StdRegions::StdMatrixKey &mkey)
virtual void v_GetCoord(const Array< OneD, const NekDouble > &Lcoords, Array< OneD, NekDouble > &coords)
Retrieves the physical coordinates of a given set of reference coordinates.
Class representing a hexehedral element in reference space.
virtual void v_GetCoords(Array< OneD, NekDouble > &coords_1, Array< OneD, NekDouble > &coords_2, Array< OneD, NekDouble > &coords_3)
int GetNumPoints() const
Return points order at which basis is defined.
boost::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
void GetInteriorMap(Array< OneD, unsigned int > &outarray)
Principle Orthogonal Functions .
NekMatrix< InnerMatrixType, BlockMatrixTag > Transpose(NekMatrix< InnerMatrixType, BlockMatrixTag > &rhs)
Defines a specification for a set of points.
virtual void v_WeakDirectionalDerivMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
virtual void v_GetCoords(Array< OneD, NekDouble > &coords_1, Array< OneD, NekDouble > &coords_2, Array< OneD, NekDouble > &coords_3)
virtual void v_ReduceOrderCoeffs(int numMin, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_LaplacianMatrixOp_MatFree_Kernel(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, Array< OneD, NekDouble > &wsp)
std::map< int, NormalVector > m_faceNormals
virtual StdRegions::StdExpansionSharedPtr v_GetLinStdExp(void) const
LibUtilities::BasisType GetBasisType(const int dir) const
This function returns the type of basis used in the dir direction.
virtual NekDouble v_StdPhysEvaluate(const Array< OneD, const NekDouble > &Lcoord, const Array< OneD, const NekDouble > &physvals)
boost::shared_ptr< DNekBlkMat > DNekBlkMatSharedPtr
DNekScalMatSharedPtr GetLocMatrix(const LocalRegions::MatrixKey &mkey)
void Interp3D(const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
this function interpolates a 3D function evaluated at the quadrature points of the 3D basis...
virtual DNekMatSharedPtr v_GenMatrix(const StdRegions::StdMatrixKey &mkey)
PointsKey GetPointsKey() const
Return distribution of points.
SpatialDomains::GeometrySharedPtr GetGeom() const
boost::shared_ptr< GeomFactors > GeomFactorsSharedPtr
Pointer to a GeomFactors object.
void Vvtvvtp(int n, const T *v, int incv, const T *w, int incw, const T *x, int incx, const T *y, int incy, T *z, int incz)
vvtvvtp (vector times vector plus vector times vector):
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
Geometry is straight-sided with constant geometric factors.
DNekScalBlkMatSharedPtr CreateStaticCondMatrix(const MatrixKey &mkey)
LibUtilities::NekManager< MatrixKey, DNekScalMat, MatrixKey::opLess > m_matrixManager
void BwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
This function performs the Backward transformation from coefficient space to physical space...
void ComputeQuadratureMetric()
virtual StdRegions::StdExpansionSharedPtr v_GetStdExp(void) const
virtual DNekMatSharedPtr v_CreateStdMatrix(const StdRegions::StdMatrixKey &mkey)
virtual void v_LaplacianMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
int GetNcoeffs(void) const
This function returns the total number of coefficients used in the expansion.
const LibUtilities::BasisKey DetFaceBasisKey(const int i, const int k) const
GeomType
Indicates the type of element geometry.
void Zero(int n, T *x, const int incx)
Zero vector.
boost::shared_ptr< StdExpansion > StdExpansionSharedPtr
void InterpCoeff3D(const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
virtual void v_HelmholtzMatrixOp_MatFree(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
Array< OneD, LibUtilities::BasisSharedPtr > m_base
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Geometry is curved or has non-constant factors.
void GetBoundaryMap(Array< OneD, unsigned int > &outarray)
Describes the specification for a Basis.
1D Gauss-Lobatto-Legendre quadrature points
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Forward transform from physical quadrature space stored in inarray and evaluate the expansion coeffic...
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.
void Vmul(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x*y.
virtual void v_MassLevelCurvatureMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
This function performs the Forward transformation from physical space to coefficient space...