Blender V2.61 - r43446
Public Member Functions

Parametrizer Class Reference

output parameter debug message? More...

#include <parametrizer.h>

List of all members.

Public Member Functions

 Parametrizer ()
 ~Parametrizer ()
void parseAttrList (void)
bool calculateAllMissingValues (double time, bool silent)
bool isUsed ()
void seenThis (int seen)
void setSeenValues (int set)
bool checkSeenValues (int check)
void calculatedThis (int cac)
void setCalculatedValues (int set)
bool checkCalculatedValues (int check)
void setFrameNum (int frame)
ParamFloat getAniFrameTime (int frame)
ParamFloat getCurrentAniFrameTime ()
ParamVec calculateAddForce (ParamVec vec, string usage)
ParamFloat calculateOmega (double time)
int calculateNoOfSteps (ParamFloat timelen)
ParamVec calculateGravity (double time)
int calculateStepsForSecs (ParamFloat s)
int calculateAniStepsPerFrame (int frame)
int calculateAniStart (void)
ParamFloat calculateSurfaceTension (void)
ParamFloat calculateCellSize (void)
ParamFloat calculateLatticeViscosity (double time)
ParamVec calculateLattVelocityFromRw (ParamVec ivel)
ParamVec calculateRwVelocityFromLatt (ParamVec ivel)
void setSoundSpeed (ParamFloat set)
ParamFloat getSoundSpeed (void)
void setViscosity (ParamFloat set)
void initViscosityChannel (vector< ParamFloat > val, vector< double > time)
void setGravity (ParamFloat setx, ParamFloat sety, ParamFloat setz)
void setGravity (ParamVec set)
void initGravityChannel (vector< ParamVec > val, vector< double > time)
ParamVec getGravity (double time)
void setAniFrameTimeChannel (ParamFloat set)
void initAniFrameTimeChannel (vector< ParamFloat > val, vector< double > time)
void setTimestep (ParamFloat set)
ParamFloat getTimestep (void)
void setDesiredTimestep (ParamFloat set)
ParamFloat getMaxTimestep (void)
ParamFloat getMinTimestep (void)
void setTimeFactor (ParamFloat set)
ParamFloat getTimeFactor (void)
void setSize (int ijk)
void setSize (int i, int j, int k)
void setAniStart (ParamFloat set)
ParamFloat getAniStart (void)
void setDensity (ParamFloat set)
ParamFloat getDensity (void)
void setGStar (ParamFloat set)
ParamFloat getGStar (void)
ParamFloat getCurrentGStar (void)
void setNormalizedGStar (ParamFloat set)
ParamFloat getNormalizedGStar (void)
void setFluidVolumeHeight (ParamFloat set)
ParamFloat getFluidVolumeHeight (void)
void setDomainSize (ParamFloat set)
ParamFloat getDomainSize (void)
void setCellSize (ParamFloat set)
ParamFloat getCellSize (void)
void setAttrList (AttributeList *set)
AttributeListgetAttributeList ()
void setSimulationMaxSpeed (ParamFloat set)
ParamFloat getSimulationMaxSpeed (void)
void setTadapMaxOmega (ParamFloat set)
ParamFloat getTadapMaxOmega (void)
void setTadapMaxSpeed (ParamFloat set)
ParamFloat getTadapMaxSpeed (void)
void setTadapLevels (int set)
int getTadapLevels (void)

Detailed Description

output parameter debug message?

Parameter calculator for the LBM Solver class

Definition at line 50 of file parametrizer.h.


Constructor & Destructor Documentation

Parametrizer::Parametrizer ( void  )

default contructor

Definition at line 50 of file parametrizer.cpp.

Parametrizer::~Parametrizer ( )

destructor

Definition at line 76 of file parametrizer.cpp.


Member Function Documentation

ParamVec Parametrizer::calculateAddForce ( ParamVec  vec,
string  usage 
)

scale a given speed vector in m/s to lattice values usage string is only needed for debugging

Definition at line 178 of file parametrizer.cpp.

References debMsgStd, and DM_MSG.

bool Parametrizer::calculateAllMissingValues ( double  time,
bool  silent 
)
int Parametrizer::calculateAniStart ( void  )

get start time of animation

Definition at line 245 of file parametrizer.cpp.

Referenced by calculateAllMissingValues().

int Parametrizer::calculateAniStepsPerFrame ( int  frame)

get no of steps for a singel animation frame

get no of steps for a single animation frame

Definition at line 250 of file parametrizer.cpp.

References checkSeenValues(), errFatal, getAniFrameTime(), PARAM_ANIFRAMETIME, and SIMWORLD_INITERROR.

Referenced by calculateAllMissingValues().

