Grid2D.cpp File Reference

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

Include dependency graph for Grid2D.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 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   ) 

#define FOR_INNER_CELLS ( grid,
cmd   ) 

#define FOR_READ_INNER_CELLS ( cmd   ) 

Value:

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

Definition at line 55 of file Grid2D.cpp.

Referenced by sofa::component::behaviormodel::eulerianfluid::Grid3D::step_project(), and sofa::component::behaviormodel::eulerianfluid::Grid2D::step_project().

#define FOR_SURFACE_CELLS ( grid,
cmd   ) 

Value:

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

Definition at line 78 of file Grid2D.cpp.

Referenced by sofa::component::behaviormodel::eulerianfluid::Grid3D::step_surface(), and sofa::component::behaviormodel::eulerianfluid::Grid2D::step_surface().

#define RMAX   1e10

Definition at line 260 of file Grid2D.cpp.


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