|
Classes |
| class | gas_SPHGridCell |
Public Types |
| enum | sphWeight {
POLY6,
SPIKY,
VISCOSITY,
SPIKY2,
SPIKY5,
POLY6_UNSCALED,
SPIKY_UNSCALED
} |
Public Member Functions |
| | GAS_SPH () |
| | ~GAS_SPH () |
| bool | initialize (const GU_Detail *gdp, bool fullinit=true, const GB_PointGroup *excludegroup=NULL, fpreal radiusScale=1.0, bool needVolume=true) |
| fpreal | sampleF (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, fpreal *color=0, bool normalize=false, bool volumeScale=true) |
| fpreal | sampleF (const UT_Vector3 &p, UT_FloatArray &floats, sphWeight wfunc, bool volumescale=true, bool normalize=false) |
| UT_Vector3 | sampleV3 (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, fpreal *color=0, bool normalize=false) |
| UT_Vector3 | sampleVelocity (const UT_Vector3 &p, sphWeight wfunc, int excludePoint=-1) |
| UT_Vector3 | xsphVelocity (int ptnum, sphWeight wfunc, const UT_Vector3Array &velocities, fpreal xsph_constant) |
| fpreal | sampleDensity (const UT_Vector3 &p, sphWeight wfunc, const bool massScale=true) |
| void | sampleDoubleDensity (const UT_Vector3 &p, sphWeight wfunc1, sphWeight wfunc2, fpreal &density1, fpreal &density2, UT_PtrArray< GEO_Point * > &ptlist, const bool massScale=true) |
| fpreal | sampleSurfaceDensity (const UT_Vector3 &p, GEO_AttributeHandle &distance_gah) |
| fpreal | sampleSurfaceDensity (const UT_Vector3 &p, fpreal surfaceDistance, const bool distanceModifier=false) |
| UT_Vector3 | sampleSurfaceDensityGrad (const UT_Vector3 &p, GEO_AttributeHandle &distance_gah) |
| UT_Vector3 | sampleSurfaceDensityGrad (const UT_Vector3 &p) |
| fpreal | sampleColor (const UT_Vector3 &p, sphWeight wfunc) |
| UT_Vector3 | colorGradient (const UT_Vector3 &p, sphWeight wfunc) |
| UT_Vector3 | colorGradientUnscaled (const UT_Vector3 &p, bool scale=false) |
| fpreal | colorLaplacian (const UT_Vector3 &p, sphWeight wfunc, GEO_AttributeHandle *scale_gah=NULL, fpreal point_scale=1.0) |
| UT_Vector3 | gradient (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, UT_Vector3 *color=0, bool debugprint=false, GEO_AttributeHandle *scale_gah=NULL, fpreal point_scale=1.0) |
| UT_Vector3 | gradient (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, int axis, UT_Vector3 *color=0, bool normalize=false) |
| fpreal | laplacian (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, fpreal *color=0) |
| UT_FloatArray | laplacianF (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, int size, fpreal *color=0) |
| UT_Vector3 | laplacianV3 (const UT_Vector3 &p, GEO_AttributeHandle gah, sphWeight wfunc, fpreal *color=0, GEO_AttributeHandle *scale_gah=NULL, fpreal point_scale=1.0) |
| void | findClosePoints (const UT_Vector3 &p, UT_PtrArray< GEO_Point * > &ptlist) |
| int | getMaxElements () const |
| bool | initVelocityData (bool initKD=false) |
| fpreal | getCellWidth () |
| const UT_RefArray< bool > & | excludeLonePoints (bool exclude, int numNeighbours=2) |
Static Public Member Functions |
| static void | missingAttribWarning (SIM_Engine &engine, GAS_SubSolver *solver, const UT_String &objName, const UT_String &geometryName, const UT_String &attribName) |
Protected Types |
typedef UT_RefArray
< gas_SPHGridCell > | gas_CellArray |
Protected Member Functions |
| fpreal64 | weight (fpreal64 r2, fpreal64 h, sphWeight wfunc) |
| fpreal64 | dweight (fpreal64 r, fpreal64 h, sphWeight wfunc) |
| fpreal64 | d2weight (fpreal64 r, fpreal64 h, sphWeight wfunc) |
| fpreal64 | scaleddweight (fpreal64 r, fpreal64 h, sphWeight wfunc) |
| void | assignPoint (const GEO_Point *ppt) |
| gas_SPHGridCell * | getCell (const UT_Vector3 &p, bool create=false) |
| gas_SPHGridCell * | getCell (int i, int j, int k, bool create=false) |
Protected Attributes |
| int | myMaxCells |
| int | myMaxCells2 |
| fpreal | myXmin |
| fpreal | myYmin |
| fpreal | myZmin |
| fpreal | myCellWidth |
| fpreal | myCellWidth2 |
| int | myMaxElements |
| const GU_Detail * | myGdp |
| UT_HashTable * | myGridSet |
| gas_CellArray | myCellArray |
| bool | myFullInit |
| GEO_AttributeHandle | myRadGah |
| GEO_AttributeHandle | myMassGah |
| GEO_AttributeHandle | myDensityGah |
| UT_FloatArray | myMasses |
| UT_FloatArray | myDensities |
| UT_FloatArray | myRadii |
| UT_Vector3Array | myVelocities |
| GEO_PointTree * | myPointTree |
| fpreal | myRadiusScale |
| UT_RefArray< bool > | myExcludePoint |