Blender V2.61 - r43446
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

ControlParticles Class Reference

#include <controlparticles.h>

List of all members.

Public Member Functions

 ControlParticles ()
 ~ControlParticles ()
void prepareControl (LbmFloat simtime, LbmFloat dt, ControlParticles *motion)
void finishControl (std::vector< ControlForces > &forces, LbmFloat iatt, LbmFloat ivel, LbmFloat imaxd)
void calculateKernelWeight ()
void calculateCpInfluenceOpt (ControlParticle *cp, LbmVec fluidpos, LbmVec fluidvel, ControlForces *force, LbmFloat fillFactor)
void calculateMaxdForce (ControlParticle *cp, LbmVec fluidpos, ControlForces *force)
int getSize ()
int getTotalSize ()
ControlParticlegetParticle (int i)
void setInfluenceTangential (LbmFloat set)
void setInfluenceAttraction (LbmFloat set)
void setInfluenceMaxdist (LbmFloat set)
void setInfluenceVelocity (LbmFloat set, LbmFloat dt)
LbmFloat getInfluenceAttraction ()
LbmFloat getInfluenceTangential ()
LbmFloat getInfluenceVelocity ()
LbmFloat getInfluenceMaxdist ()
LbmFloat getCurrTimestep ()
void setRadiusAtt (LbmFloat set)
LbmFloat getRadiusAtt ()
void setRadiusVel (LbmFloat set)
LbmFloat getRadiusVel ()
void setRadiusMaxd (LbmFloat set)
LbmFloat getRadiusMaxd ()
void setRadiusMinMaxd (LbmFloat set)
LbmFloat getRadiusMinMaxd ()
LbmFloat getControlTimStart ()
LbmFloat getControlTimEnd ()
void setCharLength (LbmFloat set)
LbmFloat getCharLength ()
LbmFloat getCharLengthInv ()
void setInitTimeScale (LbmFloat set)
void setInitMirror (string set)
string getInitMirror ()
void setLastOffset (LbmVec set)
void setLastScale (LbmVec set)
void setOffset (LbmVec set)
void setScale (LbmVec set)
void setCPSWith (LbmFloat set)
void setCPSTimestep (LbmFloat set)
void setCPSTimeStart (LbmFloat set)
void setCPSTimeEnd (LbmFloat set)
void setCPSMvmWeightFac (LbmFloat set)
LbmFloat getCPSWith ()
LbmFloat getCPSTimestep ()
LbmFloat getCPSTimeStart ()
LbmFloat getCPSTimeEnd ()
LbmFloat getCPSMvmWeightFac ()
void setDebugInit (int set)
void setFluidSpacing (LbmFloat set)
int initFromTextFile (string filename)
int initFromTextFileOld (string filename)
int initFromBinaryFile (string filename)
int initFromMVCMesh (string filename)
int initExampleSet ()
void initTime (LbmFloat t, LbmFloat dt)
void initBlenderTest ()
int initFromObject (ntlGeometryObjModel *model)

Protected Member Functions

void calculateCPS (string filename)
void applyTrafos ()
void swapCoords (int a, int b)
void mirrorTime ()
void initTimeArray (LbmFloat t, std::vector< ControlParticle > &parts)
bool checkPointInside (ntlTree *tree, ntlVec3Gfx org, gfxReal &distance)

Protected Attributes

LbmFloat _influenceTangential
LbmFloat _influenceAttraction
LbmFloat _influenceVelocity
LbmFloat _influenceMaxdist
LbmFloat _radiusAtt
LbmFloat _radiusVel
LbmFloat _radiusMinMaxd
LbmFloat _radiusMaxd
LbmFloat _currTime
LbmFloat _currTimestep
std::vector< ControlParticle_particles
std::vector< ControlParticleSetmPartSets
LbmFloat _initTimeScale
LbmVec _initPartOffset
LbmVec _initPartScale
LbmVec _initLastPartOffset
LbmVec _initLastPartScale
string _initMirror
LbmFloat _fluidSpacing
LbmFloat _kernelWeight
LbmFloat _charLength
LbmFloat _charLengthInv
ntlVec3Gfx mvCPSStart
 ani mesh cps params
