00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_SeedParticles__
00020 #define __GAS_SeedParticles__
00021
00022 #include "GAS_API.h"
00023
00024 #include <UT/UT_ThreadedAlgorithm.h>
00025 #include <GU/GU_Detail.h>
00026
00027 #include "GAS_SubSolver.h"
00028 #include "GAS_Utils.h"
00029
00030 class GU_Detail;
00031 class SIM_ScalarField;
00032
00033 class GAS_API GAS_SeedParticles : public GAS_SubSolver
00034 {
00035 public:
00036 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00037 GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
00038
00039 GETSET_DATA_FUNCS_I("particlepervoxel", ParticlePerVoxel);
00040 GETSET_DATA_FUNCS_F("particlesize", ParticleSize);
00041
00042 protected:
00043 explicit GAS_SeedParticles(const SIM_DataFactory *factory);
00044 virtual ~GAS_SeedParticles();
00045
00046 virtual bool solveGasSubclass(SIM_Engine &engine,
00047 SIM_Object *obj,
00048 SIM_Time time,
00049 SIM_Time timestep);
00050
00051
00052
00053
00054
00055 void seedParticles(GU_Detail *gdp,
00056 const SIM_ScalarField *surface);
00057
00058 private:
00059 static const SIM_DopDescription *getDopDescription();
00060
00061 DECLARE_STANDARD_GETCASTTOTYPE();
00062 DECLARE_DATAFACTORY(GAS_SeedParticles,
00063 GAS_SubSolver,
00064 "Gas Seed Particles",
00065 getDopDescription());
00066 };
00067
00068 #endif
00069