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

Classes

class  AffineTransformation
 
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  ParticleTrajectories
 Helper class for easily visualizing particle trajectories using GLVis. More...
 
class  PDEFilter
 
class  PLapDistanceSolver
 
class  PProductCoefficient
 
class  PUMPLaplacian
 
class  RT_FESpace
 
class  RT_ParFESpace
 
class  ScreenedPoisson
 
class  SpiralTransformation
 

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 Add3DPoint (const Vector &center, Mesh &m, real_t scale=2e-3)
 Add a point to a given Mesh, represented as a hex sized scale.
 
void Add2DPoint (const Vector &center, Mesh &m, real_t scale=2e-3)
 Add a point to a given Mesh, represented as a quad sized scale.
 
void VisualizeParticles (socketstream &sock, const char *vishost, int visport, const ParticleSet &pset, const Vector &scalar_field, real_t psize, const char *title, int x=0, int y=0, int w=400, int h=400, const char *keys=nullptr)
 Plot particles in ParticleSet pset, represented as quads/hexes of size psize and colored by scalar_field .
 
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 VisualizeMesh (socketstream &sock, const char *vishost, int visport, Mesh &mesh, MPI_Comm comm, const char *title, int x=0, int y=0, int w=400, int h=400, const char *keys=NULL)
 Visualize a serial mesh constructed on each rank.
 
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)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, const GridFunction &gf, MPI_Comm comm, const char *title, int x=0, int y=0, int w=400, int h=400, const char *keys=NULL, bool vec=false)
 Visualize a serial gridfunction constructed on each rank.
 

Function Documentation

◆ Add2DPoint()

void mfem::common::Add2DPoint ( const Vector & center,
Mesh & m,
real_t scale )

Add a point to a given Mesh, represented as a quad sized scale.

Definition at line 69 of file particles_extras.cpp.

◆ Add3DPoint()

void mfem::common::Add3DPoint ( const Vector & center,
Mesh & m,
real_t scale )

Add a point to a given Mesh, represented as a hex sized scale.

Definition at line 20 of file particles_extras.cpp.

◆ 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 235 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 159 of file mesh_extras.cpp.

◆ VisualizeField() [1/3]

void mfem::common::VisualizeField ( socketstream & sock,
const char * vishost,
int visport,
const GridFunction & gf,
MPI_Comm comm,
const char * title,
int x,
int y,
int w,
int h,
const char * keys,
bool vec )

Visualize a serial gridfunction constructed on each rank.

Definition at line 394 of file pfem_extras.cpp.

◆ VisualizeField() [2/3]

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 344 of file pfem_extras.cpp.

◆ VisualizeField() [3/3]

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/3]

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/3]

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

Visualize a serial mesh constructed on each rank.

Definition at line 305 of file pfem_extras.cpp.

◆ VisualizeMesh() [3/3]

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 259 of file pfem_extras.cpp.

◆ VisualizeParticles()

void mfem::common::VisualizeParticles ( socketstream & sock,
const char * vishost,
int visport,
const ParticleSet & pset,
const Vector & scalar_field,
real_t psize,
const char * title,
int x,
int y,
int w,
int h,
const char * keys )

Plot particles in ParticleSet pset, represented as quads/hexes of size psize and colored by scalar_field .

Definition at line 111 of file particles_extras.cpp.