#include <GAS_SeedParticles.h>

Public Member Functions | |
| GET_DATA_FUNC_S (GAS_NAME_SURFACE, SurfaceName) | |
| GET_DATA_FUNC_S (GAS_NAME_GEOMETRY, GeometryName) | |
| GETSET_DATA_FUNCS_I ("particlepervoxel", ParticlePerVoxel) | |
| GETSET_DATA_FUNCS_F ("particlesize", ParticleSize) | |
Protected Member Functions | |
| GAS_SeedParticles (const SIM_DataFactory *factory) | |
| virtual | ~GAS_SeedParticles () |
| virtual bool | solveGasSubclass (SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep) |
| void | seedParticles (GU_Detail *gdp, const SIM_ScalarField *surface) |
Definition at line 33 of file GAS_SeedParticles.h.
| GAS_SeedParticles::GAS_SeedParticles | ( | const SIM_DataFactory * | factory | ) | [explicit, protected] |
| virtual GAS_SeedParticles::~GAS_SeedParticles | ( | ) | [protected, virtual] |
| GAS_SeedParticles::GET_DATA_FUNC_S | ( | GAS_NAME_GEOMETRY | , | |
| GeometryName | ||||
| ) |
| GAS_SeedParticles::GET_DATA_FUNC_S | ( | GAS_NAME_SURFACE | , | |
| SurfaceName | ||||
| ) |
| GAS_SeedParticles::GETSET_DATA_FUNCS_F | ( | "particlesize" | , | |
| ParticleSize | ||||
| ) |
| GAS_SeedParticles::GETSET_DATA_FUNCS_I | ( | "particlepervoxel" | , | |
| ParticlePerVoxel | ||||
| ) |
| void GAS_SeedParticles::seedParticles | ( | GU_Detail * | gdp, | |
| const SIM_ScalarField * | surface | |||
| ) | [protected] |
Creates new particles inside the surface with random positions. Ensures they are all at least the particle size away from the surface. Note that particle size is scaled by the voxel size
| virtual bool GAS_SeedParticles::solveGasSubclass | ( | SIM_Engine & | engine, | |
| SIM_Object * | obj, | |||
| SIM_Time | time, | |||
| SIM_Time | timestep | |||
| ) | [protected, virtual] |
Applies this subsolver for a single timestep. Returns true on success
Implements GAS_SubSolver.
1.5.9