Nektar++
|
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <tinyxml.h>
#include <SpatialDomains/MeshGraph.h>
#include <MultiRegions/ExpList.h>
#include <MultiRegions/ExpList2D.h>
#include <LibUtilities/BasicUtils/ParseUtils.hpp>
#include "ExtractCriticalLayerFunctions.h"
Go to the source code of this file.
Classes | |
struct | MoveVerts |
Enumerations | |
enum | SolveType { eSolveX, eSolveY, eSolveXY, eNoSolve } |
Functions | |
void | GetInterfaceVerts (const int compositeID, SpatialDomains::MeshGraphSharedPtr &mesh, vector< int > &InterfaceVerts) |
void | GetStreakLocation (LibUtilities::SessionReaderSharedPtr &vSession, SpatialDomains::MeshGraphSharedPtr &mesh, string &fieldfile, Array< OneD, NekDouble > &xc, Array< OneD, NekDouble > &yc) |
void | GetNewVertexLocation (TiXmlElement *doc, SpatialDomains::MeshGraphSharedPtr &mesh, vector< int > &InterfaceVerts, Array< OneD, NekDouble > &xstreak, Array< OneD, NekDouble > &ystreak, Array< OneD, NekDouble > &vertx, Array< OneD, NekDouble > &verty, int maxiter) |
void | TurnOffEdges (TiXmlElement *doc, SpatialDomains::SegGeomMap &meshedges, Array< OneD, MoveVerts > &verts) |
void | RedefineVertices (TiXmlElement *doc, Array< OneD, NekDouble > &dvertx, Array< OneD, NekDouble > &dverty) |
void | EnforceRotationalSymmetry (SpatialDomains::MeshGraphSharedPtr &mesh, Array< OneD, NekDouble > &dvertx, Array< OneD, NekDouble > &dverty) |
int | main (int argc, char *argv[]) |
enum SolveType |
Enumerator | |
---|---|
eSolveX | |
eSolveY | |
eSolveXY | |
eNoSolve |
Definition at line 48 of file MoveMeshToCriticalLayer.cpp.
void EnforceRotationalSymmetry | ( | SpatialDomains::MeshGraphSharedPtr & | mesh, |
Array< OneD, NekDouble > & | dvertx, | ||
Array< OneD, NekDouble > & | dverty | ||
) |
Definition at line 680 of file MoveMeshToCriticalLayer.cpp.
References Vmath::Vmax().
Referenced by main().
void GetInterfaceVerts | ( | const int | compositeID, |
SpatialDomains::MeshGraphSharedPtr & | mesh, | ||
vector< int > & | InterfaceVerts | ||
) |
Definition at line 158 of file MoveMeshToCriticalLayer.cpp.
Referenced by main().
void GetNewVertexLocation | ( | TiXmlElement * | doc, |
SpatialDomains::MeshGraphSharedPtr & | mesh, | ||
vector< int > & | InterfaceVerts, | ||
Array< OneD, NekDouble > & | xstreak, | ||
Array< OneD, NekDouble > & | ystreak, | ||
Array< OneD, NekDouble > & | vertx, | ||
Array< OneD, NekDouble > & | verty, | ||
int | maxiter | ||
) |
Definition at line 219 of file MoveMeshToCriticalLayer.cpp.
References ASSERTL0, Nektar::SpatialDomains::PointGeom::dist(), eNoSolve, eSolveX, eSolveXY, eSolveY, Nektar::iterator, and TurnOffEdges().
Referenced by main().
void GetStreakLocation | ( | LibUtilities::SessionReaderSharedPtr & | vSession, |
SpatialDomains::MeshGraphSharedPtr & | mesh, | ||
string & | fieldfile, | ||
Array< OneD, NekDouble > & | xc, | ||
Array< OneD, NekDouble > & | yc | ||
) |
Definition at line 181 of file MoveMeshToCriticalLayer.cpp.
References Computestreakpositions(), and Nektar::LibUtilities::Import().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 92 of file MoveMeshToCriticalLayer.cpp.
References EnforceRotationalSymmetry(), GetInterfaceVerts(), GetNewVertexLocation(), GetStreakLocation(), and RedefineVertices().
void RedefineVertices | ( | TiXmlElement * | doc, |
Array< OneD, NekDouble > & | dvertx, | ||
Array< OneD, NekDouble > & | dverty | ||
) |
Error value returned by TinyXML.
Definition at line 603 of file MoveMeshToCriticalLayer.cpp.
References ASSERTL0.
Referenced by main().
void TurnOffEdges | ( | TiXmlElement * | doc, |
SpatialDomains::SegGeomMap & | meshedges, | ||
Array< OneD, MoveVerts > & | verts | ||
) |
All elements are of the form: "<C ID = "N"> ... </C>". Read the ID field first.
Parse out the element components corresponding to type of element.
Keep looking
Definition at line 459 of file MoveMeshToCriticalLayer.cpp.
References ASSERTL0, ErrorUtil::efatal, eNoSolve, eSolveX, eSolveY, Nektar::iterator, and NEKERROR.
Referenced by GetNewVertexLocation().