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)
714 ASSERTL0(
false,
"basis is either not set up or not "
732 int nquad0 =
m_base[0]->GetNumPoints();
733 int nquad1 =
m_base[1]->GetNumPoints();
734 int nquad2 =
m_base[2]->GetNumPoints();
746 if(outarray.num_elements()!=nq0*nq1)
751 for (
int i = 0; i < nquad0*nquad1; ++i)
761 if(outarray.num_elements()!=nq0*nq1)
767 for (
int k = 0; k < nquad2; k++)
769 for(
int i = 0; i < nquad0; ++i)
771 outarray[k*nquad0 + i] = nquad0*nquad1*k + i;
780 if(outarray.num_elements()!=nq0*nq1)
785 for (
int i = 0; i < nquad1*nquad2; i++)
787 outarray[i] = nquad0-1 + i*nquad0;
795 if(outarray.num_elements()!=nq0*nq1)
800 for (
int k = 0; k < nquad2; k++)
802 for (
int i = 0; i < nquad0; i++)
804 outarray[k*nquad0 + i] = (nquad0*(nquad1-1))+(k*nquad0*nquad1) + i;
813 if(outarray.num_elements()!=nq0*nq1)
818 for (
int i = 0; i < nquad1*nquad2; i++)
820 outarray[i] = i*nquad0;
827 if(outarray.num_elements()!=nq0*nq1)
832 for (
int i = 0; i < nquad0*nquad1; i++)
834 outarray[i] = nquad0*nquad1*(nquad2-1) + i;
839 ASSERTL0(
false,
"face value (> 5) is out of range");
865 for (i = 0; i < vCoordDim; ++i)
877 for(i = 0; i < vCoordDim; ++i)
879 normal[i][0] = -df[3*i+2][0];
883 for(i = 0; i < vCoordDim; ++i)
885 normal[i][0] = -df[3*i+1][0];
889 for(i = 0; i < vCoordDim; ++i)
891 normal[i][0] = df[3*i][0];
895 for(i = 0; i < vCoordDim; ++i)
897 normal[i][0] = df[3*i+1][0];
901 for(i = 0; i < vCoordDim; ++i)
903 normal[i][0] = -df[3*i][0];
907 for(i = 0; i < vCoordDim; ++i)
909 normal[i][0] = df[3*i+2][0];
913 ASSERTL0(
false,
"face is out of range (edge < 5)");
918 for(i =0 ; i < vCoordDim; ++i)
920 fac += normal[i][0]*normal[i][0];
923 for (i = 0; i < vCoordDim; ++i)
933 int nqe0 =
m_base[0]->GetNumPoints();
934 int nqe1 =
m_base[1]->GetNumPoints();
935 int nqe2 =
m_base[2]->GetNumPoints();
936 int nqe01 = nqe0*nqe1;
937 int nqe02 = nqe0*nqe2;
938 int nqe12 = nqe1*nqe2;
941 if (face == 0 || face == 5)
945 else if (face == 1 || face == 3)
966 for(j = 0; j < nqe; ++j)
968 normals[j] = -df[2][j]*jac[j];
969 normals[nqe+j] = -df[5][j]*jac[j];
970 normals[2*nqe+j] = -df[8][j]*jac[j];
974 points0 = ptsKeys[0];
975 points1 = ptsKeys[1];
978 for (j = 0; j < nqe0; ++j)
980 for(k = 0; k < nqe2; ++k)
982 int idx = j + nqe01*k;
983 normals[j+k*nqe0] = -df[1][idx]*jac[idx];
984 normals[nqe+j+k*nqe0] = -df[4][idx]*jac[idx];
985 normals[2*nqe+j+k*nqe0] = -df[7][idx]*jac[idx];
986 faceJac[j+k*nqe0] = jac[idx];
989 points0 = ptsKeys[0];
990 points1 = ptsKeys[2];
993 for (j = 0; j < nqe1; ++j)
995 for(k = 0; k < nqe2; ++k)
997 int idx = nqe0-1+nqe0*j+nqe01*k;
998 normals[j+k*nqe1] = df[0][idx]*jac[idx];
999 normals[nqe+j+k*nqe1] = df[3][idx]*jac[idx];
1000 normals[2*nqe+j+k*nqe1] = df[6][idx]*jac[idx];
1001 faceJac[j+k*nqe1] = jac[idx];
1004 points0 = ptsKeys[1];
1005 points1 = ptsKeys[2];
1008 for (j = 0; j < nqe0; ++j)
1010 for(k = 0; k < nqe2; ++k)
1012 int idx = nqe0*(nqe1-1)+j+nqe01*k;
1013 normals[j+k*nqe0] = df[1][idx]*jac[idx];
1014 normals[nqe+j+k*nqe0] = df[4][idx]*jac[idx];
1015 normals[2*nqe+j+k*nqe0] = df[7][idx]*jac[idx];
1016 faceJac[j+k*nqe0] = jac[idx];
1019 points0 = ptsKeys[0];
1020 points1 = ptsKeys[2];
1023 for (j = 0; j < nqe1; ++j)
1025 for(k = 0; k < nqe2; ++k)
1027 int idx = j*nqe0+nqe01*k;
1028 normals[j+k*nqe1] = -df[0][idx]*jac[idx];
1029 normals[nqe+j+k*nqe1] = -df[3][idx]*jac[idx];
1030 normals[2*nqe+j+k*nqe1] = -df[6][idx]*jac[idx];
1031 faceJac[j+k*nqe1] = jac[idx];
1034 points0 = ptsKeys[1];
1035 points1 = ptsKeys[2];
1038 for (j = 0; j < nqe01; ++j)
1040 int idx = j+nqe01*(nqe2-1);
1041 normals[j] = df[2][idx]*jac[idx];
1042 normals[nqe+j] = df[5][idx]*jac[idx];
1043 normals[2*nqe+j] = df[8][idx]*jac[idx];
1044 faceJac[j] = jac[idx];
1046 points0 = ptsKeys[0];
1047 points1 = ptsKeys[1];
1050 ASSERTL0(
false,
"face is out of range (face < 5)");
1070 Vmath::Vmul(nq_face,work,1,normal[i],1,normal[i],1);
1077 Vmath::Vvtvp(nq_face,normal[i],1, normal[i],1,work,1,work,1);
1085 Vmath::Vmul(nq_face,normal[i],1,work,1,normal[i],1);
1098 StdExpansion::MassMatrixOp_MatFree(inarray,outarray,mkey);
1116 StdExpansion::LaplacianMatrixOp_MatFree(k1,k2,inarray,outarray,
1126 StdExpansion::WeakDerivMatrixOp_MatFree(i,inarray,outarray,mkey);
1134 StdExpansion::WeakDirectionalDerivMatrixOp_MatFree(inarray,
1143 StdExpansion::MassLevelCurvatureMatrixOp_MatFree(inarray,
1189 if(inarray.get() == outarray.get())
1194 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1195 m_ncoeffs, tmp.get(), 1, 0.0, outarray.get(), 1);
1199 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1200 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
1220 int n_coeffs = inarray.num_elements();
1221 int nmodes0 =
m_base[0]->GetNumModes();
1222 int nmodes1 =
m_base[1]->GetNumModes();
1223 int nmodes2 =
m_base[2]->GetNumModes();
1224 int numMax = nmodes0;
1254 b0, b1, b2, coeff_tmp2,
1255 bortho0, bortho1, bortho2, coeff);
1259 int cnt = 0, cnt2 = 0;
1261 for (
int u = 0; u < numMin+1; ++u)
1263 for (
int i = 0; i < numMin; ++i)
1266 tmp = coeff+cnt+cnt2,1,
1267 tmp2 = coeff_tmp1+cnt,1);
1273 tmp3 = coeff_tmp1,1,
1274 tmp4 = coeff_tmp2+cnt2,1);
1276 cnt2 = u*nmodes0*nmodes1;
1280 bortho0, bortho1, bortho2, coeff_tmp2,
1281 b0, b1, b2, outarray);
1307 StdHexExp::v_SVVLaplacianFilter( array, mkey);
1333 returnval = StdHexExp::v_GenMatrix(mkey);
1350 return tmp->GetStdMatrix(mkey);
1360 "Geometric information is not set up");
1453 int rows = deriv0.GetRows();
1454 int cols = deriv1.GetColumns();
1459 (*WeakDeriv) = df[3*dir ][0]*deriv0
1460 + df[3*dir+1][0]*deriv1
1461 + df[3*dir+2][0]*deriv2;
1507 int rows = lap00.GetRows();
1508 int cols = lap00.GetColumns();
1513 (*lap) = gmat[0][0]*lap00
1518 + gmat[7][0]*(lap12 +
Transpose(lap12));
1535 int rows = LapMat.GetRows();
1536 int cols = LapMat.GetColumns();
1541 (*helm) = LapMat + lambda*MassMat;
1687 unsigned int nint = (
unsigned int)(
m_ncoeffs - nbdry);
1688 unsigned int exp_size[] = {nbdry,nint};
1689 unsigned int nblks = 2;
1700 goto UseLocRegionsMatrix;
1707 goto UseLocRegionsMatrix;
1712 factor = mat->Scale();
1713 goto UseStdRegionsMatrix;
1716 UseStdRegionsMatrix:
1730 UseLocRegionsMatrix:
1746 for(i = 0; i < nbdry; ++i)
1748 for(j = 0; j < nbdry; ++j)
1750 (*A)(i,j) = mat(bmap[i],bmap[j]);
1753 for(j = 0; j < nint; ++j)
1755 (*B)(i,j) = mat(bmap[i],imap[j]);
1759 for(i = 0; i < nint; ++i)
1761 for(j = 0; j < nbdry; ++j)
1763 (*C)(i,j) = mat(imap[i],bmap[j]);
1766 for(j = 0; j < nint; ++j)
1768 (*D)(i,j) = mat(imap[i],imap[j]);
1777 (*A) = (*A) - (*B)*(*C);
1822 int nquad0 =
m_base[0]->GetNumPoints();
1823 int nquad1 =
m_base[1]->GetNumPoints();
1824 int nquad2 =
m_base[2]->GetNumPoints();
1825 int nqtot = nquad0*nquad1*nquad2;
1827 ASSERTL1(wsp.num_elements() >= 6*nqtot,
1828 "Insufficient workspace size.");
1851 StdExpansion3D::PhysTensorDeriv(inarray,wsp0,wsp1,wsp2);
1857 Vmath::Vvtvvtp(nqtot,&metric00[0],1,&wsp0[0],1,&metric01[0],1,&wsp1[0],1,&wsp3[0],1);
1858 Vmath::Vvtvp (nqtot,&metric02[0],1,&wsp2[0],1,&wsp3[0],1,&wsp3[0],1);
1859 Vmath::Vvtvvtp(nqtot,&metric01[0],1,&wsp0[0],1,&metric11[0],1,&wsp1[0],1,&wsp4[0],1);
1860 Vmath::Vvtvp (nqtot,&metric12[0],1,&wsp2[0],1,&wsp4[0],1,&wsp4[0],1);
1861 Vmath::Vvtvvtp(nqtot,&metric02[0],1,&wsp0[0],1,&metric12[0],1,&wsp1[0],1,&wsp5[0],1);
1862 Vmath::Vvtvp (nqtot,&metric22[0],1,&wsp2[0],1,&wsp5[0],1,&wsp5[0],1);
1883 const unsigned int dim = 3;
1889 for (
unsigned int i = 0; i < dim; ++i)
1891 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)
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...