44 namespace LocalRegions
55 boost::bind(&
TriExp::CreateMatrix, this, _1),
56 std::string(
"TriExpMatrix")),
57 m_staticCondMatrixManager(
58 boost::bind(&
TriExp::CreateStaticCondMatrix, this, _1),
59 std::string(
"TriExpStaticCondMatrix"))
70 m_matrixManager(T.m_matrixManager),
71 m_staticCondMatrixManager(T.m_staticCondMatrixManager)
84 int nquad0 =
m_base[0]->GetNumPoints();
85 int nquad1 =
m_base[1]->GetNumPoints();
93 Vmath::Vmul(nquad0*nquad1, jac, 1, inarray, 1,tmp, 1);
97 Vmath::Smul(nquad0*nquad1, jac[0], inarray, 1, tmp, 1);
101 ival = StdTriExp::v_Integral(tmp);
111 int nquad0 =
m_base[0]->GetNumPoints();
112 int nquad1 =
m_base[1]->GetNumPoints();
113 int nqtot = nquad0*nquad1;
120 StdTriExp::v_PhysDeriv(inarray, diff0, diff1);
124 if(out_d0.num_elements())
127 Vmath::Vvtvp (nqtot,df[1],1,diff1,1, out_d0, 1, out_d0,1);
130 if(out_d1.num_elements())
133 Vmath::Vvtvp (nqtot,df[3],1,diff1,1, out_d1, 1, out_d1,1);
136 if(out_d2.num_elements())
139 Vmath::Vvtvp (nqtot,df[5],1,diff1,1, out_d2, 1, out_d2,1);
144 if(out_d0.num_elements())
146 Vmath::Smul (nqtot, df[0][0], diff0, 1, out_d0, 1);
147 Blas::Daxpy (nqtot, df[1][0], diff1, 1, out_d0, 1);
150 if(out_d1.num_elements())
152 Vmath::Smul (nqtot, df[2][0], diff0, 1, out_d1, 1);
153 Blas::Daxpy (nqtot, df[3][0], diff1, 1, out_d1, 1);
156 if(out_d2.num_elements())
158 Vmath::Smul (nqtot, df[4][0], diff0, 1, out_d2, 1);
159 Blas::Daxpy (nqtot, df[5][0], diff1, 1, out_d2, 1);
188 ASSERTL1(
false,
"input dir is out of range");
199 if(! out.num_elements())
204 int nquad0 =
m_base[0]->GetNumPoints();
205 int nquad1 =
m_base[1]->GetNumPoints();
206 int nqtot = nquad0*nquad1;
215 StdTriExp::v_PhysDeriv(inarray, diff0, diff1);
224 for (
int i=0; i< 2; ++i)
227 for (
int k=0; k<(
m_geom->GetCoordim()); ++k)
229 Vmath::Vvtvp(nqtot,&df[2*k+i][0],1,&direction[k*nqtot],1,&tangmat[i][0],1,&tangmat[i][0],1);
234 Vmath::Vmul (nqtot,&tangmat[0][0],1,&diff0[0],1, &out[0], 1);
235 Vmath::Vvtvp (nqtot,&tangmat[1][0],1,&diff1[0],1, &out[0], 1, &out[0],1);
266 int npoints[2] = {
m_base[0]->GetNumPoints(),
267 m_base[1]->GetNumPoints()};
268 int nmodes[2] = {
m_base[0]->GetNumModes(),
269 m_base[1]->GetNumModes()};
271 fill(outarray.get(), outarray.get()+
m_ncoeffs, 0.0 );
276 for(i = 0; i < 3; i++)
283 for(i = 0; i < npoints[0]; i++)
285 physEdge[0][i] = inarray[i];
288 for(i = 0; i < npoints[1]; i++)
290 physEdge[1][i] = inarray[npoints[0]-1+i*npoints[0]];
291 physEdge[2][i] = inarray[(npoints[1]-1)*npoints[0]-i*npoints[0]];
294 for(i = 0; i < 3; i++)
298 reverse( (physEdge[i]).
get() , (physEdge[i]).
get() + npoints[i!=0] );
303 for(i = 0; i < 3; i++)
312 for(i = 0; i < 3; i++)
314 segexp[i!=0]->FwdTrans_BndConstrained(physEdge[i],coeffEdge[i]);
317 for(j=0; j < nmodes[i!=0]; j++)
320 outarray[ mapArray[j] ] = sign * coeffEdge[i][j];
325 int nInteriorDofs =
m_ncoeffs - nBoundaryDofs;
327 if (nInteriorDofs > 0) {
348 for(i = 0; i < nInteriorDofs; i++)
350 rhs[i] = tmp1[ mapArray[i] ];
353 Blas::Dgemv(
'N', nInteriorDofs, nInteriorDofs, matsys->Scale(), &((matsys->GetOwnedMatrix())->GetPtr())[0],
354 nInteriorDofs,rhs.get(),1,0.0,result.get(),1);
356 for(i = 0; i < nInteriorDofs; i++)
358 outarray[ mapArray[i] ] = result[i];
381 bool multiplybyweights)
383 int nquad0 =
m_base[0]->GetNumPoints();
384 int nquad1 =
m_base[1]->GetNumPoints();
385 int order0 =
m_base[0]->GetNumModes();
387 if(multiplybyweights)
400 inarray,outarray,wsp);
412 Blas::Dgemv(
'N',
m_ncoeffs,nq,iprodmat->Scale(),(iprodmat->GetOwnedMatrix())->GetPtr().get(),
413 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
422 ASSERTL1((dir==0)||(dir==1)||(dir==2),
"Invalid direction.");
423 ASSERTL1((dir==2)?(
m_geom->GetCoordim()==3):
true,
"Invalid direction.");
426 int nquad0 =
m_base[0]->GetNumPoints();
427 int nquad1 =
m_base[1]->GetNumPoints();
428 int nqtot = nquad0*nquad1;
429 int nmodes0 =
m_base[0]->GetNumModes();
430 int wspsize = max(max(nqtot,
m_ncoeffs),nquad1*nmodes0);
446 for(i = 0; i < nquad1; ++i)
448 gfac0[i] = 2.0/(1-z1[i]);
450 for(i = 0; i < nquad0; ++i)
452 gfac1[i] = 0.5*(1+z0[i]);
455 for(i = 0; i < nquad1; ++i)
457 Vmath::Smul(nquad0,gfac0[i],&inarray[0]+i*nquad0,1,&tmp0[0]+i*nquad0,1);
460 for(i = 0; i < nquad1; ++i)
462 Vmath::Vmul(nquad0,&gfac1[0],1,&tmp0[0]+i*nquad0,1,&tmp1[0]+i*nquad0,1);
467 Vmath::Vmul(nqtot,&df[2*dir][0], 1,&tmp0[0], 1,&tmp0[0],1);
468 Vmath::Vmul(nqtot,&df[2*dir+1][0],1,&tmp1[0], 1,&tmp1[0],1);
469 Vmath::Vmul(nqtot,&df[2*dir+1][0],1,&inarray[0],1,&tmp2[0],1);
473 Vmath::Smul(nqtot, df[2*dir][0], tmp0, 1, tmp0, 1);
474 Vmath::Smul(nqtot, df[2*dir+1][0], tmp1, 1, tmp1, 1);
475 Vmath::Smul(nqtot, df[2*dir+1][0], inarray, 1, tmp2, 1);
514 ASSERTL1(
false,
"input dir is out of range");
522 Blas::Dgemv(
'N',
m_ncoeffs,nq,iprodmat->Scale(),(iprodmat->GetOwnedMatrix())->GetPtr().get(),
523 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
533 int nq =
m_base[0]->GetNumPoints()*
m_base[1]->GetNumPoints();
543 &normals[1][0],1,&Fy[0],1,&Fn[0],1);
544 Vmath::Vvtvp (nq,&normals[2][0],1,&Fz[0],1,&Fn[0],1,&Fn[0],1);
549 normals[1][0],&Fy[0],1,&Fn[0],1);
550 Vmath::Svtvp (nq,normals[2][0],&Fz[0],1,&Fn[0],1,&Fn[0],1);
561 m_base[1]->GetBasisKey());
569 ASSERTL1(Lcoords[0] >= -1.0 && Lcoords[1] <= 1.0 &&
570 Lcoords[1] >= -1.0 && Lcoords[1] <=1.0,
571 "Local coordinates are not in region [-1,1]");
575 for(i = 0; i <
m_geom->GetCoordim(); ++i)
577 coords[i] =
m_geom->GetCoord(i,Lcoords);
600 return StdTriExp::v_PhysEvaluate(Lcoord,physvals);
608 m_geom->GetLocCoords(coord,Lcoord);
610 return StdTriExp::v_PhysEvaluate(Lcoord, physvals);
629 int nquad0 =
m_base[0]->GetNumPoints();
630 int nquad1 =
m_base[1]->GetNumPoints();
655 -nquad0, &(outarray[0]),1);
662 -nquad0,&(outarray[0]),1);
671 ASSERTL0(
false,
"edge value (< 3) is out of range");
680 int nquad0 =
m_base[0]->GetNumPoints();
681 int nquad1 =
m_base[1]->GetNumPoints();
690 Vmath::Vcopy(nquad1,&(inarray[0])+(nquad0-1),nquad0,&(outarray[0]),1);
693 Vmath::Vcopy(nquad1,&(inarray[0]),nquad0,&(outarray[0]),1);
696 ASSERTL0(
false,
"edge value (< 3) is out of range");
701 if(
m_base[edge?1:0]->GetPointsKey() != EdgeExp->GetBasis(0)->GetPointsKey())
708 EdgeExp->GetBasis(0)->GetPointsKey(),outarray);
726 "Routine not implemented for triangular elements");
734 "Routine not implemented for triangular elements");
746 int nqe =
m_base[0]->GetNumPoints();
751 for (i = 0; i < dim; ++i)
772 Vmath::Fill(nqe,df[2*i+1][0] + df[2*i][0],normal[i],1);
782 ASSERTL0(
false,
"Edge is out of range (edge < 3)");
789 fac += normal[i][0]*normal[i][0];
801 int nquad0 = ptsKeys[0].GetNumPoints();
802 int nquad1 = ptsKeys[1].GetNumPoints();
815 for(j = 0; j < nquad0; ++j)
820 normals[i*nquad0+j] = -df[2*i+1][j]*edgejac[j];
823 from_key = ptsKeys[0];
826 for(j = 0; j < nquad1; ++j)
828 edgejac[j] = jac[nquad0*j+nquad0-1];
831 normals[i*nquad1+j] = (df[2*i][nquad0*j + nquad0-1] + df[2*i+1][nquad0*j + nquad0-1])*edgejac[j];
834 from_key = ptsKeys[1];
837 for(j = 0; j < nquad1; ++j)
839 edgejac[j] = jac[nquad0*j];
842 normals[i*nquad1+j] = -df[2*i][nquad0*j]*edgejac[j];
845 from_key = ptsKeys[1];
848 ASSERTL0(
false,
"edge is out of range (edge < 3)");
870 Vmath::Vvtvp(nqe,normal[i],1, normal[i],1,work,1,work,1);
905 return m_geom->GetCoordim();
910 const std::vector<unsigned int > &nummodes,
const int mode_offset,
NekDouble * coeffs)
912 int data_order0 = nummodes[mode_offset];
913 int fillorder0 = min(
m_base[0]->GetNumModes(),data_order0);
914 int data_order1 = nummodes[mode_offset+1];
915 int order1 =
m_base[1]->GetNumModes();
916 int fillorder1 = min(order1,data_order1);
927 "Extraction routine not set up for this basis");
930 for(i = 0; i < fillorder0; ++i)
932 Vmath::Vcopy(fillorder1-i,&data[cnt],1,&coeffs[cnt1],1);
933 cnt += data_order1-i;
939 ASSERTL0(
false,
"basis is either not set up or not hierarchicial");
952 return GetGeom2D()->GetCartesianEorient(edge);
958 ASSERTL1(dir >= 0 &&dir <= 1,
"input dir is out of range");
984 returnval = StdTriExp::v_GenMatrix(mkey);
999 return tmp->GetStdMatrix(mkey);
1089 int rows = deriv0.GetRows();
1090 int cols = deriv1.GetColumns();
1093 (*WeakDeriv) = df[2*dir][0]*deriv0 + df[2*dir+1][0]*deriv1;
1126 int rows = lap00.GetRows();
1127 int cols = lap00.GetColumns();
1131 (*lap) = gmat[0][0] * lap00 +
1132 gmat[1][0] * (lap01 +
Transpose(lap01)) +
1155 int rows = LapMat.GetRows();
1156 int cols = LapMat.GetColumns();
1161 (*helm) = LapMat + factor*MassMat;
1222 int rows = stdiprod0.GetRows();
1223 int cols = stdiprod1.GetColumns();
1226 (*mat) = df[2*dir][0]*stdiprod0 + df[2*dir+1][0]*stdiprod1;
1279 unsigned int nint = (
unsigned int)(
m_ncoeffs - nbdry);
1280 unsigned int exp_size[] = {nbdry,nint};
1281 unsigned int nblks = 2;
1292 goto UseLocRegionsMatrix;
1297 goto UseStdRegionsMatrix;
1302 goto UseLocRegionsMatrix;
1304 UseStdRegionsMatrix:
1319 UseLocRegionsMatrix:
1337 for(i = 0; i < nbdry; ++i)
1339 for(j = 0; j < nbdry; ++j)
1341 (*A)(i,j) = mat(bmap[i],bmap[j]);
1344 for(j = 0; j < nint; ++j)
1346 (*B)(i,j) = mat(bmap[i],imap[j]);
1350 for(i = 0; i < nint; ++i)
1352 for(j = 0; j < nbdry; ++j)
1354 (*C)(i,j) = mat(imap[i],bmap[j]);
1357 for(j = 0; j < nint; ++j)
1359 (*D)(i,j) = mat(imap[i],imap[j]);
1368 (*A) = (*A) - (*B)*(*C);
1407 StdExpansion::MassMatrixOp_MatFree(inarray,outarray,mkey);
1424 StdExpansion::LaplacianMatrixOp_MatFree(k1,k2,inarray,outarray,mkey);
1433 StdExpansion::WeakDerivMatrixOp_MatFree(i,inarray,outarray,mkey);
1441 StdExpansion::WeakDirectionalDerivMatrixOp_MatFree(inarray,outarray,mkey);
1449 StdExpansion::MassLevelCurvatureMatrixOp_MatFree(inarray,outarray,mkey);
1467 if(inarray.get() == outarray.get())
1472 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1473 m_ncoeffs, tmp.get(), 1, 0.0, outarray.get(), 1);
1477 Blas::Dgemv(
'N',
m_ncoeffs,
m_ncoeffs,mat->Scale(),(mat->GetOwnedMatrix())->GetPtr().get(),
1478 m_ncoeffs, inarray.get(), 1, 0.0, outarray.get(), 1);
1493 int nquad0 =
m_base[0]->GetNumPoints();
1494 int nquad1 =
m_base[1]->GetNumPoints();
1495 int nqtot = nquad0*nquad1;
1496 int nmodes0 =
m_base[0]->GetNumModes();
1497 int nmodes1 =
m_base[1]->GetNumModes();
1498 int wspsize = max(max(max(nqtot,
m_ncoeffs),nquad1*nmodes0),nquad0*nmodes1);
1500 ASSERTL1(wsp.num_elements() >= 3*wspsize,
1501 "Workspace is of insufficient size.");
1516 StdExpansion2D::PhysTensorDeriv(inarray,wsp1,wsp2);
1522 Vmath::Vvtvvtp(nqtot,&metric00[0],1,&wsp1[0],1,&metric01[0],1,&wsp2[0],1,&wsp0[0],1);
1523 Vmath::Vvtvvtp(nqtot,&metric01[0],1,&wsp1[0],1,&metric11[0],1,&wsp2[0],1,&wsp2[0],1);
1546 const unsigned int dim = 2;
1555 for (i = 0; i < dim; ++i)
1557 for (j = i; j < dim; ++j)
1565 const unsigned int nquad0 =
m_base[0]->GetNumPoints();
1566 const unsigned int nquad1 =
m_base[1]->GetNumPoints();
1570 for(i = 0; i < nquad1; i++)
1572 Blas::Dscal(nquad0,2.0/(1-z1[i]),&dEta_dXi[0][0]+i*nquad0,1);
1573 Blas::Dscal(nquad0,2.0/(1-z1[i]),&dEta_dXi[1][0]+i*nquad0,1);
1575 for(i = 0; i < nquad0; i++)
1577 Blas::Dscal(nquad1,0.5*(1+z0[i]),&dEta_dXi[1][0]+i,nquad0);
1584 Vmath::Smul (nqtot,df[0][0],&dEta_dXi[0][0],1,&tmp[0],1);
1585 Vmath::Svtvp(nqtot,df[1][0],&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1591 Vmath::Smul (nqtot,df[2][0],&dEta_dXi[0][0],1,&tmp[0],1);
1592 Vmath::Svtvp(nqtot,df[3][0],&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1599 Vmath::Smul (nqtot,df[4][0],&dEta_dXi[0][0],1,&tmp[0],1);
1600 Vmath::Svtvp(nqtot,df[5][0],&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1606 NekDouble g2 = df[1][0]*df[1][0] + df[3][0]*df[3][0];
1609 g2 += df[5][0]*df[5][0];
1616 Vmath::Vmul (nqtot,&df[0][0],1,&dEta_dXi[0][0],1,&tmp[0],1);
1617 Vmath::Vvtvp(nqtot,&df[1][0],1,&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1624 Vmath::Vmul (nqtot,&df[2][0],1,&dEta_dXi[0][0],1,&tmp[0],1);
1625 Vmath::Vvtvp(nqtot,&df[3][0],1,&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1633 Vmath::Vmul (nqtot,&df[4][0],1,&dEta_dXi[0][0],1,&tmp[0],1);
1634 Vmath::Vvtvp(nqtot,&df[5][0],1,&dEta_dXi[1][0],1,&tmp[0],1,&tmp[0],1);
1642 for (
unsigned int i = 0; i < dim; ++i)
1644 for (
unsigned int j = i; j < dim; ++j)
1670 int n_coeffs = inarray.num_elements();
1671 int nquad0 =
m_base[0]->GetNumPoints();
1672 int nquad1 =
m_base[1]->GetNumPoints();
1673 int nqtot = nquad0*nquad1;
1674 int nmodes0 =
m_base[0]->GetNumModes();
1675 int nmodes1 =
m_base[1]->GetNumModes();
1676 int numMin2 = nmodes0, i;
1710 m_TriExp ->BwdTrans(inarray,phys_tmp);
1711 m_OrthoTriExp->FwdTrans(phys_tmp, coeff);
1713 for (i = 0; i < n_coeffs; i++)
1718 numMin += numMin2 - 1;
1723 m_OrthoTriExp->BwdTrans(coeff,phys_tmp);
1724 m_TriExp ->FwdTrans(phys_tmp, outarray);
1750 StdTriExp::v_SVVLaplacianFilter( array, mkey);
LibUtilities::NekManager< MatrixKey, DNekScalMat, MatrixKey::opLess > m_matrixManager
void ComputeLaplacianMetric()
const LibUtilities::PointsKeyVector GetPointsKeys() const
boost::shared_ptr< StdTriExp > StdTriExpSharedPtr
virtual NekDouble v_StdPhysEvaluate(const Array< OneD, const NekDouble > &Lcoord, const Array< OneD, const NekDouble > &physvals)
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)
StdRegions::Orientation GetCartesianEorient(int edge)
const ConstFactorMap & GetConstFactors() const
const VarCoeffMap & GetVarCoeffs() const
std::vector< PointsKey > PointsKeyVector
virtual int v_GetCoordim()
MatrixType GetMatrixType() const
virtual DNekScalBlkMatSharedPtr v_GetLocStaticCondMatrix(const MatrixKey &mkey)
void MassMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
static Array< OneD, NekDouble > NullNekDouble1DArray
LibUtilities::NekManager< MatrixKey, DNekScalBlkMat, MatrixKey::opLess > m_staticCondMatrixManager
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
#define sign(a, b)
return the sign(b)*a
void IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
void Vsqrt(int n, const T *x, const int incx, T *y, const int incy)
sqrt y = sqrt(x)
virtual int v_GetNumPoints(const int dir) const
void MultiplyByQuadratureMetric(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_MassLevelCurvatureMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void GetEdgeToElementMap(const int eid, const Orientation edgeOrient, Array< OneD, unsigned int > &maparray, Array< OneD, int > &signarray)
virtual void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
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 void v_PhysDeriv(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &out_d0, Array< OneD, NekDouble > &out_d1, Array< OneD, NekDouble > &out_d2=NullNekDouble1DArray)
Calculate the derivative of the physical points.
void LaplacianMatrixOp_MatFree(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
virtual void v_WeakDirectionalDerivMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
int GetNumPoints(const int dir) const
This function returns the number of quadrature points in the dir direction.
void Svtvp(int n, const T alpha, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
svtvp (scalar times vector plus vector): z = alpha*x + y
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 .
std::map< int, StdRegions::NormalVector > m_edgeNormals
SpatialDomains::GeomFactorsSharedPtr m_metricinfo
StdRegions::Orientation GetEorient(int edge)
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.
void Sdiv(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha/y.
DNekMatSharedPtr BuildVertexMatrix(const DNekScalMatSharedPtr &r_bnd)
LibUtilities::ShapeType GetShapeType() const
virtual void v_GetCoords(Array< OneD, NekDouble > &coords_1, Array< OneD, NekDouble > &coords_2, Array< OneD, NekDouble > &coords_3)
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_PhysDirectionalDeriv(const Array< OneD, const NekDouble > &inarray, const Array< OneD, const NekDouble > &direction, Array< OneD, NekDouble > &out)
Physical derivative along a direction vector.
DNekScalBlkMatSharedPtr GetLocStaticCondMatrix(const LocalRegions::MatrixKey &mkey)
boost::shared_ptr< DNekMat > DNekMatSharedPtr
virtual DNekMatSharedPtr v_GenMatrix(const StdRegions::StdMatrixKey &mkey)
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Transform a given function from physical quadrature space to coefficient space.
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
void IProductWRTBase_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool multiplybyweights=true)
virtual void v_GetEdgePhysVals(const int edge, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Extract the physical values along edge edge from inarray into outarray following the local edge orien...
virtual void v_HelmholtzMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
Principle Orthogonal Functions .
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_IProductWRTDerivBase_MatOp(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_ComputeEdgeNormal(const int edge)
int NumBndryCoeffs(void) const
virtual void v_NormVectorIProductWRTBase(const Array< OneD, const NekDouble > &Fx, const Array< OneD, const NekDouble > &Fy, const Array< OneD, const NekDouble > &Fz, Array< OneD, NekDouble > &outarray)
DNekBlkMatSharedPtr GetStdStaticCondMatrix(const StdMatrixKey &mkey)
boost::shared_ptr< SegExp > SegExpSharedPtr
virtual void v_ComputeLaplacianMetric()
SpatialDomains::Geometry2DSharedPtr GetGeom2D() const
void Reverse(int n, const T *x, const int incx, T *y, const int incy)
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*y.
int getNumberOfCoefficients(int Na)
virtual void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Calculate the inner product of inarray with respect to the basis B=base0[p]*base1[pq] and put into ou...
virtual void v_IProductWRTBase_MatOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual NekDouble v_Integral(const Array< OneD, const NekDouble > &inarray)
Integrates the specified function over the domain.
virtual void v_GetTracePhysVals(const int edge, const StdRegions::StdExpansionSharedPtr &EdgeExp, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, StdRegions::Orientation orient)
Principle Modified Functions .
virtual void v_GetCoords(Array< OneD, NekDouble > &coords_1, Array< OneD, NekDouble > &coords_2, Array< OneD, NekDouble > &coords_3)
virtual void v_GetEdgeQFactors(const int edge, Array< OneD, NekDouble > &outarray)
boost::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
virtual DNekScalBlkMatSharedPtr CreateStaticCondMatrix(const MatrixKey &mkey)
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.
Expansion3DSharedPtr GetLeftAdjacentElementExp() const
virtual StdRegions::StdExpansionSharedPtr v_GetStdExp(void) const
virtual DNekMatSharedPtr v_GenMatrix(const StdRegions::StdMatrixKey &mkey)
LibUtilities::BasisType GetBasisType(const int dir) const
This function returns the type of basis used in the dir direction.
virtual const LibUtilities::BasisSharedPtr & v_GetBasis(int dir) const
virtual void v_GeneralMatrixOp_MatOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void Vsub(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Subtract vector z = x-y.
boost::shared_ptr< DNekBlkMat > DNekBlkMatSharedPtr
DNekScalMatSharedPtr GetLocMatrix(const LocalRegions::MatrixKey &mkey)
virtual void v_FwdTrans_BndConstrained(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual NekDouble v_PhysEvaluate(const Array< OneD, const NekDouble > &coord, const Array< OneD, const NekDouble > &physvals)
This function evaluates the expansion at a single (arbitrary) point of the domain.
virtual void v_ReduceOrderCoeffs(int numMin, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual StdRegions::Orientation v_GetCartesianEorient(int edge)
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):
virtual DNekScalMatSharedPtr v_GetLocMatrix(const MatrixKey &mkey)
#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.
void Interp1D(const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
this function interpolates a 1D function evaluated at the quadrature points of the basis fbasis0 to ...
void HelmholtzMatrixOp_MatFree(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
unsigned int GetNumPoints() const
virtual void v_WeakDerivMatrixOp(const int i, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
virtual void v_SVVLaplacianFilter(Array< OneD, NekDouble > &array, const StdRegions::StdMatrixKey &mkey)
void ComputeQuadratureMetric()
virtual void v_MassMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
boost::shared_ptr< TriGeom > TriGeomSharedPtr
virtual void v_GetCoord(const Array< OneD, const NekDouble > &Lcoords, Array< OneD, NekDouble > &coords)
int GetLeftAdjacentElementFace() const
virtual StdRegions::Orientation v_GetEorient(int edge)
void Svtsvtp(int n, const T alpha, const T *x, int incx, const T beta, const T *y, int incy, T *z, int incz)
vvtvvtp (scalar times vector plus scalar times vector):
virtual void v_IProductWRTBase_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool multiplybyweights=true)
virtual void v_LaplacianMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::StdMatrixKey &mkey)
void IProductWRTBase_SumFacKernel(const Array< OneD, const NekDouble > &base0, const Array< OneD, const NekDouble > &base1, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, Array< OneD, NekDouble > &wsp, bool doCheckCollDir0=true, bool doCheckCollDir1=true)
GeomType
Indicates the type of element geometry.
boost::shared_ptr< Basis > BasisSharedPtr
virtual void v_LaplacianMatrixOp_MatFree_Kernel(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, Array< OneD, NekDouble > &wsp)
void Zero(int n, T *x, const int incx)
Zero vector.
void v_DropLocStaticCondMatrix(const MatrixKey &mkey)
boost::shared_ptr< StdExpansion > StdExpansionSharedPtr
#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)
virtual DNekMatSharedPtr v_CreateStdMatrix(const StdRegions::StdMatrixKey &mkey)
Describes the specification for a Basis.
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_GetEdgeInterpVals(const int edge, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual DNekScalMatSharedPtr CreateMatrix(const MatrixKey &mkey)