SPHinXsys  alpha version
Public Member Functions | Protected Attributes | List of all members
SPH::MultilevelMesh< MeshFieldType, CoarsestMeshType, RefinedMeshType > Class Template Reference

Multi-level Meshes with successively double the resolution. More...

#include <base_mesh.h>

Inherits MeshFieldType.

Public Member Functions

template<typename... Args>
 MultilevelMesh (BoundingBox tentative_bounds, Real reference_spacing, size_t total_levels, Args &&...args)
 
StdVec< CoarsestMeshType * > getMeshLevels ()
 
void writeMeshFieldToPlt (std::ofstream &output_file) override
 

Protected Attributes

size_t total_levels_
 
StdVec< CoarsestMeshType * > mesh_levels_
 

Detailed Description

template<class MeshFieldType, class CoarsestMeshType, class RefinedMeshType>
class SPH::MultilevelMesh< MeshFieldType, CoarsestMeshType, RefinedMeshType >

Multi-level Meshes with successively double the resolution.

Constructor & Destructor Documentation

◆ MultilevelMesh()

template<class MeshFieldType, class CoarsestMeshType, class RefinedMeshType>
template<typename... Args>
SPH::MultilevelMesh< MeshFieldType, CoarsestMeshType, RefinedMeshType >::MultilevelMesh ( BoundingBox  tentative_bounds,
Real  reference_spacing,
size_t  total_levels,
Args &&...  args 
)
inline

template parameter pack is used with rvalue reference and perfect forwarding to keep the type of arguments when called by another function with template parameter pack too.

all mesh levels aligned at the lower bound of tentative_bounds

Member Data Documentation

◆ total_levels_

template<class MeshFieldType, class CoarsestMeshType, class RefinedMeshType>
size_t SPH::MultilevelMesh< MeshFieldType, CoarsestMeshType, RefinedMeshType >::total_levels_
protected

level 0 is the coarsest


The documentation for this class was generated from the following file: