MFEM v4.9.0
Finite element discretization library
Loading...
Searching...
No Matches
particles_extras.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  mfem
 
namespace  mfem::common
 

Functions

void mfem::common::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 mfem::common::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 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=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 .