ntlVec3Gfx mvCPSEnd
gfxReal mCPSWidth
gfxReal mCPSTimestep
gfxReal mCPSTimeStart
gfxReal mCPSTimeEnd
gfxReal mCPSWeightFac
int mDebugInit

Friends

class MultisphGUI

Detailed Description

Definition at line 135 of file controlparticles.h.


Constructor & Destructor Documentation

ControlParticles::ControlParticles ( )
ControlParticles::~ControlParticles ( )

Definition at line 259 of file controlparticles.cpp.


Member Function Documentation

void ControlParticles::applyTrafos ( ) [protected]
void ControlParticles::calculateCpInfluenceOpt ( ControlParticle cp,
LbmVec  fluidpos,
LbmVec  fluidvel,
ControlForces force,
LbmFloat  fillFactor 
)
void ControlParticles::calculateCPS ( string  filename) [protected]

do ani mesh CPS

void ControlParticles::calculateKernelWeight ( )
void ControlParticles::calculateMaxdForce ( ControlParticle cp,
LbmVec  fluidpos,
ControlForces force 
)
bool ControlParticles::checkPointInside ( ntlTree tree,
ntlVec3Gfx  org,
gfxReal distance 
) [protected]
void ControlParticles::finishControl ( std::vector< ControlForces > &  forces,
LbmFloat  iatt,
LbmFloat  ivel,
LbmFloat  imaxd 
)

Definition at line 1278 of file controlparticles.cpp.

References _radiusAtt, _radiusMaxd, _radiusVel, ABS, DEBUG_MODVEL, getCurrTimestep(), and i.

LbmFloat ControlParticles::getCharLength ( ) [inline]

Definition at line 188 of file controlparticles.h.

References _charLength.

Referenced by LbmFsgrSolver::initCpdata().

LbmFloat ControlParticles::getCharLengthInv ( ) [inline]

Definition at line 189 of file controlparticles.h.

References _charLengthInv.

LbmFloat ControlParticles::getControlTimEnd ( )

Definition at line 267 of file controlparticles.cpp.

References mPartSets.

Referenced by LbmFsgrSolver::handleCpdata(), and LbmFsgrSolver::initCpdata().

LbmFloat ControlParticles::getControlTimStart ( )

Definition at line 263 of file controlparticles.cpp.

References mPartSets.

Referenced by LbmFsgrSolver::handleCpdata(), and LbmFsgrSolver::initCpdata().

LbmFloat ControlParticles::getCPSMvmWeightFac ( ) [inline]

Definition at line 212 of file controlparticles.h.

References mCPSWeightFac.

Referenced by LbmControlData::parseControldataAttrList().

LbmFloat ControlParticles::getCPSTimeEnd ( ) [inline]

Definition at line 211 of file controlparticles.h.

References mCPSTimeEnd.

Referenced by LbmControlData::parseControldataAttrList().

LbmFloat ControlParticles::getCPSTimeStart ( ) [inline]

Definition at line 210 of file controlparticles.h.

References mCPSTimeStart.

Referenced by LbmControlData::parseControldataAttrList().

LbmFloat ControlParticles::getCPSTimestep ( ) [inline]

Definition at line 209 of file controlparticles.h.

References mCPSTimestep.

Referenced by LbmControlData::parseControldataAttrList().

LbmFloat ControlParticles::getCPSWith ( ) [inline]

Definition at line 208 of file controlparticles.h.

References mCPSWidth.

Referenced by LbmControlData::parseControldataAttrList().

LbmFloat ControlParticles::getCurrTimestep ( ) [inline]

Definition at line 172 of file controlparticles.h.

References _currTimestep.

Referenced by finishControl().

LbmFloat ControlParticles::getInfluenceAttraction ( ) [inline]

Definition at line 168 of file controlparticles.h.

References _influenceAttraction.

Referenced by calculateCpInfluenceOpt(), and prepareControl().

LbmFloat ControlParticles::getInfluenceMaxdist ( ) [inline]

Definition at line 171 of file controlparticles.h.

References _influenceMaxdist.

Referenced by LbmFsgrSolver::handleCpdata().

LbmFloat ControlParticles::getInfluenceTangential ( ) [inline]

Definition at line 169 of file controlparticles.h.

References _influenceTangential.

