44 namespace MultiRegions
58 m_bndCondExpansions(),
79 const std::string &variable,
80 const bool SetUpJustDG)
82 m_bndCondExpansions(),
108 (*m_exp)[ElmtID[i]]->
109 as<LocalRegions::Expansion1D>();
111 locExpList->GetExp(0)->
112 as<LocalRegions::Expansion0D>();
114 exp0d->SetAdjacentElementExp(VertexID[i], exp1d);
156 int ElmtPointGeom = 0;
157 int TracePointGeom = 0;
160 for (
int i = 0; i <
m_exp->size(); ++i)
163 for (
int j = 0; j < exp1d->GetNverts(); ++j)
165 ElmtPointGeom = (exp1d->GetGeom1D())->GetVid(j);
167 for (
int k = 0; k <
m_trace->GetExpSize(); ++k)
169 TracePointGeom =
m_trace->GetExp(k)->GetGeom()->GetVid(0);
171 if (TracePointGeom == ElmtPointGeom)
194 m_traceMap->GetBndCondTraceToGlobalTraceMap(cnt+e));
199 ASSERTL0(
false,
"Periodic verts need setting up");
208 for (cnt = n = 0; n <
m_exp->size(); ++n)
210 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v, ++cnt)
217 boost::unordered_map<int,pair<int,int> > perVertToExpMap;
218 boost::unordered_map<int,pair<int,int> >
::iterator it2;
219 for (n = 0; n <
m_exp->size(); ++n)
221 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
224 (*
m_exp)[n]->GetGeom()->GetVid(v));
228 perVertToExpMap[it->first] = make_pair(n,v);
235 for (n = 0; n <
m_exp->size(); ++n)
237 for (
int v = 0; v < (*m_exp)[n]->GetNverts(); ++v)
239 int vertGeomId = (*m_exp)[n]->GetGeom()->GetVid(v);
247 it2 = perVertToExpMap.find(ent.
id);
249 if (it2 == perVertToExpMap.end())
251 if (
m_session->GetComm()->GetRowComm()->GetSize() > 1 &&
258 ASSERTL1(
false,
"Periodic vert not found!");
262 int offset =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
263 [n][v]->GetElmtId());
266 int offset2 =
m_trace->GetPhys_Offset((m_traceMap->GetElmtToTrace())
268 [it2->second.second]->GetElmtId());
284 if (traceEl->GetLeftAdjacentElementVertex () == -1 ||
285 traceEl->GetRightAdjacentElementVertex() == -1)
295 int traceGeomId = traceEl->GetGeom0D()->GetGlobalID();
301 fwd = traceGeomId == min(traceGeomId,pIt->second[0].id);
305 int offset =
m_trace->GetPhys_Offset(traceEl->GetElmtId());
307 GetTraceToUniversalMapUnique(offset) >= 0;
311 else if (traceEl->GetLeftAdjacentElementVertex () != -1 &&
312 traceEl->GetRightAdjacentElementVertex() != -1)
316 (traceEl->GetLeftAdjacentElementExp().get()) ==
321 ASSERTL2(
false,
"Unconnected trace element!");
334 const std::string &variable)
341 map<int,int> GeometryToRegionsMap;
343 SpatialDomains::BoundaryRegionCollection::const_iterator it;
351 for(it = bregions.begin(); it != bregions.end(); ++it)
354 for (bregionIt = it->second->begin();
355 bregionIt != it->second->end(); bregionIt++)
359 int id = (*(bregionIt->second))[0]->GetGlobalID();
360 GeometryToRegionsMap[id] = it->first;
365 map<int,SpatialDomains::GeometrySharedPtr> EndOfDomain;
368 for(domIt = domain.begin(); domIt != domain.end(); ++domIt)
371 for(
int i = 0; i < geomvector->size(); ++i)
373 for(
int j = 0; j < 2; ++j)
375 int vid = (*geomvector)[i]->GetVid(j);
376 if(EndOfDomain.count(vid) == 0)
378 EndOfDomain[vid] = (*geomvector)[i]->GetVertex(j);
382 EndOfDomain.erase(vid);
387 ASSERTL1(EndOfDomain.size() == 2,
"Did not find two ends of domain");
391 for(regIt = EndOfDomain.begin(); regIt != EndOfDomain.end(); ++regIt)
393 if(GeometryToRegionsMap.count(regIt->first) != 0)
396 ASSERTL1(iter != GeometryToRegionsMap.end(),
"Failied to find GeometryToRegionMap");
397 int regionId = iter->second;
398 SpatialDomains::BoundaryRegionCollection::const_iterator bregionsIter = bregions.find(regionId);
399 ASSERTL1(bregionsIter != bregions.end(),
"Failed to find boundary region");
401 returnval->AddBoundaryRegions (regionId,breg);
403 SpatialDomains::BoundaryConditionCollection::const_iterator bconditionsIter = bconditions.find(regionId);
404 ASSERTL1(bconditionsIter != bconditions.end(),
"Failed to find boundary collection");
406 returnval->AddBoundaryConditions(regionId,bcond);
414 gvec->push_back(regIt->second);
415 (*breg)[regIt->first] = gvec;
417 returnval->AddBoundaryRegions(bregions.size()+numNewBc,breg);
423 (*bCondition)[variable] = notDefinedCondition;
425 returnval->AddBoundaryConditions(bregions.size()+numNewBc,bCondition);
446 const std::string &variable,
447 bool SetToOneSpaceDimension):
448 ExpList1D(pSession,graph1D,domain, true,variable,SetToOneSpaceDimension),
449 m_bndCondExpansions(),
468 m_bndCondExpansions(In.m_bndCondExpansions),
469 m_bndConditions(In.m_bndConditions),
470 m_globalBndMat(In.m_globalBndMat),
472 m_traceMap(In.m_traceMap),
473 m_boundaryVerts(In.m_boundaryVerts),
474 m_periodicVerts(In.m_periodicVerts),
475 m_periodicFwdCopy(In.m_periodicFwdCopy),
476 m_periodicBwdCopy(In.m_periodicBwdCopy),
477 m_leftAdjacentVerts(In.m_leftAdjacentVerts)
511 const std::string variable)
519 SpatialDomains::BoundaryRegionCollection::const_iterator it;
522 for (it = bregions.begin(); it != bregions.end(); ++it)
526 if (boundaryCondition->GetBoundaryConditionType() !=
530 for (bregionIt = it->second->begin();
531 bregionIt != it->second->end(); bregionIt++)
533 cnt += bregionIt->second->size();
560 const std::string variable)
568 = boost::dynamic_pointer_cast<
570 SpatialDomains::BoundaryRegionCollection::const_iterator it;
575 int i, region1ID, region2ID;
579 map<int,int> BregionToVertMap;
583 for (it = bregions.begin(); it != bregions.end(); ++it)
587 if (locBCond->GetBoundaryConditionType()
593 int id = (*(it->second->begin()->second))[0]->GetGlobalID();
595 BregionToVertMap[it->first] = id;
601 int n = vComm->GetSize();
602 int p = vComm->GetRank();
605 nregions[p] = BregionToVertMap.size();
612 for (i = 1; i < n; ++i)
614 regOffset[i] = regOffset[i-1] + nregions[i-1];
619 for(i = regOffset[p], iit = BregionToVertMap.begin();
620 iit != BregionToVertMap.end(); ++iit, ++i)
622 bregid [i] = iit->first;
623 bregmap[i] = iit->second;
624 islocal.insert(iit->first);
630 for (
int i = 0; i < totRegions; ++i)
632 BregionToVertMap[bregid[i]] = bregmap[i];
636 for (it = bregions.begin(); it != bregions.end(); ++it)
640 if (locBCond->GetBoundaryConditionType()
647 region1ID = it->first;
648 region2ID = boost::static_pointer_cast<
650 locBCond)->m_connectedBoundaryRegion;
652 ASSERTL0(BregionToVertMap.count(region1ID) != 0,
653 "Cannot determine vertex of region1ID");
655 ASSERTL0(BregionToVertMap.count(region2ID) != 0,
656 "Cannot determine vertex of region2ID");
660 islocal.count(region2ID) != 0);
682 const std::string variable,
695 SpatialDomains::BoundaryRegionCollection::const_iterator it;
703 for (it = bregions.begin(); it != bregions.end(); ++it)
706 bconditions, it->first, variable);
708 if (locBCond->GetBoundaryConditionType() ==
713 for (bregionIt = it->second->begin();
714 bregionIt != it->second->end(); bregionIt++)
716 for (k = 0; k < bregionIt->second->size(); k++)
718 if ((vert = boost::dynamic_pointer_cast
720 (*bregionIt->second)[k])))
725 bndCondExpansions[cnt] = locPointExp;
726 bndConditions[cnt++] = locBCond;
731 "dynamic cast to a vertex failed");
739 for (it = bregions.begin(); it != bregions.end(); ++it)
743 switch(locBCond->GetBoundaryConditionType())
750 for (bregionIt = it->second->begin();
751 bregionIt != it->second->end(); bregionIt++)
753 for (k = 0; k < bregionIt->second->size(); k++)
755 if((vert = boost::dynamic_pointer_cast
757 (*bregionIt->second)[k])))
762 bndCondExpansions[cnt] = locPointExp;
763 bndConditions[cnt++] = locBCond;
768 "dynamic cast to a vertex failed");
778 ASSERTL0(
false,
"This type of BC not implemented yet");
791 "Routine currently only tested for HybridDGHelmholtz");
794 "Full matrix global systems are not supported for HDG "
799 "The local to global map is not set up for the requested "
808 (*m_globalBndMat)[mkey] = glo_matrix;
812 glo_matrix = matrixIter->second;
831 for(
int v = 0; v < 2; ++v)
837 if(vertExp->GetLeftAdjacentElementExp()->GetGeom()->GetGlobalID() != (*m_exp)[i]->GetGeom()->GetGlobalID())
923 for (cnt = n = 0; n < nElements; ++n)
930 Basis = (*m_exp)[n]->GetBasis(0);
932 for(v = 0; v < 2; ++v, ++cnt)
934 int offset =
m_trace->GetPhys_Offset(elmtToTrace[n][v]->GetElmtId());
938 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
943 (*m_exp)[n]->GetVertexPhysVals(v, field + phys_offset,
967 "Method not set up for non-zero Neumann "
968 "boundary condition");
983 "Method not set up for this boundary condition.");
1026 int n,p,offset,phys_offset;
1029 "input array is of insufficient length");
1031 for (n = 0; n < nexp; ++n)
1035 for (p = 0; p < (*m_exp)[n]->GetNverts(); ++p)
1037 offset =
m_trace->GetPhys_Offset(
1038 (
m_traceMap->GetElmtToTrace())[n][p]->GetElmtId());
1039 (*m_exp)[n]->GetVertexPhysVals(p, inarray + phys_offset,
1049 int n,offset, t_offset;
1062 Basis = (*m_exp)[n]->GetBasis(0);
1065 int e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1072 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1073 if(negatedFluxNormal[2*n])
1075 outarray[offset] -= Fn[t_offset];
1079 outarray[offset] += Fn[t_offset];
1082 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1084 if(negatedFluxNormal[2*n+1])
1086 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] -= Fn[t_offset];
1090 outarray[offset+(*m_exp)[n]->GetVertexMap(1)] += Fn[t_offset];
1110 for(p = 0; p < 2; ++p)
1113 for (
int i=0; i<((*m_exp)[n]->
1114 GetVertexNormal(p)).num_elements(); i++)
1116 vertnorm += ((*m_exp)[n]->GetVertexNormal(p))[i][0];
1117 coords[0] = vertnorm ;
1120 t_offset =
GetTrace()->GetPhys_Offset(n+p);
1122 if (vertnorm >= 0.0)
1124 m_Ixm = BASE->GetI(coords);
1127 for (j = 0; j < e_ncoeffs; j++)
1129 outarray[offset + j] +=
1130 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1136 m_Ixm = BASE->GetI(coords);
1138 for (j = 0; j < e_ncoeffs; j++)
1140 outarray[offset + j] -=
1141 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1148 static int sav_ncoeffs = 0;
1149 if(!m_Ixm.get() || e_ncoeffs != sav_ncoeffs)
1162 m_Ixm = BASE->GetI(coords);
1165 m_Ixp = BASE->GetI(coords);
1167 sav_ncoeffs = e_ncoeffs;
1170 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][0]->GetElmtId());
1171 if(negatedFluxNormal[2*n])
1173 for (j = 0; j < e_ncoeffs; j++)
1175 outarray[offset + j] -=
1176 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1181 for (j = 0; j < e_ncoeffs; j++)
1183 outarray[offset + j] +=
1184 (m_Ixm->GetPtr())[j] * Fn[t_offset];
1188 t_offset =
GetTrace()->GetCoeff_Offset(elmtToTrace[n][1]->GetElmtId());
1189 if (negatedFluxNormal[2*n+1])
1191 for (j = 0; j < e_ncoeffs; j++)
1193 outarray[offset + j] -=
1194 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1199 for (j = 0; j < e_ncoeffs; j++)
1201 outarray[offset + j] +=
1202 (m_Ixp->GetPtr())[j] * Fn[t_offset];
1234 int GloBndDofs =
m_traceMap->GetNumGlobalBndCoeffs();
1235 int NumDirBCs =
m_traceMap->GetNumLocalDirBndCoeffs();
1256 int LocBndCoeffs =
m_traceMap->GetNumLocalBndCoeffs();
1264 for (cnt = n = 0; n < nexp; ++n)
1266 nbndry = (*m_exp)[n]->NumDGBndryCoeffs();
1268 e_ncoeffs = (*m_exp)[n]->GetNcoeffs();
1270 e_l = loc_lambda + cnt;
1275 Floc =
Transpose(*(HDGLamToU->GetBlock(n,n)))*ElmtFce;
1290 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1295 id =
m_traceMap->GetBndCondCoeffsToGlobalCoeffsMap(i);
1303 if (GloBndDofs - NumDirBCs > 0)
1324 m_traceMap->GlobalToLocalBnd(BndSol,loc_lambda);
1327 out = (*InvHDGHelm)*F + (*HDGLamToU)*LocLambda;
1341 const std::string varName,
1368 (boost::static_pointer_cast<SpatialDomains
1370 ->m_dirichletCondition).Evaluate(x0[0],x1[0],x2[0],time));
1377 (boost::static_pointer_cast<SpatialDomains
1379 ->m_neumannCondition).Evaluate(x0[0],x1[0],x2[0],time));
1385 (boost::static_pointer_cast<SpatialDomains
1387 ->m_robinFunction).Evaluate(x0[0],x1[0],x2[0],time));
1390 (boost::static_pointer_cast<SpatialDomains
1392 ->m_robinPrimitiveCoeff).Evaluate(x0[0],x1[0],x2[0],time));
1401 ASSERTL0(
false,
"This type of BC not implemented yet");
1412 map<int, int> VertGID;
1418 if (ElmtID.num_elements() != nbcs)
1424 fill(ElmtID.get(), ElmtID.get()+nbcs, -1);
1427 if (VertID.num_elements() != nbcs)
1436 VertGID[Vid] = cnt++;
1444 for(i = 0; i < exp->GetNverts(); ++i)
1446 id = exp->GetGeom()->GetVid(i);
1448 if (VertGID.count(
id) > 0)
1450 bid = VertGID.find(
id)->second;
1451 ASSERTL1(ElmtID[bid] == -1,
"Edge already set");
1459 ASSERTL1(cnt == nbcs,
"Failed to visit all boundary condtiions");
1463 boost::shared_ptr<ExpList> &result)
1466 int offsetOld, offsetNew;
1468 std::vector<unsigned int> eIDs;
1474 for (cnt = n = 0; n < i; ++n)
1482 eIDs.push_back(ElmtID[cnt+n]);
1490 for (n = 0; n < result->GetExpSize(); ++n)
1492 nq =
GetExp(ElmtID[cnt+n])->GetTotPoints();
1494 offsetNew = result->GetPhys_Offset(n);
1496 tmp2 = result->UpdatePhys()+ offsetNew, 1);
1498 nq =
GetExp(ElmtID[cnt+n])->GetNcoeffs();
1500 offsetNew = result->GetCoeff_Offset(n);
1502 tmp2 = result->UpdateCoeffs()+ offsetNew, 1);
1537 map<int, RobinBCInfoSharedPtr> returnval;
1556 VertID[i],Array_tmp = locExpList->GetPhys());
1561 if(returnval.count(elmtid) != 0)
1563 rInfo->next = returnval.find(elmtid)->second;
1565 returnval[elmtid] = rInfo;
GlobalSysSolnType GetGlobalSysSolnType() const
Return the associated solution type.
const DNekScalBlkMatSharedPtr & GetBlockMatrix(const GlobalMatrixKey &gkey)
const Array< OneD, const NekDouble > & GetCoeffs() const
This function returns (a reference to) the array (implemented as m_coeffs) containing all local expa...
#define ASSERTL0(condition, msg)
virtual void v_Reset()
Reset geometry information, metrics, matrix managers and geometry information.
int GetCoeff_Offset(int n) const
Get the start offset position for a global list of m_coeffs correspoinding to element n...
virtual void v_EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble x2_in=NekConstants::kNekUnsetDouble, const NekDouble x3_in=NekConstants::kNekUnsetDouble)
Evaluate all boundary conditions at a given time..
static ExpListSharedPtr NullExpListSharedPtr
void EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble=NekConstants::kNekUnsetDouble, const NekDouble=NekConstants::kNekUnsetDouble)
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
virtual void v_AddTraceIntegral(const Array< OneD, const NekDouble > &Fn, Array< OneD, NekDouble > &outarray)
bool isLocal
Flag specifying if this entity is local to this partition.
int GetPhys_Offset(int n) const
Get the start offset position for a global list of m_phys correspoinding to element n...
const BoundaryConditionCollection & GetBoundaryConditions(void) const
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
Array< OneD, SpatialDomains::BoundaryConditionShPtr > m_bndConditions
An array which contains the information about the boundary condition on the different boundary region...
boost::shared_ptr< RobinBCInfo > RobinBCInfoSharedPtr
virtual map< int, RobinBCInfoSharedPtr > v_GetRobinBCInfo()
void FindPeriodicVertices(const SpatialDomains::BoundaryConditions &bcs, const std::string variable)
Generate a associative map of periodic vertices in a mesh.
const boost::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
Lagrange Polynomials using the Gauss points .
SpatialDomains::BoundaryConditionsSharedPtr GetDomainBCs(const SpatialDomains::CompositeMap &domain, const SpatialDomains::BoundaryConditions &Allbcs, const std::string &variable)
vector< int > m_periodicFwdCopy
A vector indicating degress of freedom which need to be copied from forwards to backwards space in ca...
std::map< ConstFactorType, NekDouble > ConstFactorMap
void SetUpDG(const std::string &variable)
void GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID)
Array< OneD, NekDouble > m_phys
The global expansion evaluated at the quadrature points.
void ApplyGeomInfo()
Apply geometry information to each expansion.
boost::shared_ptr< DNekMat > DNekMatSharedPtr
int GetExpSize(void)
This function returns the number of elements in the expansion.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
boost::shared_ptr< Expansion0D > Expansion0DSharedPtr
boost::shared_ptr< GlobalLinSys > GenGlobalBndLinSys(const GlobalLinSysKey &mkey, const AssemblyMapSharedPtr &locToGloMap)
Generate a GlobalLinSys from information provided by the key "mkey" and the mapping provided in LocTo...
void SetAdjacentElementExp(int vertex, Expansion1DSharedPtr &v)
1D Gauss-Gauss-Legendre quadrature points
virtual void v_GetFwdBwdTracePhys(Array< OneD, NekDouble > &Fwd, Array< OneD, NekDouble > &Bwd)
BasisManagerT & BasisManager(void)
GlobalLinSysSharedPtr GetGlobalBndLinSys(const GlobalLinSysKey &mkey)
For a given key, returns the associated global linear system.
Array< OneD, int > m_coeff_offset
Offset of elemental data into the array m_coeffs.
void SetBoundaryConditionExpansion(const SpatialDomains::MeshGraphSharedPtr &graph1D, const SpatialDomains::BoundaryConditions &bcs, const std::string variable, Array< OneD, MultiRegions::ExpListSharedPtr > &bndCondExpansions, Array< OneD, SpatialDomains::BoundaryConditionShPtr > &bndConditions)
Populates the list of boundary condition expansions.
Base class for all multi-elemental spectral/hp expansions.
boost::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
The base class for all shapes.
boost::shared_ptr< ExpList > & GetTrace()
virtual void v_ExtractTracePhys(Array< OneD, NekDouble > &outarray)
boost::shared_ptr< LocalRegions::ExpansionVector > m_exp
The list of local expansions.
virtual void v_GetBndElmtExpansion(int i, boost::shared_ptr< ExpList > &result)
DisContField1D()
Default constructor.
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
virtual ~DisContField1D()
Destructor.
vector< int > m_periodicBwdCopy
int id
Geometry ID of entity.
bool m_physState
The state of the array m_phys.
int m_ncoeffs
The total number of local degrees of freedom. m_ncoeffs .
std::map< int, Composite >::const_iterator CompositeMapConstIter
std::map< int, BoundaryRegionShPtr > BoundaryRegionCollection
boost::shared_ptr< DNekScalBlkMat > DNekScalBlkMatSharedPtr
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
This class is the abstraction of a global discontinuous two- dimensional spectral/hp element expansio...
NekMatrix< InnerMatrixType, BlockMatrixTag > Transpose(NekMatrix< InnerMatrixType, BlockMatrixTag > &rhs)
SpatialDomains::MeshGraphSharedPtr m_graph
Mesh associated with this expansion list.
void GenerateBoundaryConditionExpansion(const SpatialDomains::MeshGraphSharedPtr &graph1D, const SpatialDomains::BoundaryConditions &bcs, const std::string variable)
Discretises the boundary conditions.
LibUtilities::SessionReaderSharedPtr m_session
Session.
AssemblyMapDGSharedPtr m_traceMap
Local to global DG mapping for trace space.
Defines a specification for a set of points.
void Neg(int n, T *x, const int incx)
Negate x = -x.
boost::shared_ptr< Expansion > ExpansionSharedPtr
std::map< int, BoundaryConditionMapShPtr > BoundaryConditionCollection
boost::shared_ptr< GeometryVector > Composite
virtual void v_HelmSolve(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const FlagList &flags, const StdRegions::ConstFactorMap &factors, const StdRegions::VarCoeffMap &varcoeff, const Array< OneD, const NekDouble > &dirForcing)
Solve the Helmholtz equation.
static const NekDouble kNekUnsetDouble
Describe a linear system.
vector< bool > m_negatedFluxNormal
std::map< int, Composite > CompositeMap
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
Describes a matrix with ordering defined by a local to global map.
const Array< OneD, const NekDouble > & GetPhys() const
This function returns (a reference to) the array (implemented as m_phys) containing the function ev...
bool IsLeftAdjacentVertex(const int n, const int e)
GlobalLinSysMapShPtr m_globalBndMat
Global boundary matrix.
boost::shared_ptr< ExpList0D > ExpList0DSharedPtr
Shared pointer to an ExpList0D object.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
static AssemblyMapSharedPtr NullAssemblyMapSharedPtr
boost::shared_ptr< BoundaryConditionMap > BoundaryConditionMapShPtr
vector< bool > & GetNegatedFluxNormal(void)
Array< OneD, MultiRegions::ExpListSharedPtr > m_bndCondExpansions
Discretised boundary conditions.
virtual void v_Reset()
Reset this field, so that geometry information can be updated.
#define ASSERTL2(condition, msg)
Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed t...
NekDouble GetCoeff(int i)
Get the i th value (coefficient) of m_coeffs.
boost::shared_ptr< MeshGraph1D > MeshGraph1DSharedPtr
std::set< int > m_boundaryVerts
A set storing the global IDs of any boundary edges.
boost::shared_ptr< BoundaryConditions > BoundaryConditionsSharedPtr
void IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, CoeffState coeffstate=eLocal)
This class is the abstraction of a one-dimensional multi-elemental expansions which is merely a colle...
ExpListSharedPtr m_trace
Trace space storage for points between elements.
static SpatialDomains::BoundaryConditionShPtr GetBoundaryCondition(const SpatialDomains::BoundaryConditionCollection &collection, unsigned int index, const std::string &variable)
boost::shared_ptr< GlobalLinSys > GlobalLinSysSharedPtr
Pointer to a GlobalLinSys object.
const BoundaryRegionCollection & GetBoundaryRegions(void) const
boost::shared_ptr< BoundaryConditionBase > BoundaryConditionShPtr
boost::shared_ptr< Basis > BasisSharedPtr
PeriodicMap m_periodicVerts
A map which identifies groups of periodic vertices.
T Vsum(int n, const T *x, const int incx)
Subtract return sum(x)
void Zero(int n, T *x, const int incx)
Zero vector.
vector< bool > m_leftAdjacentVerts
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
boost::shared_ptr< Expansion1D > Expansion1DSharedPtr
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
boost::shared_ptr< BoundaryRegion > BoundaryRegionShPtr
Describes the specification for a Basis.
boost::shared_ptr< PointGeom > PointGeomSharedPtr
virtual void v_GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &VertID)