CG  Version 25
Macros
insp.C File Reference
#include "Cgins.h"
#include "Parameters.h"
#include "MappedGridOperators.h"
#include "Ogmg.h"
#include "ParallelUtility.h"
#include "SparseRep.h"
#include <float.h>
#include "turbulenceParameters.h"
#include "EquationDomain.h"
Include dependency graph for insp.C:

Macros

#define TURN_OFF   true
 
#define POW2(x)   pow((x),2)
 
#define ForBoundary(side, axis)
 
#define mixedRHS(component, side, axis, grid)   bcData(component+numberOfComponents*(0),side,axis,grid)
 
#define mixedCoeff(component, side, axis, grid)   bcData(component+numberOfComponents*(1),side,axis,grid)
 
#define mixedNormalCoeff(component, side, axis, grid)   bcData(component+numberOfComponents*(2),side,axis,grid)
 
#define DAI1(cd, I1, I2, I3)
 
#define DAI2(cd, I1, I2, I3)
 
#define DAI3(cd, I1, I2, I3)
 

Macro Definition Documentation

#define DAI1 (   cd,
  I1,
  I2,
  I3 
)
Value:
( \
cd/ max(realSmall,\
( POW2(xy(I1+1,I2 ,I3 ,0)-xy(I1-1,I2 ,I3 ,0)) \
+POW2(xy(I1+1,I2 ,I3 ,1)-xy(I1-1,I2 ,I3 ,1)) ) ) )

Referenced by Cgins::updateDivergenceDamping().

#define DAI2 (   cd,
  I1,
  I2,
  I3 
)
Value:
( \
cd/max(realSmall,\
( POW2(xy(I1+1,I2 ,I3 ,0)-xy(I1-1,I2 ,I3 ,0)) \
+POW2(xy(I1+1,I2 ,I3 ,1)-xy(I1-1,I2 ,I3 ,1)) ) ) \
+ cd/max(realSmall, \
( POW2(xy(I1 ,I2+1,I3 ,0)-xy(I1 ,I2-1,I3 ,0)) \
+POW2(xy(I1 ,I2+1,I3 ,1)-xy(I1 ,I2-1,I3 ,1)) ) ) )
#define DAI3 (   cd,
  I1,
  I2,
  I3 
)
Value:
( \
cd/max(realSmall, \
( POW2(xy(I1+1,I2 ,I3 ,0)-xy(I1-1,I2 ,I3 ,0)) \
+POW2(xy(I1+1,I2 ,I3 ,1)-xy(I1-1,I2 ,I3 ,1)) \
+POW2(xy(I1+1,I2 ,I3 ,2)-xy(I1-1,I2 ,I3 ,2)) ) ) \
+ cd/max(realSmall, \
( POW2(xy(I1 ,I2+1,I3 ,0)-xy(I1 ,I2-1,I3 ,0)) \
+POW2(xy(I1 ,I2+1,I3 ,1)-xy(I1 ,I2-1,I3 ,1)) \
+POW2(xy(I1 ,I2+1,I3 ,2)-xy(I1 ,I2-1,I3 ,2)) ) ) \
+ cd/max(realSmall, \
( POW2(xy(I1 ,I2 ,I3+1,0)-xy(I1 ,I2 ,I3-1,0)) \
+POW2(xy(I1 ,I2 ,I3+1,1)-xy(I1 ,I2 ,I3-1,1)) \
+POW2(xy(I1 ,I2 ,I3+1,2)-xy(I1 ,I2 ,I3-1,2)) ) ) )

Referenced by Cgins::updateDivergenceDamping().

#define ForBoundary (   side,
  axis 
)
Value:
for( int axis=0; axis<c.numberOfDimensions(); axis++ ) \
for( int side=0; side<=1; side++ )

Referenced by Cgins::updatePressureEquation().

#define mixedCoeff (   component,
  side,
  axis,
  grid 
)    bcData(component+numberOfComponents*(1),side,axis,grid)
#define mixedNormalCoeff (   component,
  side,
  axis,
  grid 
)    bcData(component+numberOfComponents*(2),side,axis,grid)
#define mixedRHS (   component,
  side,
  axis,
  grid 
)    bcData(component+numberOfComponents*(0),side,axis,grid)
#define POW2 (   x)    pow((x),2)
#define TURN_OFF   true