LbmFloat ControlParticles::getInfluenceVelocity ( ) [inline]

Definition at line 170 of file controlparticles.h.

References _influenceVelocity.

string ControlParticles::getInitMirror ( ) [inline]

Definition at line 194 of file controlparticles.h.

References _initMirror.

Referenced by LbmControlData::parseControldataAttrList().

ControlParticle* ControlParticles::getParticle ( int  i) [inline]

Definition at line 159 of file controlparticles.h.

References _particles, and i.

Referenced by LbmFsgrSolver::cpDebugDisplay(), LbmFsgrSolver::handleCpdata(), and prepareControl().

LbmFloat ControlParticles::getRadiusAtt ( ) [inline]

Definition at line 175 of file controlparticles.h.

References _radiusAtt.

Referenced by LbmFsgrSolver::cpDebugDisplay(), and LbmFsgrSolver::handleCpdata().

LbmFloat ControlParticles::getRadiusMaxd ( ) [inline]

Definition at line 179 of file controlparticles.h.

References _radiusMaxd.

Referenced by LbmFsgrSolver::handleCpdata().

LbmFloat ControlParticles::getRadiusMinMaxd ( ) [inline]

Definition at line 181 of file controlparticles.h.

References _radiusMinMaxd.

Referenced by LbmFsgrSolver::handleCpdata().

LbmFloat ControlParticles::getRadiusVel ( ) [inline]

Definition at line 177 of file controlparticles.h.

References _radiusVel.

Referenced by LbmFsgrSolver::handleCpdata().

int ControlParticles::getSize ( void  ) [inline]
int ControlParticles::getTotalSize ( )

Definition at line 288 of file controlparticles.cpp.

References i, and mPartSets.

Referenced by LbmFsgrSolver::initCpdata().

void ControlParticles::initBlenderTest ( )
int ControlParticles::initExampleSet ( )

Definition at line 282 of file controlparticles.cpp.

int ControlParticles::initFromBinaryFile ( string  filename)
int ControlParticles::initFromMVCMesh ( string  filename)
int ControlParticles::initFromObject ( ntlGeometryObjModel model)
int ControlParticles::initFromTextFile ( string  filename)

Definition at line 301 of file controlparticles.cpp.

Referenced by LbmFsgrSolver::initCpdata().

int ControlParticles::initFromTextFileOld ( string  filename)

Definition at line 513 of file controlparticles.cpp.

void ControlParticles::initTime ( LbmFloat  t,
LbmFloat  dt 
)
void ControlParticles::initTimeArray ( LbmFloat  t,
std::vector< ControlParticle > &  parts 
) [protected]
void ControlParticles::mirrorTime ( ) [protected]

Definition at line 922 of file controlparticles.cpp.

References errMsg, i, and mPartSets.

Referenced by applyTrafos(), and initFromObject().

void ControlParticles::prepareControl ( LbmFloat  simtime,
LbmFloat  dt,
ControlParticles motion 
)
void ControlParticles::setCharLength ( LbmFloat  set) [inline]

Definition at line 187 of file controlparticles.h.

References _charLength, and _charLengthInv.

Referenced by LbmFsgrSolver::initCpdata().

void ControlParticles::setCPSMvmWeightFac ( LbmFloat  set) [inline]
void ControlParticles::setCPSTimeEnd ( LbmFloat  set) [inline]
void ControlParticles::setCPSTimeStart ( LbmFloat  set) [inline]
void ControlParticles::setCPSTimestep ( LbmFloat  set) [inline]

Definition at line 203 of file controlparticles.h.

References mCPSTimestep.

Referenced by LbmControlData::parseControldataAttrList().

void ControlParticles::setCPSWith ( LbmFloat  set) [inline]

Definition at line 202 of file controlparticles.h.

References mCPSWidth.

Referenced by LbmFsgrSolver::initCpdata(), and LbmControlData::parseControldataAttrList().

void ControlParticles::setDebugInit ( int  set) [inline]

Definition at line 214 of file controlparticles.h.

References mDebugInit.

Referenced by LbmControlData::parseControldataAttrList().

void ControlParticles::setFluidSpacing ( LbmFloat  set) [inline]

Definition at line 217 of file controlparticles.h.

References _fluidSpacing.