ParamFloat Parametrizer::calculateCellSize ( void  )

get time step size for lbm (equals mTimeFactor)

calculate size of a single cell

Definition at line 189 of file parametrizer.cpp.

Referenced by calculateAllMissingValues(), and LbmFsgrSolver::initializeSolverGrids().

void Parametrizer::calculatedThis ( int  cac) [inline]

add this flag to the calculated values

Definition at line 82 of file parametrizer.h.

ParamVec Parametrizer::calculateGravity ( double  time)

get external force x component

Definition at line 215 of file parametrizer.cpp.

References errMsg, and AnimChannel< Scalar >::get().

Referenced by LbmFsgrSolver::adaptTimestep(), calculateAllMissingValues(), and LbmFsgrSolver::initLevelOmegas().

ParamFloat Parametrizer::calculateLatticeViscosity ( double  time)

calculate the lattice viscosity

Definition at line 226 of file parametrizer.cpp.

References checkSeenValues(), errMsg, AnimChannel< Scalar >::get(), PARAM_STEPTIME, and PARAM_VISCOSITY.

Referenced by calculateOmega().

ParamVec Parametrizer::calculateLattVelocityFromRw ( ParamVec  ivel)

calculate lattice velocity from real world value [m/s]

Definition at line 283 of file parametrizer.cpp.

Referenced by LbmFsgrSolver::initGeometryFlags(), LbmFsgrSolver::initMovingObstacles(), and LbmFsgrSolver::recalculateObjectSpeeds().

int Parametrizer::calculateNoOfSteps ( ParamFloat  timelen)

get no. of timesteps for LBM

Definition at line 264 of file parametrizer.cpp.

ParamFloat Parametrizer::calculateOmega ( double  time)

get omega for LBM

get omega for LBM from channel

Definition at line 205 of file parametrizer.cpp.

References calculateLatticeViscosity(), and errMsg.

Referenced by calculateAllMissingValues(), and LbmFsgrSolver::initLevelOmegas().

ParamVec Parametrizer::calculateRwVelocityFromLatt ( ParamVec  ivel)

calculate real world [m/s] velocity from lattice value

Definition at line 290 of file parametrizer.cpp.

int Parametrizer::calculateStepsForSecs ( ParamFloat  s)

get no of steps for the given length in seconds

Definition at line 240 of file parametrizer.cpp.

ParamFloat Parametrizer::calculateSurfaceTension ( void  )

get extent of the domain = (1,1,1) if parametrizer not used, (x,y,z) [m] otherwise

get (scaled) surface tension

bool Parametrizer::checkCalculatedValues ( int  check) [inline]

check if the calculated flags are set in the values int

Definition at line 86 of file parametrizer.h.

bool Parametrizer::checkSeenValues ( int  check) [inline]

check if the flags are set in the values int

Definition at line 79 of file parametrizer.h.

Referenced by calculateAllMissingValues(), calculateAniStepsPerFrame(), and calculateLatticeViscosity().

ParamFloat Parametrizer::getAniFrameTime ( int  frame)
ParamFloat Parametrizer::getAniStart ( void  ) [inline]

get starting time of the animation (renderer)

Definition at line 167 of file parametrizer.h.

Referenced by SimulationObject::getStartTime().

AttributeList* Parametrizer::getAttributeList ( ) [inline]

Returns the attribute list pointer

Definition at line 206 of file parametrizer.h.

Referenced by parseAttrList().

ParamFloat Parametrizer::getCellSize ( void  ) [inline]

get the size of a single lbm cell

Definition at line 198 of file parametrizer.h.

Referenced by LbmFsgrSolver::advanceParticles(), and LbmFsgrSolver::initializeSolverMemory().

ParamFloat Parametrizer::getCurrentAniFrameTime ( ) [inline]

Definition at line 90 of file parametrizer.h.

References getAniFrameTime().

Referenced by LbmFsgrSolver::getVelocityAt(), and SimulationObject::step().

ParamFloat Parametrizer::getCurrentGStar ( void  )

get g star value with fhvol calculations

Definition at line 299 of file parametrizer.cpp.

Referenced by LbmFsgrSolver::adaptTimestep(), and calculateAllMissingValues().

ParamFloat Parametrizer::getDensity ( void  ) [inline]

get fluid density

Definition at line 172 of file parametrizer.h.

ParamFloat Parametrizer::getDomainSize ( void  ) [inline]

get the size of a single lbm cell

Definition at line 193 of file parametrizer.h.

ParamFloat Parametrizer::getFluidVolumeHeight ( void  ) [inline]

get g star value

Definition at line 188 of file parametrizer.h.

ParamVec Parametrizer::getGravity ( double  time) [inline]

