20 #ifndef LIBMESH_MESH_SMOOTHER_VSMOOTHER_H 21 #define LIBMESH_MESH_SMOOTHER_VSMOOTHER_H 23 #include "libmesh/libmesh_config.h" 24 #if defined(LIBMESH_ENABLE_VSMOOTHER) 27 #include "libmesh/libmesh_common.h" 28 #include "libmesh/mesh_smoother.h" 29 #include "libmesh/variational_smoother_system.h" 42 class UnstructuredMesh;
73 Real dilation_weight=0.5,
74 const bool preserve_subdomain_boundaries=
true);
94 void smooth(
unsigned int n_iterations);
110 #endif // defined(LIBMESH_ENABLE_VSMOOTHER) 112 #endif // LIBMESH_MESH_SMOOTHER_VSMOOTHER_H const Real _dilation_weight
Smoother control variables.
virtual ~VariationalMeshSmoother()=default
Destructor.
The libMesh namespace provides an interface to certain functionality in the library.
The UnstructuredMesh class is derived from the MeshBase class.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This is an implementation of Larisa Branets' smoothing algorithms.
VariationalMeshSmoother(UnstructuredMesh &mesh, Real dilation_weight=0.5, const bool preserve_subdomain_boundaries=true)
Simple constructor to use for smoothing purposes.
This class provides the necessary interface for mesh smoothing.
const bool _preserve_subdomain_boundaries
Whether subdomain boundaries are subject to change via smoothing.
virtual void smooth() override
Redefinition of the smooth function from the base class.