All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
Macros
GaussVolPointBase3D.C File Reference
Include dependency graph for GaussVolPointBase3D.C:

Go to the source code of this file.

Macros

#define VEC_CMPT(V, CMPT)   V[CMPT]
 
#define SCA_CMPT(V, CMPT)   V
 
#define dfdxif(vf, pf, dfdxfield, fi, vi, ai, icmpt, ocmpt, iop, oop)
 
#define dfdxbf(vf, pf, patchi, dfdxfield, bfi, bvfi, bai, icmpt, ocmpt, iop, oop)
 

Detailed Description

Original source file GaussVolPointBase3D.C

Definition in file GaussVolPointBase3D.C.

Macro Definition Documentation

#define VEC_CMPT (   V,
  CMPT 
)    V[CMPT]

Definition at line 475 of file GaussVolPointBase3D.C.

Referenced by GaussVolPointBase3D::calcDivfIF().

#define SCA_CMPT (   V,
  CMPT 
)    V

Definition at line 478 of file GaussVolPointBase3D.C.

Referenced by GaussVolPointBase3D::calcDivfIF().

#define dfdxif (   vf,
  pf,
  dfdxfield,
  fi,
  vi,
  ai,
  icmpt,
  ocmpt,
  iop,
  oop 
)
Value:
{ \
label celll = -1; \
label facei = -1; \
const label iown = (ai.size() > 0) ? ai[0].size() - 1 : 0; \
const label inei = (ai.size() > 0) ? iown - 1 : 0; \
scalar dfdxface = 0.0; \
forAll(fi, i) \
{ \
facei = fi[i]; \
celll = vf.mesh().neighbour()[facei]; \
dfdxface = \
iop(vf.primitiveField()[celll],icmpt) * ai[i][inei]; \
celll = vf.mesh().owner()[facei]; \
dfdxface += \
iop(vf.primitiveField()[celll],icmpt) * ai[i][iown]; \
forAll(faces[facei], k) \
{ \
dfdxface += \
iop(pf[faces[facei][k]],icmpt) * ai[i][k]; \
} \
oop(dfdxfield.primitiveFieldRef()[facei],ocmpt) \
+= (dfdxface / vi[i]); \
} \
}
pf
Definition: updateFields.H:21
forAll(Y, i)
Definition: QGDYEqn.H:36

Definition at line 481 of file GaussVolPointBase3D.C.

Referenced by GaussVolPointBase3D::calcDivfIF().

#define dfdxbf (   vf,
  pf,
  patchi,
  dfdxfield,
  bfi,
  bvfi,
  bai,
  icmpt,
  ocmpt,
  iop,
  oop 
)
Value:
{ \
label ifacei = -1; \
const label iown = (bai[patchi].size() > 0) ? bai[patchi][0].size() - 1 : 0; \
const label inei = (bai[patchi].size() > 0) ? iown - 1 : 0; \
label gFaceId = -1; \
scalar dfdxface = 0.0; \
forAll(bfi[patchi], i) \
{ \
ifacei = bfi[patchi][i]; \
gFaceId = bgfid_[patchi][ifacei]; \
dfdxface = \
iop(psin[patchi][ifacei],icmpt) * bai[patchi][i][inei]; \
dfdxface += \
iop(psio[ifacei],icmpt) * bai[patchi][i][iown]; \
forAll(faces[gFaceId], k) \
{ \
dfdxface+= \
iop(pf[faces[gFaceId][k]],icmpt) * \
bai[patchi][i][k]; \
} \
oop(dfdxfield.boundaryFieldRef()[patchi][ifacei],ocmpt) += \
dfdxface / bvfi[patchi][i]; \
} \
}
pf
Definition: updateFields.H:21
forAll(Y, i)
Definition: QGDYEqn.H:36

Definition at line 508 of file GaussVolPointBase3D.C.