44 namespace LocalRegions
63 StdExpansion (Ba.GetNumModes()*Bb.GetNumModes()*Bc.GetNumModes(),3,Ba,Bb,Bc),
64 StdExpansion3D(Ba.GetNumModes()*Bb.GetNumModes()*Bc.GetNumModes(),Ba,Bb,Bc),
65 StdRegions::StdHexExp(Ba,Bb,Bc),
69 boost::bind(&
HexExp::CreateMatrix, this, _1),
70 std::string(
"HexExpMatrix")),
71 m_staticCondMatrixManager(
72 boost::bind(&
HexExp::CreateStaticCondMatrix, this, _1),
73 std::string(
"HexExpStaticCondMatrix"))
84 StdRegions::StdHexExp(T),
87 m_matrixManager(T.m_matrixManager),
88 m_staticCondMatrixManager(T.m_staticCondMatrixManager)
117 int nquad0 =
m_base[0]->GetNumPoints();
118 int nquad1 =
m_base[1]->GetNumPoints();
119 int nquad2 =
m_base[2]->GetNumPoints();
138 returnVal = StdHexExp::v_Integral(tmp);
163 int nquad0 =
m_base[0]->GetNumPoints();
164 int nquad1 =
m_base[1]->GetNumPoints();
165 int nquad2 =
m_base[2]->GetNumPoints();
166 int ntot = nquad0 * nquad1 * nquad2;
174 StdHexExp::v_PhysDeriv(inarray, Diff0, Diff1, Diff2);
178 if(out_d0.num_elements())
180 Vmath::Vmul (ntot,&df[0][0],1,&Diff0[0],1, &out_d0[0], 1);
181 Vmath::Vvtvp(ntot,&df[1][0],1,&Diff1[0],1, &out_d0[0], 1,
183 Vmath::Vvtvp(ntot,&df[2][0],1,&Diff2[0],1, &out_d0[0], 1,
187 if(out_d1.num_elements())
189 Vmath::Vmul (ntot,&df[3][0],1,&Diff0[0],1, &out_d1[0], 1);
190 Vmath::Vvtvp(ntot,&df[4][0],1,&Diff1[0],1, &out_d1[0], 1,
192 Vmath::Vvtvp(ntot,&df[5][0],1,&Diff2[0],1, &out_d1[0], 1,
196 if(out_d2.num_elements())
198 Vmath::Vmul (ntot,&df[6][0],1,&Diff0[0],1, &out_d2[0], 1);
199 Vmath::Vvtvp(ntot,&df[7][0],1,&Diff1[0],1, &out_d2[0], 1,
201 Vmath::Vvtvp(ntot,&df[8][0],1,&Diff2[0],1, &out_d2[0], 1,
207 if(out_d0.num_elements())
209 Vmath::Smul (ntot,df[0][0],&Diff0[0],1, &out_d0[0], 1);
210 Blas::Daxpy (ntot,df[1][0],&Diff1[0],1, &out_d0[0], 1);
211 Blas::Daxpy (ntot,df[2][0],&Diff2[0],1, &out_d0[0], 1);
214 if(out_d1.num_elements())
216 Vmath::Smul (ntot,df[3][0],&Diff0[0],1, &out_d1[0], 1);
217 Blas::Daxpy (ntot,df[4][0],&Diff1[0],1, &out_d1[0], 1);
218 Blas::Daxpy (ntot,df[5][0],&Diff2[0],1, &out_d1[0], 1);
221 if(out_d2.num_elements())
223 Vmath::Smul (ntot,df[6][0],&Diff0[0],1, &out_d2[0], 1);
224 Blas::Daxpy (ntot,df[7][0],&Diff1[0],1, &out_d2[0], 1);
225 Blas::Daxpy (ntot,df[8][0],&Diff2[0],1, &out_d2[0], 1);
267 ASSERTL1(
false,
"input dir is out of range");
290 if(
m_base[0]->Collocation() &&
m_base[1]->Collocation()
291 &&
m_base[2]->Collocation())
366 bool multiplybyweights)
368 int nquad0 =
m_base[0]->GetNumPoints();
369 int nquad1 =
m_base[1]->GetNumPoints();
370 int nquad2 =
m_base[2]->GetNumPoints();
371 int order0 =
m_base[0]->GetNumModes();
372 int order1 =
m_base[1]->GetNumModes();
375 order0*order1*nquad2);
377 if(multiplybyweights)
393 inarray,outarray,wsp,
433 ASSERTL1((dir==0)||(dir==1)||(dir==2),
"Invalid direction.");
435 const int nq0 =
m_base[0]->GetNumPoints();
436 const int nq1 =
m_base[1]->GetNumPoints();
437 const int nq2 =
m_base[2]->GetNumPoints();
438 const int nq = nq0*nq1*nq2;
439 const int nm0 =
m_base[0]->GetNumModes();
440 const int nm1 =
m_base[1]->GetNumModes();
457 Vmath::Vmul(nq,&df[3*dir][0], 1,tmp1.get(),1,tmp2.get(),1);
458 Vmath::Vmul(nq,&df[3*dir+1][0],1,tmp1.get(),1,tmp3.get(),1);
459 Vmath::Vmul(nq,&df[3*dir+2][0],1,tmp1.get(),1,tmp4.get(),1);
463 Vmath::Smul(nq, df[3*dir][0], tmp1.get(),1,tmp2.get(), 1);
464 Vmath::Smul(nq, df[3*dir+1][0],tmp1.get(),1,tmp3.get(), 1);
465 Vmath::Smul(nq, df[3*dir+2][0],tmp1.get(),1,tmp4.get(), 1);
517 ASSERTL1(
false,
"input dir is out of range");
525 Blas::Dgemv(
'N',
m_ncoeffs,nq,iprodmat->Scale(),(iprodmat->GetOwnedMatrix())->GetPtr().get(),
526 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
545 return StdHexExp::v_PhysEvaluate(Lcoord,physvals);
555 m_geom->GetLocCoords(coord,Lcoord);
556 return StdHexExp::v_PhysEvaluate(Lcoord, physvals);
564 m_base[2]->GetBasisKey());
581 ASSERTL1(Lcoords[0] >= -1.0 && Lcoords[0] <= 1.0 &&
582 Lcoords[1] >= -1.0 && Lcoords[1] <= 1.0 &&
583 Lcoords[2] >= -1.0 && Lcoords[2] <= 1.0,
584 "Local coordinates are not in region [-1,1]");
588 for(i = 0; i <
m_geom->GetCoordim(); ++i)
590 coords[i] =
m_geom->GetCoord(i,Lcoords);
615 const std::vector<unsigned int > &nummodes,
616 const int mode_offset,
619 int data_order0 = nummodes[mode_offset];
620 int fillorder0 = min(
m_base[0]->GetNumModes(),data_order0);
621 int data_order1 = nummodes[mode_offset+1];
622 int order1 =
m_base[1]->GetNumModes();
623 int fillorder1 = min(order1,data_order1);
624 int data_order2 = nummodes[mode_offset+2];
625 int order2 =
m_base[2]->GetNumModes();
626 int fillorder2 = min(order2,data_order2);
638 "Extraction routine not set up for this basis");
641 "Extraction routine not set up for this basis");
644 for(j = 0; j < fillorder0; ++j)
646 for(i = 0; i < fillorder1; ++i)
655 for(i = fillorder1; i < data_order1; ++i)
660 for(i = fillorder1; i < order1; ++i)
668 ASSERTL0(
false,
"basis is either not set up or not "
686 int nquad0 =
m_base[0]->GetNumPoints();
687 int nquad1 =
m_base[1]->GetNumPoints();
688 int nquad2 =
m_base[2]->GetNumPoints();
700 if(outarray.num_elements()!=nq0*nq1)
705 for (
int i = 0; i < nquad0*nquad1; ++i)
715 if(outarray.num_elements()!=nq0*nq1)
721 for (
int k = 0; k < nquad2; k++)
723 for(
int i = 0; i < nquad0; ++i)
725 outarray[k*nquad0 + i] = nquad0*nquad1*k + i;
734 if(outarray.num_elements()!=nq0*nq1)
739 for (
int i = 0; i < nquad1*nquad2; i++)
741 outarray[i] = nquad0-1 + i*nquad0;
749 if(outarray.num_elements()!=nq0*nq1)
754 for (
int k = 0; k < nquad2; k++)
756 for (
int i = 0; i < nquad0; i++)
758 outarray[k*nquad0 + i] = (nquad0*(nquad1-1))+(k*nquad0*nquad1) + i;
767 if(outarray.num_elements()!=nq0*nq1)
772 for (
int i = 0; i < nquad1*nquad2; i++)
774 outarray[i] = i*nquad0;
781 if(outarray.num_elements()!=nq0*nq1)
786 for (
int i = 0; i < nquad0*nquad1; i++)
788 outarray[i] = nquad0*nquad1*(nquad2-1) + i;
793 ASSERTL0(
false,
"face value (> 5) is out of range");
819 for (i = 0; i < vCoordDim; ++i)
831 for(i = 0; i < vCoordDim; ++i)
833 normal[i][0] = -df[3*i+2][0];
837 for(i = 0; i < vCoordDim; ++i)
839 normal[i][0] = -df[3*i+1][0];
843 for(i = 0; i < vCoordDim; ++i)
845 normal[i][0] = df[3*i][0];
849 for(i = 0; i < vCoordDim; ++i)
851 normal[i][0] = df[3*i+1][0];
855 for(i = 0; i < vCoordDim; ++i)
857 normal[i][0] = -df[3*i][0];
861 for(i = 0; i < vCoordDim; ++i)
863 normal[i][0] = df[3*i+2][0];
867 ASSERTL0(
false,
"face is out of range (edge < 5)");
872 for(i =0 ; i < vCoordDim; ++i)
874 fac += normal[i][0]*normal[i][0];
877 for (i = 0; i < vCoordDim; ++i)
887 int nqe0 =
m_base[0]->GetNumPoints();
888 int nqe1 =
m_base[1]->GetNumPoints();
889 int nqe2 =
m_base[2]->GetNumPoints();
890 int nqe01 = nqe0*nqe1;
891 int nqe02 = nqe0*nqe2;
892 int nqe12 = nqe1*nqe2;
895 if (face == 0 || face == 5)
899 else if (face == 1 || face == 3)
920 for(j = 0; j < nqe; ++j)
922 normals[j] = -df[2][j]*jac[j];
923 normals[nqe+j] = -df[5][j]*jac[j];
924 normals[2*nqe+j] = -df[8][j]*jac[j];
928 points0 = ptsKeys[0];
929 points1 = ptsKeys[1];
932 for (j = 0; j < nqe0; ++j)
934 for(k = 0; k < nqe2; ++k)
936 int idx = j + nqe01*k;
937 normals[j+k*nqe0] = -df[1][idx]*jac[idx];
938 normals[nqe+j+k*nqe0] = -df[4][idx]*jac[idx];
939 normals[2*nqe+j+k*nqe0] = -df[7][idx]*jac[idx];
940 faceJac[j+k*nqe0] = jac[idx];
943 points0 = ptsKeys[0];
944 points1 = ptsKeys[2];
947 for (j = 0; j < nqe1; ++j)
949 for(k = 0; k < nqe2; ++k)
951 int idx = nqe0-1+nqe0*j+nqe01*k;
952 normals[j+k*nqe1] = df[0][idx]*jac[idx];
953 normals[nqe+j+k*nqe1] = df[3][idx]*jac[idx];
954 normals[2*nqe+j+k*nqe1] = df[6][idx]*jac[idx];
955 faceJac[j+k*nqe1] = jac[idx];
958 points0 = ptsKeys[1];
959 points1 = ptsKeys[2];
962 for (j = 0; j < nqe0; ++j)
964 for(k = 0; k < nqe2; ++k)
966 int idx = nqe0*(nqe1-1)+j+nqe01*k;
967 normals[j+k*nqe0] = df[1][idx]*jac[idx];
968 normals[nqe+j+k*nqe0] = df[4][idx]*jac[idx];
969 normals[2*nqe+j+k*nqe0] = df[7][idx]*jac[idx];
970 faceJac[j+k*nqe0] = jac[idx];
973 points0 = ptsKeys[0];
974 points1 = ptsKeys[2];
977 for (j = 0; j < nqe1; ++j)
979 for(k = 0; k < nqe2; ++k)
981 int idx = j*nqe0+nqe01*k;
982 normals[j+k*nqe1] = -df[0][idx]*jac[idx];
983 normals[nqe+j+k*nqe1] = -df[3][idx]*jac[idx];
984 normals[2*nqe+j+k*nqe1] = -df[6][idx]*jac[idx];
985 faceJac[j+k*nqe1] = jac[idx];
988 points0 = ptsKeys[1];
989 points1 = ptsKeys[2];
992 for (j = 0; j < nqe01; ++j)
994 int idx = j+nqe01*(nqe2-1);
995 normals[j] = df[2][idx]*jac[idx];
996 normals[nqe+j] = df[5][idx]*jac[idx];
997 normals[2*nqe+j] = df[8][idx]*jac[idx];
998 faceJac[j] = jac[idx];
1000 points0 = ptsKeys[0];
1001 points1 = ptsKeys[1];
1004 ASSERTL0(
false,
"face is out of range (face < 5)");
1024 Vmath::Vmul(nq_face,work,1,normal[i],1,normal[i],1);
1031 Vmath::Vvtvp(nq_face,normal[i],1, normal[i],1,work,1,work,1);
1039 Vmath::Vmul(nq_face,normal[i],1,work,1,normal[i],1);
1052 StdExpansion::MassMatrixOp_MatFree(inarray,outarray,mkey);
1070 StdExpansion::LaplacianMatrixOp_MatFree(k1,k2,inarray,outarray,
1080 StdExpansion::WeakDerivMatrixOp_MatFree(i,inarray,outarray,mkey);
1088 StdExpansion::WeakDirectionalDerivMatrixOp_MatFree(inarray,
1097 StdExpansion::MassLevelCurvatureMatrixOp_MatFree(inarray,
1143 if(inarray.get() == outarray.get())
1148 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1149 m_ncoeffs, tmp.get(), 1, 0.0, outarray.get(), 1);
1153 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1154 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
1174 int n_coeffs = inarray.num_elements();
1175 int nmodes0 =
m_base[0]->GetNumModes();
1176 int nmodes1 =
m_base[1]->GetNumModes();
1177 int nmodes2 =
m_base[2]->GetNumModes();
1178 int numMax = nmodes0;
1208 b0, b1, b2, coeff_tmp2,
1209 bortho0, bortho1, bortho2, coeff);
1213 int cnt = 0, cnt2 = 0;
1215 for (
int u = 0; u < numMin+1; ++u)
1217 for (
int i = 0; i < numMin; ++i)
1220 tmp = coeff+cnt+cnt2,1,
1221 tmp2 = coeff_tmp1+cnt,1);
1227 tmp3 = coeff_tmp1,1,
1228 tmp4 = coeff_tmp2+cnt2,1);
1230 cnt2 = u*nmodes0*nmodes1;
1234 bortho0, bortho1, bortho2, coeff_tmp2,
1235 b0, b1, b2, outarray);
1261 StdHexExp::v_SVVLaplacianFilter( array, mkey);
1287 returnval = StdHexExp::v_GenMatrix(mkey);
1304 return tmp->GetStdMatrix(mkey);
1314 "Geometric information is not set up");
1407 int rows = deriv0.GetRows();
1408 int cols = deriv1.GetColumns();
1413 (*WeakDeriv) = df[3*dir ][0]*deriv0
1414 + df[3*dir+1][0]*deriv1
1415 + df[3*dir+2][0]*deriv2;
1461 int rows = lap00.GetRows();
1462 int cols = lap00.GetColumns();
1467 (*lap) = gmat[0][0]*lap00
1472 + gmat[7][0]*(lap12 +
Transpose(lap12));
1489 int rows = LapMat.GetRows();
1490 int cols = LapMat.GetColumns();
1495 (*helm) = LapMat + lambda*MassMat;
1641 unsigned int nint = (
unsigned int)(
m_ncoeffs - nbdry);
1642 unsigned int exp_size[] = {nbdry,nint};
1643 unsigned int nblks = 2;
1654 goto UseLocRegionsMatrix;
1661 goto UseLocRegionsMatrix;
1666 factor = mat->Scale();
1667 goto UseStdRegionsMatrix;
1670 UseStdRegionsMatrix:
1684 UseLocRegionsMatrix:
1700 for(i = 0; i < nbdry; ++i)
1702 for(j = 0; j < nbdry; ++j)
1704 (*A)(i,j) = mat(bmap[i],bmap[j]);
1707 for(j = 0; j < nint; ++j)
1709 (*B)(i,j) = mat(bmap[i],imap[j]);
1713 for(i = 0; i < nint; ++i)
1715 for(j = 0; j < nbdry; ++j)
1717 (*C)(i,j) = mat(imap[i],bmap[j]);
1720 for(j = 0; j < nint; ++j)
1722 (*D)(i,j) = mat(imap[i],imap[j]);
1731 (*A) = (*A) - (*B)*(*C);
1776 int nquad0 =
m_base[0]->GetNumPoints();
1777 int nquad1 =
m_base[1]->GetNumPoints();
1778 int nquad2 =
m_base[2]->GetNumPoints();
1779 int nqtot = nquad0*nquad1*nquad2;
1781 ASSERTL1(wsp.num_elements() >= 6*nqtot,
1782 "Insufficient workspace size.");
1805 StdExpansion3D::PhysTensorDeriv(inarray,wsp0,wsp1,wsp2);
1811 Vmath::Vvtvvtp(nqtot,&metric00[0],1,&wsp0[0],1,&metric01[0],1,&wsp1[0],1,&wsp3[0],1);
1812 Vmath::Vvtvp (nqtot,&metric02[0],1,&wsp2[0],1,&wsp3[0],1,&wsp3[0],1);
1813 Vmath::Vvtvvtp(nqtot,&metric01[0],1,&wsp0[0],1,&metric11[0],1,&wsp1[0],1,&wsp4[0],1);
1814 Vmath::Vvtvp (nqtot,&metric12[0],1,&wsp2[0],1,&wsp4[0],1,&wsp4[0],1);
1815 Vmath::Vvtvvtp(nqtot,&metric02[0],1,&wsp0[0],1,&metric12[0],1,&wsp1[0],1,&wsp5[0],1);
1816 Vmath::Vvtvp (nqtot,&metric22[0],1,&wsp2[0],1,&wsp5[0],1,&wsp5[0],1);
1837 const unsigned int dim = 3;
1843 for (
unsigned int i = 0; i < dim; ++i)
1845 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
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.
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
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 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_ExtractDataToCoeffs(const NekDouble *data, const std::vector< unsigned int > &nummodes, const int mode_offset, NekDouble *coeffs)
Unpack data from input file assuming it comes from the same expansion type.
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)