MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::common Namespace Reference

Classes

class  DistanceSolver
 
class  DivergenceFreeProjector
 
class  ElementMeshStream
 
class  H1_FESpace
 
class  H1_ParFESpace
 
class  HeatDistanceSolver
 
class  IrrotationalProjector
 
class  KershawTransformation
 
class  L2_ParFESpace
 
class  ND_FESpace
 
class  ND_ParFESpace
 
class  NormalizationDistanceSolver
 
class  NormalizedGradCoefficient
 
class  ParDiscreteCurlOperator
 
class  ParDiscreteDivOperator
 
class  ParDiscreteGradOperator
 
class  ParDiscreteInterpolationOperator
 
class  PDEFilter
 
class  PLapDistanceSolver
 
class  PProductCoefficient
 
class  PUMPLaplacian
 
class  RT_FESpace
 
class  RT_ParFESpace
 
class  ScreenedPoisson
 

Functions

void DiffuseField (ParGridFunction &field, int smooth_steps)
 
real_t AvgElementSize (ParMesh &pmesh)
 
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)
 
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 MergeMeshNodes (Mesh *mesh, int logging)
 Merges vertices which lie at the same location.
 
void AttrToMarker (int max_attr, const Array< int > &attrs, Array< int > &marker)
 Convert a set of attribute numbers to a marker array.
 
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)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, const ParGridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 

Function Documentation

◆ AttrToMarker()

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 216 of file mesh_extras.cpp.

◆ AvgElementSize()

real_t mfem::common::AvgElementSize ( ParMesh & pmesh)

Definition at line 47 of file dist_solver.cpp.

◆ DiffuseField()

void mfem::common::DiffuseField ( ParGridFunction & field,
int smooth_steps )

Definition at line 22 of file dist_solver.cpp.

◆ MergeMeshNodes()

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

Merges vertices which lie at the same location.

Definition at line 140 of file mesh_extras.cpp.

◆ VisualizeField() [1/2]

void mfem::common::VisualizeField ( socketstream & sock,
const char * vishost,
int visport,
const 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 310 of file pfem_extras.cpp.

◆ VisualizeField() [2/2]

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 92 of file fem_extras.cpp.

◆ VisualizeMesh() [1/2]

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.

Definition at line 59 of file fem_extras.cpp.

◆ VisualizeMesh() [2/2]

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.

Definition at line 264 of file pfem_extras.cpp.