66    std::set<int> updatedVerts, updatedEdges, updatedFaces;
 
   68    dim = graph->GetSpaceDimension();
 
   72    for (i = 0; i < fields[0]->GetExpSize(); ++i)
 
   75        int offset                           = fields[0]->GetPhys_Offset(i);
 
   76        int nquad                            = exp->GetTotPoints();
 
   80        for (j = 0; j < dim; ++j)
 
   89            exp->GetCoords(coord[0], coord[1]);
 
   92                std::dynamic_pointer_cast<SpatialDomains::Geometry2D>(
 
   95            for (j = 0; j < exp->GetGeom()->GetNumEdges(); ++j)
 
  100                if (updatedEdges.find(edge->GetGlobalID()) !=
 
  107                int nEdgePts = exp->GetTraceNumPoints(j);
 
  118                for (k = 0; k < dim; ++k)
 
  122                    exp->GetTracePhysVals(j, seg, phys[k], edgePhys[k]);
 
  123                    exp->GetTracePhysVals(j, seg, coord[k], edgeCoord[k]);
 
  127                for (k = 0; k < 2; ++k)
 
  129                    int id = edge->GetVid(k);
 
  130                    if (updatedVerts.find(
id) != updatedVerts.end())
 
  138                        (*pt)(0) + edgePhys[0][k * (nEdgePts - 1)],
 
  139                        (*pt)(1) + edgePhys[1][k * (nEdgePts - 1)], (*pt)(2));
 
  141                    updatedVerts.insert(
id);
 
  150                for (k = 0; k < nEdgePts; ++k)
 
  155                                              edgeCoord[0][k] + edgePhys[0][k],
 
  156                                              edgeCoord[1][k] + edgePhys[1][k],
 
  159                    curve->m_points.push_back(vert);
 
  162                curvedEdges[edge->GetGlobalID()] = curve;
 
  163                updatedEdges.insert(edge->GetGlobalID());
 
  168            exp->GetCoords(coord[0], coord[1], coord[2]);
 
  171                std::dynamic_pointer_cast<SpatialDomains::Geometry3D>(
 
  174            for (j = 0; j < exp->GetNtraces(); ++j)
 
  182                if (updatedFaces.find(face->GetGlobalID()) !=
 
  198                         "Deformation requires GLL points in both " 
  199                         "directions on a face.");
 
  218                for (k = 0; k < dim; ++k)
 
  222                    exp3d->GetTracePhysVals(j, faceexp, phys[k], tmp, orient);
 
  223                    exp3d->GetTracePhysVals(j, faceexp, coord[k], newPos[k],
 
  225                    Vmath::Vadd(nq0 * nq1, tmp, 1, newPos[k], 1, newPos[k], 1);
 
  230                int nq = std::max(nq0, nq1);
 
  242                for (k = 0; k < dim; ++k)
 
  246                                           faceexp->GetPointsKeys()[1],
 
  247                                           newPos[k], edgePts, edgePts,
 
  251                int edgeOff[2][4][2] = {
 
  252                    {{0, 1}, {nq - 1, nq}, {nq * (nq - 1), -nq}, {-1, -1}},
 
  256                     {nq * (nq - 1), -nq}}};
 
  258                for (k = 0; k < face->GetNumVerts(); ++k)
 
  261                    int id = face->GetVid(k);
 
  265                    if (updatedVerts.find(
id) == updatedVerts.end())
 
  269                        pt->UpdatePosition(intPos[0][edgeOff[o][k][0]],
 
  270                                           intPos[1][edgeOff[o][k][0]],
 
  271                                           intPos[2][edgeOff[o][k][0]]);
 
  272                        updatedVerts.insert(
id);
 
  276                    id = face->GetEid(k);
 
  277                    if (updatedEdges.find(
id) == updatedEdges.end())
 
  287                        const int offset = edgeOff[o][k][0];
 
  288                        const int pos    = edgeOff[o][k][1];
 
  292                            for (l = nq - 1; l >= 0; --l)
 
  294                                int m = offset + pos * l;
 
  298                                            dim, edge->GetGlobalID(),
 
  299                                            intPos[0][m], intPos[1][m],
 
  301                                curve->m_points.push_back(vert);
 
  306                            for (l = 0; l < nq; ++l)
 
  308                                int m = offset + pos * l;
 
  312                                            dim, edge->GetGlobalID(),
 
  313                                            intPos[0][m], intPos[1][m],
 
  315                                curve->m_points.push_back(vert);
 
  319                        curvedEdges[edge->GetGlobalID()] = curve;
 
  320                        updatedEdges.insert(edge->GetGlobalID());
 
  332                        face->GetGlobalID(), pType);
 
  346                            nq, LibUtilities::eGaussRadauMAlpha1Beta0));
 
  350                    for (k = 0; k < dim; ++k)
 
  355                            faceexp->GetBasis(0)->GetBasisKey(),
 
  356                            faceexp->GetBasis(1)->GetBasisKey(), newPos[k], B0,
 
  367                    for (l = 0; l < nq * (nq + 1) / 2; ++l)
 
  372                                                  newPos[0][l], newPos[1][l],
 
  374                        curve->m_points.push_back(vert);
 
  379                    for (l = 0; l < nq * nq; ++l)
 
  384                                                  intPos[0][l], intPos[1][l],
 
  386                        curve->m_points.push_back(vert);
 
  390                curvedFaces[face->GetGlobalID()] = curve;
 
  391                updatedFaces.insert(face->GetGlobalID());
 
  397    for (i = 0; i < fields.size(); ++i)
 
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Describes the specification for a Basis.
int GetNumPoints() const
Return points order at which basis is defined.
PointsType GetPointsType() const
Return type of quadrature.
Defines a specification for a set of points.
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
void FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
This function performs the Forward transformation from physical space to coefficient space.
void ModalToNodal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
void UpdateGeometry(SpatialDomains::MeshGraphSharedPtr graph, Array< OneD, MultiRegions::ExpListSharedPtr > &fields, Array< OneD, Array< OneD, NekDouble > > &PhysVals, bool modal)
Update geometry according to displacement that is in current fields.
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,...
@ eNodalTriElec
2D Nodal Electrostatic Points on a Triangle
@ eGaussLobattoLegendre
1D Gauss-Lobatto-Legendre quadrature points
@ eOrtho_A
Principle Orthogonal Functions .
@ eOrtho_B
Principle Orthogonal Functions .
@ eModified_A
Principle Modified Functions .
std::shared_ptr< Expansion > ExpansionSharedPtr
std::shared_ptr< Expansion3D > Expansion3DSharedPtr
std::shared_ptr< Curve > CurveSharedPtr
std::unordered_map< int, CurveSharedPtr > CurveMap
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::shared_ptr< PointGeom > PointGeomSharedPtr
std::shared_ptr< Geometry2D > Geometry2DSharedPtr
std::shared_ptr< Geometry1D > Geometry1DSharedPtr
std::shared_ptr< Geometry3D > Geometry3DSharedPtr
std::shared_ptr< StdExpansion2D > StdExpansion2DSharedPtr
std::shared_ptr< StdExpansion1D > StdExpansion1DSharedPtr
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.