SPHinXsys  alpha version
Classes | Namespaces | Typedefs | Functions
base_mesh.h File Reference

This is the base classes of mesh, which is used to describe ordered and indexed data sets. Depending on application, there are different data saved on the mesh. The intersection points of mesh lines are called grid points, the element enclosed by mesh lines (2D) or faces (3D) called cells. The mesh line or face are also called cell faces. Grid points are also called cell corners. More...

#include "base_data_package.h"
#include "sph_data_containers.h"
#include "my_memory_pool.h"
#include <fstream>
#include <algorithm>
#include <mutex>
#include <functional>

Go to the source code of this file.

Classes

class  SPH::BaseMesh
 Base class for all structured meshes which may be grid or cell based. The basic properties of the mesh, such as lower bound, grid spacing and number of grid points may be determined by the derived class. Note that there is no mesh-based data defined here. More...
 
class  SPH::Mesh
 Abstract base class for cell-based mesh by introducing number of cells, buffer width and mesh-based data in its derived classes. Note that we identify the difference between grid spacing and data spacing. The latter is different from grid spacing when MeshWithDataPackage is considered. More...
 
class  SPH::BaseMeshField
 Abstract base class for the field data saved on a mesh. More...
 
class  SPH::RefinedMesh< CoarseMeshType >
 Abstract base class derived from the coarse mesh but has double resolution. Currently, the design is simple but can be extending for more inter-mesh operations. More...
 
class  SPH::MultilevelMesh< MeshFieldType, CoarsestMeshType, RefinedMeshType >
 Multi-level Meshes with successively double the resolution. More...
 

Namespaces

 SPH
 

Typedefs

typedef std::function< void(const Vecu &, Real)> SPH::MeshFunctor
 

Functions

void SPH::MeshIterator (const Vecu &index_begin, const Vecu &index_end, MeshFunctor &mesh_functor, Real dt)
 
void SPH::MeshIterator_parallel (const Vecu &index_begin, const Vecu &index_end, MeshFunctor &mesh_functor, Real dt)
 

Detailed Description

This is the base classes of mesh, which is used to describe ordered and indexed data sets. Depending on application, there are different data saved on the mesh. The intersection points of mesh lines are called grid points, the element enclosed by mesh lines (2D) or faces (3D) called cells. The mesh line or face are also called cell faces. Grid points are also called cell corners.

Author
Chi Zhang and Xiangyu Hu