Grid3D.cpp File Reference

#include <iostream>
#include <sofa/component/behaviormodel/eulerianfluid/Grid3D.h>
#include <cstring>

Include dependency graph for Grid3D.cpp:

Go to the source code of this file.


Namespaces

namespace  sofa
 Main SOFA namespace.
namespace  sofa::component
 Implementation of components.
namespace  sofa::component::behaviormodel
namespace  sofa::component::behaviormodel::eulerianfluid

Defines

#define LEVELSET_MARGIN   0.01f
#define FOR_ALL_CELLS(grid, cmd)
#define FOR_READ_INNER_CELLS(cmd)
#define FOR_INNER_CELLS(grid, cmd)
#define FOR_SURFACE_CELLS(grid, cmd)
#define RMAX   1e10


Define Documentation

#define FOR_ALL_CELLS ( grid,
cmd   ) 

Value:

{                                               \
  int ind = index(0,0,0);                       \
  for (int z=0;z<nz;z++)                        \
    for (int y=0;y<ny;y++)                      \
      for (int x=0;x<nx;x++,ind+=index(1,0,0))  \
      {                                         \
    cmd;                                    \
      }                                         \
}

Definition at line 47 of file Grid3D.cpp.

#define FOR_INNER_CELLS ( grid,
cmd   ) 

Value:

{                                               \
  int ind = index(1,1,1);                       \
  for (int z=1;z<nz-1;z++,ind+=index(0,2,0))    \
    for (int y=1;y<ny-1;y++,ind+=index(2,0,0))  \
      for (int x=1;x<nx-1;x++,ind+=index(1,0,0))\
      {                                         \
    cmd;                                    \
      }                                         \
}

Definition at line 69 of file Grid3D.cpp.

#define FOR_READ_INNER_CELLS ( cmd   ) 

Value:

{                                               \
  int ind = index(1,1,1);                       \
  for (int z=1;z<nz-1;z++,ind+=index(0,2,0))    \
    for (int y=1;y<ny-1;y++,ind+=index(2,0,0))  \
      for (int x=1;x<nx-1;x++,ind+=index(1,0,0))\
      {                                         \
    cmd;                                    \
      }                                         \
}

Definition at line 58 of file Grid3D.cpp.

#define FOR_SURFACE_CELLS ( grid,
cmd   ) 

Value:

{                                               \
  int ind = index(1,1,1);                       \
  for (int z=1;z<nz-1;z++,ind+=index(0,2,0))    \
    for (int y=1;y<ny-1;y++,ind+=index(2,0,0))  \
      for (int x=1;x<nx-1;x++,ind+=index(1,0,0))\
      {                                         \
    cmd;                                    \
      }                                         \
}

Definition at line 83 of file Grid3D.cpp.

#define LEVELSET_MARGIN   0.01f

#define RMAX   1e10

Definition at line 278 of file Grid3D.cpp.


Generated on Sun Nov 23 04:07:32 2008 for Sofa by  doxygen 1.5.7.1