SPHinXsys  alpha version
Public Member Functions | Protected Attributes | List of all members
SPH::ThickSurfaceParticleGeneratorLattice Class Reference

Generate thick surface particles from lattice positions for a thin structure defined by a body shape. More...

#include <particle_generator_lattice.h>

Inherits SPH::BaseParticleGeneratorLattice, and SPH::SurfaceParticleGenerator.

Public Member Functions

 ThickSurfaceParticleGeneratorLattice (SPHBody &sph_body, Real global_avg_thickness)
 
virtual void initializeGeometricVariables () override
 
- Public Member Functions inherited from SPH::BaseParticleGeneratorLattice
 BaseParticleGeneratorLattice (SPHBody &sph_body)
 
- Public Member Functions inherited from SPH::SurfaceParticleGenerator
 SurfaceParticleGenerator (SPHBody &sph_body)
 
- Public Member Functions inherited from SPH::ParticleGenerator
 ParticleGenerator (SPHBody &sph_body)
 
- Public Member Functions inherited from SPH::BaseParticleGenerator
 BaseParticleGenerator (SPHBody &sph_body)
 

Protected Attributes

Real total_volume_
 
Real global_avg_thickness_
 
Real particle_spacing_
 
Real avg_particle_volume_
 
size_t number_of_cells_
 
size_t planned_number_of_particles_
 
- Protected Attributes inherited from SPH::BaseParticleGeneratorLattice
Real lattice_spacing_
 
BoundingBox domain_bounds_
 
Shapebody_shape_
 
- Protected Attributes inherited from SPH::SurfaceParticleGenerator
StdLargeVec< Vecd > & n_
 
StdLargeVec< Real > & thickness_
 
- Protected Attributes inherited from SPH::ParticleGenerator
StdLargeVec< Real > & Vol_
 
- Protected Attributes inherited from SPH::BaseParticleGenerator
BaseParticlesbase_particles_
 
StdLargeVec< Vecd > & pos_
 
StdLargeVec< size_t > & unsorted_id_
 

Additional Inherited Members

- Protected Member Functions inherited from SPH::SurfaceParticleGenerator
virtual void initializeSurfaceProperties (const Vecd &surface_normal, Real thickness)
 
- Protected Member Functions inherited from SPH::ParticleGenerator
virtual void initializePositionAndVolumetricMeasure (const Vecd &position, Real volumetric_measure)
 
- Protected Member Functions inherited from SPH::BaseParticleGenerator
virtual void initializePosition (const Vecd &position)
 

Detailed Description

Generate thick surface particles from lattice positions for a thin structure defined by a body shape.

Here, a thick surface is defined as that the thickness is equal or larger than the proposed particle spacing. Note that, this class should not be used for generating the thin surface particles, which may be better generated from a geometric surfce directly.

Member Data Documentation

◆ global_avg_thickness_

Real SPH::ThickSurfaceParticleGeneratorLattice::global_avg_thickness_
protected

Calculated from level set.


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