MFEM  v4.2.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Functions
mfem::common Namespace Reference

Classes

class  H1_FESpace
 
class  ND_FESpace
 
class  RT_FESpace
 
class  ElementMeshStream
 
class  H1_ParFESpace
 
class  ND_ParFESpace
 
class  RT_ParFESpace
 
class  L2_ParFESpace
 
class  ParDiscreteInterpolationOperator
 
class  ParDiscreteGradOperator
 
class  ParDiscreteCurlOperator
 
class  ParDiscreteDivOperator
 
class  IrrotationalProjector
 
class  DivergenceFreeProjector
 

Functions

void VisualizeMesh (socketstream &sock, const char *vishost, int visport, Mesh &mesh, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, GridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 
void VisualizeMesh (socketstream &sock, const char *vishost, int visport, Mesh &mesh, const char *title, int x=0, int y=0, int w=400, int h=400, const char *keys=NULL)
 
void MergeMeshNodes (Mesh *mesh, int logging)
 Merges vertices which lie at the same location. More...
 
void AttrToMarker (int max_attr, const Array< int > &attrs, Array< int > &marker)
 Convert a set of attribute numbers to a marker array. More...
 
void VisualizeMesh (socketstream &sock, const char *vishost, int visport, ParMesh &pmesh, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, ParGridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 
void VisualizeMesh (socketstream &sock, const char *vishost, int visport, ParMesh &pmesh, const char *title, int x=0, int y=0, int w=400, int h=400, const char *keys=NULL)
 

Function Documentation

void mfem::common::AttrToMarker ( int  max_attr,
const Array< int > &  attrs,
Array< int > &  marker 
)

Convert a set of attribute numbers to a marker array.

The marker array will be of size max_attr and it will contain only zeroes and ones. Ones indicate which attribute numbers are present in the attrs array. In the special case when attrs has a single entry equal to -1 the marker array will contain all ones.

Definition at line 196 of file mesh_extras.cpp.

void mfem::common::MergeMeshNodes ( Mesh *  mesh,
int  logging 
)

Merges vertices which lie at the same location.

Definition at line 120 of file mesh_extras.cpp.

void mfem::common::VisualizeField ( socketstream &  sock,
const char *  vishost,
int  visport,
GridFunction &  gf,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL,
bool  vec = false 
)

Visualize the given grid function, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 94 of file fem_extras.cpp.

void mfem::common::VisualizeField ( socketstream &  sock,
const char *  vishost,
int  visport,
ParGridFunction &  gf,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL,
bool  vec = false 
)

Visualize the given parallel grid function, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 312 of file pfem_extras.cpp.

void mfem::common::VisualizeMesh ( socketstream &  sock,
const char *  vishost,
int  visport,
Mesh &  mesh,
const char *  title,
int  x,
int  y,
int  w,
int  h,
const char *  keys,
bool  vec 
)

Definition at line 59 of file fem_extras.cpp.

void mfem::common::VisualizeMesh ( socketstream &  sock,
const char *  vishost,
int  visport,
Mesh &  mesh,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL 
)

Visualize the given mesh object, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

void mfem::common::VisualizeMesh ( socketstream &  sock,
const char *  vishost,
int  visport,
ParMesh &  pmesh,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL 
)

Visualize the given parallel mesh object, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

void mfem::common::VisualizeMesh ( socketstream &  sock,
const char *  vishost,
int  visport,
ParMesh &  pmesh,
const char *  title,
int  x,
int  y,
int  w,
int  h,
const char *  keys,
bool  vec 
)

Definition at line 264 of file pfem_extras.cpp.