Definition at line 138 of file parametrizer.h.

References AnimChannel< Scalar >::get().

Referenced by LbmFsgrSolver::advanceParticles().

ParamFloat Parametrizer::getGStar ( void  ) [inline]

get g star value

Definition at line 177 of file parametrizer.h.

ParamFloat Parametrizer::getMaxTimestep ( void  ) [inline]

get the length of a single time step

Definition at line 151 of file parametrizer.h.

Referenced by LbmFsgrSolver::adaptTimestep().

ParamFloat Parametrizer::getMinTimestep ( void  ) [inline]

get the length of a single time step

Definition at line 153 of file parametrizer.h.

Referenced by LbmFsgrSolver::adaptTimestep().

ParamFloat Parametrizer::getNormalizedGStar ( void  ) [inline]

get normalized g star value

Definition at line 183 of file parametrizer.h.

ParamFloat Parametrizer::getSimulationMaxSpeed ( void  ) [inline]

get maximum allowed speed for maxspeed setup

Definition at line 211 of file parametrizer.h.

Referenced by LbmFsgrSolver::adaptTimestep(), and LbmFsgrSolver::initGeometryFlags().

ParamFloat Parametrizer::getSoundSpeed ( void  ) [inline]

get speed of sound

Definition at line 128 of file parametrizer.h.

int Parametrizer::getTadapLevels ( void  ) [inline]

get maximum allowed omega for time adaptivity

Definition at line 226 of file parametrizer.h.

ParamFloat Parametrizer::getTadapMaxOmega ( void  ) [inline]

get maximum allowed omega for time adaptivity

Definition at line 216 of file parametrizer.h.

ParamFloat Parametrizer::getTadapMaxSpeed ( void  ) [inline]

get maximum allowed speed for time adaptivity

Definition at line 221 of file parametrizer.h.

Referenced by LbmFsgrSolver::adaptTimestep(), and LbmFsgrSolver::initGeometryFlags().

ParamFloat Parametrizer::getTimeFactor ( void  ) [inline]

get the time scaling factor

Definition at line 158 of file parametrizer.h.

ParamFloat Parametrizer::getTimestep ( void  )

get the length of a single time step

get extent of the domain = (1,1,1) if parametrizer not used, (x,y,z) [m] otherwise

get (scaled) surface tension

get the length of a single time step

Definition at line 278 of file parametrizer.cpp.

Referenced by LbmFsgrSolver::adaptTimestep(), LbmFsgrSolver::advanceParticles(), LbmFsgrSolver::fineAdvance(), SimulationObject::getTimestep(), LbmFsgrSolver::handleCpdata(), LbmFsgrSolver::initCpdata(), LbmFsgrSolver::initGeometryFlags(), LbmFsgrSolver::initializeSolverMemory(), LbmFsgrSolver::initLevelOmegas(), LbmFsgrSolver::initMovingObstacles(), and SimulationObject::step().

void Parametrizer::initAniFrameTimeChannel ( vector< ParamFloat val,
vector< double >  time 
)
void Parametrizer::initGravityChannel ( vector< ParamVec val,
vector< double >  time 
)
void Parametrizer::initViscosityChannel ( vector< ParamFloat val,
vector< double >  time 
)
bool Parametrizer::isUsed ( ) [inline]

is the parametrizer used at all?

Definition at line 67 of file parametrizer.h.

void Parametrizer::parseAttrList ( void  )
void Parametrizer::seenThis ( int  seen) [inline]
void Parametrizer::setAniFrameTimeChannel ( ParamFloat  set)

set time of an animation frame (renderer)

Definition at line 527 of file parametrizer.cpp.

References errMsg, PARAM_ANIFRAMETIME, AnimChannel< Scalar >::printChannel(), and seenThis().

Referenced by ntlWorld::addDomain(), and calculateAllMissingValues().

void Parametrizer::setAniStart ( ParamFloat  set) [inline]

set starting time of the animation (renderer)

Definition at line 165 of file parametrizer.h.

References PARAM_ANISTART, and seenThis().

Referenced by ntlWorld::addDomain().

void Parametrizer::setAttrList ( AttributeList set) [inline]

set active flag for parametrizer

set attr list pointer

Definition at line 204 of file parametrizer.h.

Referenced by SimulationObject::initializeLbmSimulation().

void Parametrizer::setCalculatedValues ( int  set) [inline]

set the calculated flags integer

Definition at line 84 of file parametrizer.h.

void Parametrizer::setCellSize ( ParamFloat  set) [inline]

set the size of a single lbm cell (dont use, normally set by domainsize and resolution)

Definition at line 196 of file parametrizer.h.