Referenced by LbmFsgrSolver::initCpdata().

void ControlParticles::setInfluenceAttraction ( LbmFloat  set) [inline]
void ControlParticles::setInfluenceMaxdist ( LbmFloat  set) [inline]
void ControlParticles::setInfluenceTangential ( LbmFloat  set) [inline]

Definition at line 162 of file controlparticles.h.

References _influenceTangential.

Referenced by LbmControlData::parseControldataAttrList().

void ControlParticles::setInfluenceVelocity ( LbmFloat  set,
LbmFloat  dt 
)
void ControlParticles::setInitMirror ( string  set) [inline]

Definition at line 193 of file controlparticles.h.

References _initMirror.

Referenced by LbmControlData::parseControldataAttrList().

void ControlParticles::setInitTimeScale ( LbmFloat  set) [inline]

Definition at line 192 of file controlparticles.h.

References _initTimeScale.

Referenced by LbmControlData::parseControldataAttrList().

void ControlParticles::setLastOffset ( LbmVec  set) [inline]

Definition at line 196 of file controlparticles.h.

References _initLastPartOffset.

Referenced by LbmFsgrSolver::handleCpdata().

void ControlParticles::setLastScale ( LbmVec  set) [inline]

Definition at line 197 of file controlparticles.h.

References _initLastPartScale.

Referenced by LbmFsgrSolver::handleCpdata().

void ControlParticles::setOffset ( LbmVec  set) [inline]
void ControlParticles::setRadiusAtt ( LbmFloat  set) [inline]
void ControlParticles::setRadiusMaxd ( LbmFloat  set) [inline]
void ControlParticles::setRadiusMinMaxd ( LbmFloat  set) [inline]
void ControlParticles::setRadiusVel ( LbmFloat  set) [inline]
void ControlParticles::setScale ( LbmVec  set) [inline]
void ControlParticles::swapCoords ( int  a,
int  b 
) [protected]

Definition at line 912 of file controlparticles.cpp.

References i, mPartSets, and TRISWAPALL.

Referenced by applyTrafos().


Friends And Related Function Documentation

friend class MultisphGUI [friend]

Definition at line 238 of file controlparticles.h.


Member Data Documentation

Definition at line 272 of file controlparticles.h.

Referenced by getCharLength(), and setCharLength().

Definition at line 272 of file controlparticles.h.

Referenced by getCharLengthInv(), and setCharLength().

Definition at line 251 of file controlparticles.h.

Referenced by initTime().

Definition at line 251 of file controlparticles.h.

Referenced by getCurrTimestep(), and initTime().

Definition at line 268 of file controlparticles.h.

Referenced by calculateKernelWeight(), and setFluidSpacing().

Definition at line 245 of file controlparticles.h.

Referenced by getInfluenceMaxdist(), and setInfluenceMaxdist().

Definition at line 262 of file controlparticles.h.

Referenced by initTime(), and setLastOffset().

Definition at line 263 of file controlparticles.h.

Referenced by initTime(), and setLastScale().

string ControlParticles::_initMirror [protected]

Definition at line 265 of file controlparticles.h.

Referenced by applyTrafos(), getInitMirror(), and setInitMirror().

Definition at line 260 of file controlparticles.h.

Referenced by initTime(), and setOffset().

Definition at line 261 of file controlparticles.h.

Referenced by initTime(), and setScale().

Definition at line 259 of file controlparticles.h.

Referenced by applyTrafos(), and setInitTimeScale().

Definition at line 270 of file controlparticles.h.

Referenced by calculateKernelWeight(), and prepareControl().

Definition at line 253 of file controlparticles.h.

Referenced by getParticle(), getSize(), initTime(), and prepareControl().

Definition at line 280 of file controlparticles.h.

Referenced by getCPSTimeEnd(), initFromMVCMesh(), initFromObject(), and setCPSTimeEnd().

Definition at line 279 of file controlparticles.h.

Referenced by getCPSWith(), initFromMVCMesh(), initFromObject(), and setCPSWith().

Definition at line 283 of file controlparticles.h.

Referenced by initTimeArray(), and setDebugInit().

Definition at line 278 of file controlparticles.h.

ani mesh cps params

Definition at line 278 of file controlparticles.h.


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