Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

solver_interface.h File Reference

#include "../gui/guifuncs.h"
#include <sstream>
#include "utilities.h"
#include "ntl_bsptree.h"
#include "ntl_geometryobject.h"
#include "parametrizer.h"
#include "attributes.h"
#include "isosurface.h"

Go to the source code of this file.

Classes

class  LbmCellContents
struct  LbmPoint
struct  LbmBubble
class  CellIdentifierInterface
 cell identifier interface More...
class  LbmSolverInterface

Defines

#define LBM_USE_GUI   1
 include gui support?
#define USE_GLUTILITIES
#define LBM_PRECISION   1
#define LBM_EPSILON   (1e-5)
#define LONGINT   long long int
#define LBMDIM   3
#define LBM_DFNUM   19
#define CFUnused   (1<< 0)
#define CFEmpty   (1<< 1)
#define CFBnd   (1<< 2)
#define CFMbndInflow   (1<< 3)
#define CFMbndOutflow   (1<< 4)
#define CFFluid   (1<< 5)
#define CFInter   (1<< 6)
#define CFNoBndFluid   (1<< 7)
#define CFNoDelete   (1<< 8)
#define CFBndNoslip   (1<< 9)
#define CFBndFreeslip   (1<<10)
#define CFBndPartslip   (1<<11)
#define CFBndMoving   (1<<12)
#define CFNoInterpolSrc   (1<<13)
#define CFNoNbFluid   (1<<14)
#define CFNoNbEmpty   (1<<15)
#define CFGrNorm   (1<<16)
#define CFGrCoarseInited   (1<<17)
#define CFGrFromFine   (1<<18)
#define CFGrToFine   (1<<19)
#define CFGrFromCoarse   (1<<20)
#define CFPersistMask   (0xFF000000 | CFMbndInflow | CFMbndOutflow)
#define CFNoPersistMask   (~CFPersistMask)
#define CFInvalid   (CellFlagType)(1<<31)
#define CellFlagType   int
#define CellFlagTypeSize   4
#define dFfrac   19
#define dMass   20
#define dFlux   21
#define dTotalNum   22
#define FLUIDDISPINVALID   0
 choose which data to display
#define FLUIDDISPNothing   1
#define FLUIDDISPCelltypes   2
#define FLUIDDISPVelocities   3
#define FLUIDDISPCellfills   4
#define FLUIDDISPDensity   5
#define FLUIDDISPGrid   6
#define FLUIDDISPSurface   7

Typedefs

typedef float LbmFloat
typedef ntlVec3f LbmVec
typedef int BubbleId

Functions

template<class T >
LbmVec vec2L (T v)
template<class T >
ParamVec vec2P (T v)
void initGridSizes (int &mSizex, int &mSizey, int &mSizez, ntlVec3Gfx &mvGeoStart, ntlVec3Gfx &mvGeoEnd, int mMaxRefine, bool parallel)
void calculateMemreqEstimate (int resx, int resy, int resz, int refine, float farfieldsize, double *reqret, double *reqretFine, string *reqstr)
string convertCellFlagType2String (CellFlagType flag)
 helper function to convert flag to string (for debuggin)
string convertSingleFlag2String (CellFlagType cflag)

Detailed Description

Definition in file solver_interface.h.


Define Documentation

#define CellFlagType   int
#define CellFlagTypeSize   4

Definition at line 149 of file solver_interface.h.

Referenced by LbmFsgrSolver::initializeSolverMemory().

#define CFBnd   (1<< 2)
#define CFBndFreeslip   (1<<10)
#define CFBndMoving   (1<<12)
#define CFBndNoslip   (1<< 9)
#define CFBndPartslip   (1<<11)
#define CFEmpty   (1<< 1)
#define CFFluid   (1<< 5)
#define CFGrCoarseInited   (1<<17)
#define CFGrFromCoarse   (1<<20)
#define CFGrFromFine   (1<<18)
#define CFGrNorm   (1<<16)
#define CFGrToFine   (1<<19)
#define CFInter   (1<< 6)
#define CFInvalid   (CellFlagType)(1<<31)
#define CFMbndInflow   (1<< 3)
#define CFMbndOutflow   (1<< 4)
#define CFNoBndFluid   (1<< 7)
#define CFNoDelete   (1<< 8)
#define CFNoInterpolSrc   (1<<13)
#define CFNoNbEmpty   (1<<15)
#define CFNoNbFluid   (1<<14)
#define CFNoPersistMask   (~CFPersistMask)

Definition at line 135 of file solver_interface.h.

Referenced by LbmFsgrSolver::initMovingObstacles().

#define CFPersistMask   (0xFF000000 | CFMbndInflow | CFMbndOutflow)
#define CFUnused   (1<< 0)
#define dFfrac   19
#define dFlux   21
#define dMass   20
#define dTotalNum   22
#define FLUIDDISPCellfills   4

Definition at line 198 of file solver_interface.h.

Referenced by LbmFsgrSolver::debugDisplayNode().

#define FLUIDDISPCelltypes   2

Definition at line 196 of file solver_interface.h.

Referenced by LbmFsgrSolver::debugDisplayNode().

#define FLUIDDISPDensity   5

Definition at line 199 of file solver_interface.h.

Referenced by LbmFsgrSolver::debugDisplayNode().

#define FLUIDDISPGrid   6
#define FLUIDDISPINVALID   0

choose which data to display

Definition at line 194 of file solver_interface.h.

#define FLUIDDISPNothing   1
#define FLUIDDISPSurface   7

Definition at line 201 of file solver_interface.h.

#define FLUIDDISPVelocities   3

Definition at line 197 of file solver_interface.h.

Referenced by LbmFsgrSolver::debugDisplayNode().

#define LBM_DFNUM   19
#define LBM_EPSILON   (1e-5)
#define LBM_PRECISION   1

Definition at line 49 of file solver_interface.h.

#define LBM_USE_GUI   1

include gui support?

Definition at line 19 of file solver_interface.h.

#define LBMDIM   3
#define LONGINT   long long int
#define USE_GLUTILITIES

Definition at line 25 of file solver_interface.h.


Typedef Documentation

typedef int BubbleId

Definition at line 88 of file solver_interface.h.

typedef float LbmFloat

Definition at line 55 of file solver_interface.h.

typedef ntlVec3f LbmVec

Definition at line 56 of file solver_interface.h.


Function Documentation

void calculateMemreqEstimate ( int  resx,
int  resy,
int  resz,
int  refine,
float  farfieldsize,
double *  reqret,
double *  reqretFine,
string *  reqstr 
)
string convertCellFlagType2String ( CellFlagType  flag)

helper function to convert flag to string (for debuggin)

Definition at line 722 of file solver_interface.cpp.

References CellFlagType, and convertSingleFlag2String().

Referenced by LbmFsgrSolver::debugPrintNodeInfo(), SimulationObject::initializeLbmSimulation(), and LbmFsgrSolver::reinitFlags().

string convertSingleFlag2String ( CellFlagType  cflag)
void initGridSizes ( int &  mSizex,
int &  mSizey,
int &  mSizez,
ntlVec3Gfx mvGeoStart,
ntlVec3Gfx mvGeoEnd,
int  mMaxRefine,
bool  parallel 
)
template<class T >
LbmVec vec2L ( v) [inline]
template<class T >
ParamVec vec2P ( v) [inline]