void Parametrizer::setDensity ( ParamFloat  set) [inline]

set fluid density

Definition at line 170 of file parametrizer.h.

References PARAM_DENSITY, and seenThis().

void Parametrizer::setDesiredTimestep ( ParamFloat  set) [inline]

set a desired step time for rescaling/adaptive timestepping

Definition at line 149 of file parametrizer.h.

Referenced by LbmFsgrSolver::adaptTimestep(), and LbmFsgrSolver::initGeometryFlags().

void Parametrizer::setDomainSize ( ParamFloat  set) [inline]

set the size of a single lbm cell

Definition at line 191 of file parametrizer.h.

References PARAM_DOMAINSIZE, and seenThis().

Referenced by ntlWorld::addDomain().

void Parametrizer::setFluidVolumeHeight ( ParamFloat  set) [inline]

set g star value

Definition at line 186 of file parametrizer.h.

References PARAM_FLUIDVOLHEIGHT, and seenThis().

Referenced by LbmFsgrSolver::fineAdvance(), and LbmFsgrSolver::initializeSolverMemory().

void Parametrizer::setFrameNum ( int  frame)

advance to next render/output frame

Definition at line 153 of file parametrizer.cpp.

References errMsg.

Referenced by SimulationObject::setFrameNum().

void Parametrizer::setGravity ( ParamFloat  setx,
ParamFloat  sety,
ParamFloat  setz 
)

set the external force

Definition at line 504 of file parametrizer.cpp.

References errMsg, PARAM_GRAVITY, AnimChannel< Scalar >::printChannel(), and seenThis().

Referenced by ntlWorld::addDomain().

void Parametrizer::setGravity ( ParamVec  set)
void Parametrizer::setGStar ( ParamFloat  set) [inline]

set g star value

Definition at line 175 of file parametrizer.h.

References PARAM_GSTAR, and seenThis().

void Parametrizer::setNormalizedGStar ( ParamFloat  set) [inline]

set normalized g star value

Definition at line 181 of file parametrizer.h.

References PARAM_NORMALIZEDGSTAR, and seenThis().

Referenced by ntlWorld::addDomain().

void Parametrizer::setSeenValues ( int  set) [inline]

set the flags integer

Definition at line 77 of file parametrizer.h.

void Parametrizer::setSimulationMaxSpeed ( ParamFloat  set) [inline]

set maximum allowed speed for maxspeed setup

Definition at line 209 of file parametrizer.h.

References PARAM_SIMMAXSPEED, and seenThis().

Referenced by LbmFsgrSolver::fineAdvance(), LbmFsgrSolver::initGeometryFlags(), and LbmFsgrSolver::initializeSolverMemory().

void Parametrizer::setSize ( int  ijk) [inline]

init domain resoultion

Definition at line 161 of file parametrizer.h.

References PARAM_SIZE, and seenThis().

Referenced by ntlWorld::addDomain(), LbmFsgrSolver::initializeSolverMemory(), and LbmSolverInterface::parseStdAttrList().

void Parametrizer::setSize ( int  i,
int  j,
int  k 
) [inline]

Definition at line 162 of file parametrizer.h.

References i, PARAM_SIZE, and seenThis().

void Parametrizer::setSoundSpeed ( ParamFloat  set) [inline]

set speed of sound

Definition at line 126 of file parametrizer.h.

References PARAM_SOUNDSPEED, and seenThis().

void Parametrizer::setTadapLevels ( int  set) [inline]

set maximum allowed omega for time adaptivity

Definition at line 224 of file parametrizer.h.

Referenced by LbmFsgrSolver::initializeSolverMemory().

void Parametrizer::setTadapMaxOmega ( ParamFloat  set) [inline]

set maximum allowed omega for time adaptivity

Definition at line 214 of file parametrizer.h.

void Parametrizer::setTadapMaxSpeed ( ParamFloat  set) [inline]

set maximum allowed speed for time adaptivity

Definition at line 219 of file parametrizer.h.

void Parametrizer::setTimeFactor ( ParamFloat  set) [inline]

set the time scaling factor

Definition at line 156 of file parametrizer.h.

References PARAM_TIMEFACTOR, and seenThis().

void Parametrizer::setTimestep ( ParamFloat  set) [inline]

set the length of a single time step

Definition at line 145 of file parametrizer.h.

References PARAM_STEPTIME, and seenThis().

Referenced by calculateAllMissingValues().

void Parametrizer::setViscosity ( ParamFloat  set)

set kinematic viscosity

Definition at line 488 of file parametrizer.cpp.

References errMsg, PARAM_VISCOSITY, AnimChannel< Scalar >::printChannel(), and seenThis().

Referenced by ntlWorld::addDomain().


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